test_class.declarator: entityEventManager
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private EntityEventManager entityEventManager;
test_class.type: EntityEventManager
test_class.var_name: entityEventManager
test_class.declarator: identityRoleService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private IdmIdentityRoleService identityRoleService;
test_class.type: IdmIdentityRoleService
test_class.var_name: identityRoleService
test_class.declarator: identityService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private IdmIdentityService identityService;
test_class.type: IdmIdentityService
test_class.var_name: identityService
test_class.declarator: longRunningTaskManager
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private LongRunningTaskManager longRunningTaskManager;
test_class.type: LongRunningTaskManager
test_class.var_name: longRunningTaskManager
test_class.file: Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/scheduler/task/impl/ProcessAllAutomaticRoleByAttributeTaskExecutorTest.java
test_class.identifier: ProcessAllAutomaticRoleByAttributeTaskExecutorTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test
  	public void testAssignRoles() {
  		ProcessAllAutomaticRoleByAttributeTaskExecutor autoRolecalculation = new ProcessAllAutomaticRoleByAttributeTaskExecutor();
  		longRunningTaskManager.executeSync(autoRolecalculation);
  		//
  		String automaticRoleValue = this.getHelper().createName();
  		IdmAutomaticRoleAttributeDto automaticRole = this.getHelper().createAutomaticRole(this.getHelper().createRole().getId());
  		this.getHelper().createAutomaticRoleRule(automaticRole.getId(), AutomaticRoleAttributeRuleComparison.EQUALS, AutomaticRoleAttributeRuleType.IDENTITY, IdmIdentity_.description.getName(), null, automaticRoleValue);
  
  		List<IdmIdentityDto> identities = new ArrayList<IdmIdentityDto>();
  		for (int index = 0; index < 154; index++) {
  			IdmIdentityDto identity = this.getHelper().createIdentity((GuardedString)null);
  			identities.add(identity);
  
  			identity.setDescription(automaticRoleValue);
  			identity = saveIdentityWithouRecalculation(identity);
  
  			checkIdentityRoles(identity, 0, null);
  		}
  
  		autoRolecalculation = new ProcessAllAutomaticRoleByAttributeTaskExecutor();
  		longRunningTaskManager.executeSync(autoRolecalculation);
  
  		for (IdmIdentityDto identity : identities) {
  			checkIdentityRoles(identity, 1, automaticRole.getId());
  		}
  	}
test_case.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutorTest.testAssignRoles()
test_case.full_signature: @Test public void testAssignRoles()
test_case.identifier: testAssignRoles
test_case.invocations: executeSync createName getHelper createAutomaticRole getHelper getId createRole getHelper createAutomaticRoleRule getHelper getId getName createIdentity getHelper add setDescription saveIdentityWithouRecalculation checkIdentityRoles executeSync checkIdentityRoles getId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAssignRoles()
focal_class.declarator: TASK_NAME = "core-process-all-automatic-role-attribute-long-running-task"
focal_class.modifier: public static final
focal_class.original_string: public static final String TASK_NAME = "core-process-all-automatic-role-attribute-long-running-task";
focal_class.type: String
focal_class.var_name: TASK_NAME
focal_class.declarator: DEFAULT_PAGE_SIZE_ROLE = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_PAGE_SIZE_ROLE = 10;
focal_class.type: int
focal_class.var_name: DEFAULT_PAGE_SIZE_ROLE
focal_class.declarator: DEFAULT_PAGE_SIZE_PAGE_SIZE_IDENTITIES = 100
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_PAGE_SIZE_PAGE_SIZE_IDENTITIES = 100;
focal_class.type: int
focal_class.var_name: DEFAULT_PAGE_SIZE_PAGE_SIZE_IDENTITIES
focal_class.declarator: automaticRoleAttributeService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmAutomaticRoleAttributeService automaticRoleAttributeService;
focal_class.type: IdmAutomaticRoleAttributeService
focal_class.var_name: automaticRoleAttributeService
focal_class.declarator: identityContractService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmIdentityContractService identityContractService;
focal_class.type: IdmIdentityContractService
focal_class.var_name: identityContractService
focal_class.declarator: identityRoleService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmIdentityRoleService identityRoleService;
focal_class.type: IdmIdentityRoleService
focal_class.var_name: identityRoleService
focal_class.declarator: roleRequestService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private IdmRoleRequestService roleRequestService;
focal_class.type: IdmRoleRequestService
focal_class.var_name: roleRequestService
focal_class.file: Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/ProcessAllAutomaticRoleByAttributeTaskExecutor.java
focal_class.identifier: ProcessAllAutomaticRoleByAttributeTaskExecutor
focal_class.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutor.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutor.process()
focal_class.full_signature: @Override public Boolean process()
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Boolean
focal_class.signature: Boolean process()
focal_class.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutor.processAutomaticRoleForContract(IdmAutomaticRoleAttributeDto automaticRolAttributeDto)
focal_class.full_signature: private void processAutomaticRoleForContract(IdmAutomaticRoleAttributeDto automaticRolAttributeDto)
focal_class.identifier: processAutomaticRoleForContract
focal_class.modifiers: private
focal_class.parameters: (IdmAutomaticRoleAttributeDto automaticRolAttributeDto)
focal_class.return: void
focal_class.signature: void processAutomaticRoleForContract(IdmAutomaticRoleAttributeDto automaticRolAttributeDto)
focal_class.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutor.isRecoverable()
focal_class.full_signature: @Override public boolean isRecoverable()
focal_class.identifier: isRecoverable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRecoverable()
focal_class.superclass: extends AbstractSchedulableTaskExecutor<Boolean>
focal_method.body: @Override
  	public String getName() {
  		return TASK_NAME;
  	}
focal_method.class_method_signature: ProcessAllAutomaticRoleByAttributeTaskExecutor.getName()
focal_method.full_signature: @Override public String getName()
focal_method.identifier: getName
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getName()