test_class.declarator: helper
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private TestHelper helper;
test_class.type: TestHelper
test_class.var_name: helper
test_class.declarator: systemService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SysSystemService systemService;
test_class.type: SysSystemService
test_class.var_name: systemService
test_class.declarator: accountService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private AccAccountService accountService;
test_class.type: AccAccountService
test_class.var_name: accountService
test_class.declarator: schemaAttributeService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SysSchemaAttributeService schemaAttributeService;
test_class.type: SysSchemaAttributeService
test_class.var_name: schemaAttributeService
test_class.declarator: entityManager
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private EntityManager entityManager;
test_class.type: EntityManager
test_class.var_name: entityManager
test_class.declarator: applicationContext
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private ApplicationContext applicationContext;
test_class.type: ApplicationContext
test_class.var_name: applicationContext
test_class.declarator: authorizationPolicyService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private IdmAuthorizationPolicyService authorizationPolicyService;
test_class.type: IdmAuthorizationPolicyService
test_class.var_name: authorizationPolicyService
test_class.declarator: identityAccountService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private AccIdentityAccountService identityAccountService;
test_class.type: AccIdentityAccountService
test_class.var_name: identityAccountService
test_class.declarator: loginService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private LoginService loginService;
test_class.type: LoginService
test_class.var_name: loginService
test_class.file: Realization/backend/acc/src/test/java/eu/bcvsolutions/idm/acc/service/impl/DefaultAccAccountServiceTest.java
test_class.identifier: DefaultAccAccountServiceTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test(expected = ForbiddenEntityException.class)
  	public void getConnectorObjectForbiddenTest() {
  		String userOneName = "UserOne";
  		String eavAttributeName = "EAV_ATTRIBUTE";
  		SysSystemDto system = initData();
  		Assert.assertNotNull(system);
  
  		IdmIdentityDto identity = helper.createIdentity();
  
  		// Create role with evaluator
  		IdmRoleDto role = helper.createRole();
  		IdmAuthorizationPolicyDto policyAccount = new IdmAuthorizationPolicyDto();
  		policyAccount.setRole(role.getId());
  		policyAccount.setGroupPermission(AccGroupPermission.ACCOUNT.getName());
  		policyAccount.setAuthorizableType(AccAccount.class.getCanonicalName());
  		policyAccount.setEvaluator(ReadAccountByIdentityEvaluator.class);
  		authorizationPolicyService.save(policyAccount);
  
  		// Change resources (set state on exclude) .. must be call in transaction
  		this.getBean().persistResource(createResource(userOneName, ZonedDateTime.now()));
  		AccAccountDto account = new AccAccountDto();
  		account.setEntityType(SystemEntityType.IDENTITY);
  		account.setSystem(system.getId());
  		account.setAccountType(AccountType.PERSONAL);
  		account.setUid(userOneName);
  		account = accountService.save(account);
  
  		// Assign role with evaluator
  		helper.createIdentityRole(identity, role);
  
  		logout();
  		loginService.login(new LoginDto(identity.getUsername(), identity.getPassword()));
  
  		IcConnectorObject connectorObject = accountService.getConnectorObject(account, IdmBasePermission.READ);
  		Assert.assertNotNull(connectorObject);
  		Assert.assertEquals(userOneName, connectorObject.getUidValue());
  		Assert.assertNotNull(connectorObject.getAttributeByName(eavAttributeName));
  		Assert.assertEquals(userOneName, connectorObject.getAttributeByName(eavAttributeName).getValue());
  
  	}
test_case.class_method_signature: DefaultAccAccountServiceTest.getConnectorObjectForbiddenTest()
test_case.full_signature: @Test(expected = ForbiddenEntityException.class) public void getConnectorObjectForbiddenTest()
test_case.identifier: getConnectorObjectForbiddenTest
test_case.invocations: initData assertNotNull createIdentity createRole setRole getId setGroupPermission getName setAuthorizableType getCanonicalName setEvaluator save persistResource getBean createResource now setEntityType setSystem getId setAccountType setUid save createIdentityRole logout login getUsername getPassword getConnectorObject assertNotNull assertEquals getUidValue assertNotNull getAttributeByName assertEquals getValue getAttributeByName
test_case.modifiers: @Test(expected = ForbiddenEntityException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getConnectorObjectForbiddenTest()
focal_class.declarator: accountRepository
focal_class.modifier: private final
focal_class.original_string: private final AccAccountRepository accountRepository;
focal_class.type: AccAccountRepository
focal_class.var_name: accountRepository
focal_class.declarator: identityAccountService
focal_class.modifier: private final
focal_class.original_string: private final AccIdentityAccountService identityAccountService;
focal_class.type: AccIdentityAccountService
focal_class.var_name: identityAccountService
focal_class.declarator: systemService
focal_class.modifier: private final
focal_class.original_string: private final SysSystemService systemService;
focal_class.type: SysSystemService
focal_class.var_name: systemService
focal_class.declarator: schemaObjectClassService
focal_class.modifier: private final
focal_class.original_string: private final SysSchemaObjectClassService schemaObjectClassService;
focal_class.type: SysSchemaObjectClassService
focal_class.var_name: schemaObjectClassService
focal_class.declarator: schemaAttributeService
focal_class.modifier: private final
focal_class.original_string: private final SysSchemaAttributeService schemaAttributeService;
focal_class.type: SysSchemaAttributeService
focal_class.var_name: schemaAttributeService
focal_class.declarator: executors
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private List<SynchronizationEntityExecutor> executors;
focal_class.type: List<SynchronizationEntityExecutor>
focal_class.var_name: executors
focal_class.declarator: pluginExecutors
focal_class.modifier: private
focal_class.original_string: private PluginRegistry<SynchronizationEntityExecutor, SystemEntityType> pluginExecutors;
focal_class.type: PluginRegistry<SynchronizationEntityExecutor, SystemEntityType>
focal_class.var_name: pluginExecutors
focal_class.declarator: passwordFilterManager
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private PasswordFilterManager passwordFilterManager;
focal_class.type: PasswordFilterManager
focal_class.var_name: passwordFilterManager
focal_class.file: Realization/backend/acc/src/main/java/eu/bcvsolutions/idm/acc/service/impl/DefaultAccAccountService.java
focal_class.identifier: DefaultAccAccountService
focal_class.interfaces: implements AccAccountService
focal_class.class_method_signature: DefaultAccAccountService.DefaultAccAccountService(AccAccountRepository accountRepository,
  			AccIdentityAccountService identityAccountService, SysSystemService systemService,
  			SysSchemaObjectClassService schemaObjectClassService, SysSchemaAttributeService schemaAttributeService,
  			EntityEventManager entityEventManager)
focal_class.full_signature: @Autowired public  DefaultAccAccountService(AccAccountRepository accountRepository,
  			AccIdentityAccountService identityAccountService, SysSystemService systemService,
  			SysSchemaObjectClassService schemaObjectClassService, SysSchemaAttributeService schemaAttributeService,
  			EntityEventManager entityEventManager)
focal_class.identifier: DefaultAccAccountService
focal_class.modifiers: @Autowired public
focal_class.parameters: (AccAccountRepository accountRepository,
  			AccIdentityAccountService identityAccountService, SysSystemService systemService,
  			SysSchemaObjectClassService schemaObjectClassService, SysSchemaAttributeService schemaAttributeService,
  			EntityEventManager entityEventManager)
focal_class.signature:  DefaultAccAccountService(AccAccountRepository accountRepository,
  			AccIdentityAccountService identityAccountService, SysSystemService systemService,
  			SysSchemaObjectClassService schemaObjectClassService, SysSchemaAttributeService schemaAttributeService,
  			EntityEventManager entityEventManager)
focal_class.class_method_signature: DefaultAccAccountService.getAuthorizableType()
focal_class.full_signature: @Override public AuthorizableType getAuthorizableType()
focal_class.identifier: getAuthorizableType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AuthorizableType
focal_class.signature: AuthorizableType getAuthorizableType()
focal_class.class_method_signature: DefaultAccAccountService.toDto(AccAccount entity, AccAccountDto dto)
focal_class.full_signature: @Override protected AccAccountDto toDto(AccAccount entity, AccAccountDto dto)
focal_class.identifier: toDto
focal_class.modifiers: @Override protected
focal_class.parameters: (AccAccount entity, AccAccountDto dto)
focal_class.return: AccAccountDto
focal_class.signature: AccAccountDto toDto(AccAccount entity, AccAccountDto dto)
focal_class.class_method_signature: DefaultAccAccountService.delete(AccAccountDto account, BasePermission... permission)
focal_class.full_signature: @Override @Transactional public void delete(AccAccountDto account, BasePermission... permission)
focal_class.identifier: delete
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (AccAccountDto account, BasePermission... permission)
focal_class.return: void
focal_class.signature: void delete(AccAccountDto account, BasePermission... permission)
focal_class.class_method_signature: DefaultAccAccountService.getAccounts(UUID systemId, UUID identityId)
focal_class.full_signature: @Override public List<AccAccountDto> getAccounts(UUID systemId, UUID identityId)
focal_class.identifier: getAccounts
focal_class.modifiers: @Override public
focal_class.parameters: (UUID systemId, UUID identityId)
focal_class.return: List<AccAccountDto>
focal_class.signature: List<AccAccountDto> getAccounts(UUID systemId, UUID identityId)
focal_class.class_method_signature: DefaultAccAccountService.getAccount(String uid, UUID systemId)
focal_class.full_signature: @Override public AccAccountDto getAccount(String uid, UUID systemId)
focal_class.identifier: getAccount
focal_class.modifiers: @Override public
focal_class.parameters: (String uid, UUID systemId)
focal_class.return: AccAccountDto
focal_class.signature: AccAccountDto getAccount(String uid, UUID systemId)
focal_class.class_method_signature: DefaultAccAccountService.findExpired(ZonedDateTime expirationDate, Pageable pageable)
focal_class.full_signature: @Override @Transactional(readOnly = true) public Page<AccAccountDto> findExpired(ZonedDateTime expirationDate, Pageable pageable)
focal_class.identifier: findExpired
focal_class.modifiers: @Override @Transactional(readOnly = true) public
focal_class.parameters: (ZonedDateTime expirationDate, Pageable pageable)
focal_class.return: Page<AccAccountDto>
focal_class.signature: Page<AccAccountDto> findExpired(ZonedDateTime expirationDate, Pageable pageable)
focal_class.class_method_signature: DefaultAccAccountService.getConnectorObject(AccAccountDto account, BasePermission... permissions)
focal_class.full_signature: @Override public IcConnectorObject getConnectorObject(AccAccountDto account, BasePermission... permissions)
focal_class.identifier: getConnectorObject
focal_class.modifiers: @Override public
focal_class.parameters: (AccAccountDto account, BasePermission... permissions)
focal_class.return: IcConnectorObject
focal_class.signature: IcConnectorObject getConnectorObject(AccAccountDto account, BasePermission... permissions)
focal_class.class_method_signature: DefaultAccAccountService.getConnectorObjectForSchema(IcConnectorObject fullObject,
  			List<SysSchemaAttributeDto> schemaAttributes)
focal_class.full_signature: private IcConnectorObject getConnectorObjectForSchema(IcConnectorObject fullObject,
  			List<SysSchemaAttributeDto> schemaAttributes)
focal_class.identifier: getConnectorObjectForSchema
focal_class.modifiers: private
focal_class.parameters: (IcConnectorObject fullObject,
  			List<SysSchemaAttributeDto> schemaAttributes)
focal_class.return: IcConnectorObject
focal_class.signature: IcConnectorObject getConnectorObjectForSchema(IcConnectorObject fullObject,
  			List<SysSchemaAttributeDto> schemaAttributes)
focal_class.class_method_signature: DefaultAccAccountService.applyContext(AccAccountDto dto, AccAccountFilter context, BasePermission... permission)
focal_class.full_signature: @Override protected AccAccountDto applyContext(AccAccountDto dto, AccAccountFilter context, BasePermission... permission)
focal_class.identifier: applyContext
focal_class.modifiers: @Override protected
focal_class.parameters: (AccAccountDto dto, AccAccountFilter context, BasePermission... permission)
focal_class.return: AccAccountDto
focal_class.signature: AccAccountDto applyContext(AccAccountDto dto, AccAccountFilter context, BasePermission... permission)
focal_class.class_method_signature: DefaultAccAccountService.getSchemaAttributes(UUID systemId, String schema)
focal_class.full_signature: private List<SysSchemaAttributeDto> getSchemaAttributes(UUID systemId, String schema)
focal_class.identifier: getSchemaAttributes
focal_class.modifiers: private
focal_class.parameters: (UUID systemId, String schema)
focal_class.return: List<SysSchemaAttributeDto>
focal_class.signature: List<SysSchemaAttributeDto> getSchemaAttributes(UUID systemId, String schema)
focal_class.class_method_signature: DefaultAccAccountService.toPredicates(Root<AccAccount> root, CriteriaQuery<?> query, CriteriaBuilder builder,
  			AccAccountFilter filter)
focal_class.full_signature: @Override protected List<Predicate> toPredicates(Root<AccAccount> root, CriteriaQuery<?> query, CriteriaBuilder builder,
  			AccAccountFilter filter)
focal_class.identifier: toPredicates
focal_class.modifiers: @Override protected
focal_class.parameters: (Root<AccAccount> root, CriteriaQuery<?> query, CriteriaBuilder builder,
  			AccAccountFilter filter)
focal_class.return: List<Predicate>
focal_class.signature: List<Predicate> toPredicates(Root<AccAccount> root, CriteriaQuery<?> query, CriteriaBuilder builder,
  			AccAccountFilter filter)
focal_class.class_method_signature: DefaultAccAccountService.getSyncExecutor(SystemEntityType entityType)
focal_class.full_signature: @Override public SynchronizationEntityExecutor getSyncExecutor(SystemEntityType entityType)
focal_class.identifier: getSyncExecutor
focal_class.modifiers: @Override public
focal_class.parameters: (SystemEntityType entityType)
focal_class.return: SynchronizationEntityExecutor
focal_class.signature: SynchronizationEntityExecutor getSyncExecutor(SystemEntityType entityType)
focal_class.superclass: extends AbstractEventableDtoService<AccAccountDto, AccAccount, AccAccountFilter>
focal_method.body: @Override
  	public IcConnectorObject getConnectorObject(AccAccountDto account, BasePermission... permissions) {
  		Assert.notNull(account, "Account cannot be null!");
  		this.checkAccess(account, permissions);
  		List<SysSchemaAttributeDto> schemaAttributes = this.getSchemaAttributes(account.getSystem(), null);
  		if (schemaAttributes == null) {
  			return null;
  		}
  		try {
  			IcConnectorObject fullObject = this.systemService.readConnectorObject(account.getSystem(),
  					account.getRealUid(), null);
  			return this.getConnectorObjectForSchema(fullObject, schemaAttributes);
  		} catch (Exception ex) {
  			SysSystemDto system = DtoUtils.getEmbedded(account, AccAccount_.system, SysSystemDto.class);
  			throw new ResultCodeException(AccResultCode.ACCOUNT_CANNOT_BE_READ_FROM_TARGET, ImmutableMap.of("account",
  					account.getUid(), "system", system != null ? system.getName() : account.getSystem()), ex);
  		}
  	}
focal_method.class_method_signature: DefaultAccAccountService.getConnectorObject(AccAccountDto account, BasePermission... permissions)
focal_method.full_signature: @Override public IcConnectorObject getConnectorObject(AccAccountDto account, BasePermission... permissions)
focal_method.identifier: getConnectorObject
focal_method.invocations: notNull checkAccess getSchemaAttributes getSystem readConnectorObject getSystem getRealUid getConnectorObjectForSchema getEmbedded of getUid getName getSystem
focal_method.modifiers: @Override public
focal_method.parameters: (AccAccountDto account, BasePermission... permissions)
focal_method.return: IcConnectorObject
focal_method.signature: IcConnectorObject getConnectorObject(AccAccountDto account, BasePermission... permissions)