test_class.declarator: mappingService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SysSystemMappingService mappingService;
test_class.type: SysSystemMappingService
test_class.var_name: mappingService
test_class.declarator: mappingAttributeService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SysSystemAttributeMappingService mappingAttributeService;
test_class.type: SysSystemAttributeMappingService
test_class.var_name: mappingAttributeService
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: schemaObjectClassService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private SysSchemaObjectClassService schemaObjectClassService;
test_class.type: SysSchemaObjectClassService
test_class.var_name: schemaObjectClassService
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: treeTypeService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private IdmTreeTypeService treeTypeService;
test_class.type: IdmTreeTypeService
test_class.var_name: treeTypeService
test_class.declarator: testHelper
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private TestHelper testHelper;
test_class.type: TestHelper
test_class.var_name: testHelper
test_class.file: Realization/backend/acc/src/test/java/eu/bcvsolutions/idm/acc/service/impl/DefaultSysSystemMappingServiceTest.java
test_class.identifier: DefaultSysSystemMappingServiceTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test
  	public void textFilterTest() {
  		IdmBasePermission permission = IdmBasePermission.ADMIN;
  		SystemEntityType entityType = SystemEntityType.IDENTITY;
  
  		SysSystemDto system = createSystem();
  		SysSchemaObjectClassDto objectClass = createObjectClass(system);
  
  		SysSystemMappingDto mappingSystem1 = testHelper.createMappingSystem(entityType, objectClass);
  		mappingSystem1.setName("SomeName01");
  		mappingService.save(mappingSystem1);
  		SysSystemMappingDto mappingSystem2 = testHelper.createMappingSystem(entityType, objectClass);
  		mappingSystem2.setName("SomeName02");
  		mappingService.save(mappingSystem2);
  		SysSystemMappingDto mappingSystem3 = testHelper.createMappingSystem(entityType, objectClass);
  		mappingSystem3.setName("SomeName22");
  		mappingService.save(mappingSystem3);
  
  		SysSystemMappingFilter filter = new SysSystemMappingFilter();
  		filter.setText("SomeName0");
  
  		Page<SysSystemMappingDto> result = mappingService.find(filter, null, permission);
  		assertEquals(2, result.getTotalElements());
  		assertTrue(result.getContent().contains(mappingSystem1));
  		assertTrue(result.getContent().contains(mappingSystem2));
  	}
test_case.class_method_signature: DefaultSysSystemMappingServiceTest.textFilterTest()
test_case.full_signature: @Test public void textFilterTest()
test_case.identifier: textFilterTest
test_case.invocations: createSystem createObjectClass createMappingSystem setName save createMappingSystem setName save createMappingSystem setName save setText find assertEquals getTotalElements assertTrue contains getContent assertTrue contains getContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void textFilterTest()
focal_class.declarator: SYSTEM_MISSING_IDENTIFIER = "systemMissingIdentifier"
focal_class.modifier: private static final
focal_class.original_string: private static final String SYSTEM_MISSING_IDENTIFIER = "systemMissingIdentifier";
focal_class.type: String
focal_class.var_name: SYSTEM_MISSING_IDENTIFIER
focal_class.declarator: SYSTEM_MISSING_OWNER = "systemMissingOwner"
focal_class.modifier: private static final
focal_class.original_string: private static final String SYSTEM_MISSING_OWNER = "systemMissingOwner";
focal_class.type: String
focal_class.var_name: SYSTEM_MISSING_OWNER
focal_class.declarator: repository
focal_class.modifier: private final
focal_class.original_string: private final SysSystemMappingRepository repository;
focal_class.type: SysSystemMappingRepository
focal_class.var_name: repository
focal_class.declarator: groovyScriptService
focal_class.modifier: private final
focal_class.original_string: private final GroovyScriptService groovyScriptService;
focal_class.type: GroovyScriptService
focal_class.var_name: groovyScriptService
focal_class.declarator: pluginExecutors
focal_class.modifier: private final
focal_class.original_string: private final PluginRegistry<AbstractScriptEvaluator, IdmScriptCategory> pluginExecutors;
focal_class.type: PluginRegistry<AbstractScriptEvaluator, IdmScriptCategory>
focal_class.var_name: pluginExecutors
focal_class.declarator: applicationContext
focal_class.modifier: private final
focal_class.original_string: private final ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: attributeMappingService
focal_class.modifier: private
focal_class.original_string: private SysSystemAttributeMappingService attributeMappingService;
focal_class.type: SysSystemAttributeMappingService
focal_class.var_name: attributeMappingService
focal_class.declarator: attributeService
focal_class.modifier: @Autowired
  	@Lazy
  	private
focal_class.original_string: @Autowired
  	@Lazy
  	private SysSchemaAttributeService attributeService;
focal_class.type: SysSchemaAttributeService
focal_class.var_name: attributeService
focal_class.declarator: identityRoleService
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private IdmIdentityRoleService identityRoleService;
focal_class.type: IdmIdentityRoleService
focal_class.var_name: identityRoleService
focal_class.declarator: identityContractService
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private IdmIdentityContractService identityContractService;
focal_class.type: IdmIdentityContractService
focal_class.var_name: identityContractService
focal_class.declarator: treeTypeService
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private IdmTreeTypeService treeTypeService;
focal_class.type: IdmTreeTypeService
focal_class.var_name: treeTypeService
focal_class.declarator: identityAccountService
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private AccIdentityAccountService identityAccountService;
focal_class.type: AccIdentityAccountService
focal_class.var_name: identityAccountService
focal_class.declarator: systemEntityService
focal_class.modifier: @Lazy
  	@Autowired
  	private
focal_class.original_string: @Lazy
  	@Autowired
  	private SysSystemEntityService systemEntityService;
focal_class.type: SysSystemEntityService
focal_class.var_name: systemEntityService
focal_class.file: Realization/backend/acc/src/main/java/eu/bcvsolutions/idm/acc/service/impl/DefaultSysSystemMappingService.java
focal_class.identifier: DefaultSysSystemMappingService
focal_class.interfaces: implements SysSystemMappingService
focal_class.class_method_signature: DefaultSysSystemMappingService.DefaultSysSystemMappingService(SysSystemMappingRepository repository, EntityEventManager entityEventManager,
  			GroovyScriptService groovyScriptService, List<AbstractScriptEvaluator> evaluators,
  			ApplicationContext applicationContext)
focal_class.full_signature: @Autowired public  DefaultSysSystemMappingService(SysSystemMappingRepository repository, EntityEventManager entityEventManager,
  			GroovyScriptService groovyScriptService, List<AbstractScriptEvaluator> evaluators,
  			ApplicationContext applicationContext)
focal_class.identifier: DefaultSysSystemMappingService
focal_class.modifiers: @Autowired public
focal_class.parameters: (SysSystemMappingRepository repository, EntityEventManager entityEventManager,
  			GroovyScriptService groovyScriptService, List<AbstractScriptEvaluator> evaluators,
  			ApplicationContext applicationContext)
focal_class.signature:  DefaultSysSystemMappingService(SysSystemMappingRepository repository, EntityEventManager entityEventManager,
  			GroovyScriptService groovyScriptService, List<AbstractScriptEvaluator> evaluators,
  			ApplicationContext applicationContext)
focal_class.class_method_signature: DefaultSysSystemMappingService.save(SysSystemMappingDto dto, BasePermission... permission)
focal_class.full_signature: @Override public SysSystemMappingDto save(SysSystemMappingDto dto, BasePermission... permission)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (SysSystemMappingDto dto, BasePermission... permission)
focal_class.return: SysSystemMappingDto
focal_class.signature: SysSystemMappingDto save(SysSystemMappingDto dto, BasePermission... permission)
focal_class.class_method_signature: DefaultSysSystemMappingService.findEntities(SysSystemMappingFilter filter, Pageable pageable,
  			BasePermission... permission)
focal_class.full_signature: @Override protected Page<SysSystemMapping> findEntities(SysSystemMappingFilter filter, Pageable pageable,
  			BasePermission... permission)
focal_class.identifier: findEntities
focal_class.modifiers: @Override protected
focal_class.parameters: (SysSystemMappingFilter filter, Pageable pageable,
  			BasePermission... permission)
focal_class.return: Page<SysSystemMapping>
focal_class.signature: Page<SysSystemMapping> findEntities(SysSystemMappingFilter filter, Pageable pageable,
  			BasePermission... permission)
focal_class.class_method_signature: DefaultSysSystemMappingService.findIds(SysSystemMappingFilter filter, Pageable pageable, BasePermission... permission)
focal_class.full_signature: @Override public Page<UUID> findIds(SysSystemMappingFilter filter, Pageable pageable, BasePermission... permission)
focal_class.identifier: findIds
focal_class.modifiers: @Override public
focal_class.parameters: (SysSystemMappingFilter filter, Pageable pageable, BasePermission... permission)
focal_class.return: Page<UUID>
focal_class.signature: Page<UUID> findIds(SysSystemMappingFilter filter, Pageable pageable, BasePermission... permission)
focal_class.class_method_signature: DefaultSysSystemMappingService.findBySystem(SysSystemDto system, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.full_signature: @Override public List<SysSystemMappingDto> findBySystem(SysSystemDto system, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.identifier: findBySystem
focal_class.modifiers: @Override public
focal_class.parameters: (SysSystemDto system, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.return: List<SysSystemMappingDto>
focal_class.signature: List<SysSystemMappingDto> findBySystem(SysSystemDto system, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.class_method_signature: DefaultSysSystemMappingService.findBySystemId(UUID systemId, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.full_signature: @Override public List<SysSystemMappingDto> findBySystemId(UUID systemId, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.identifier: findBySystemId
focal_class.modifiers: @Override public
focal_class.parameters: (UUID systemId, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.return: List<SysSystemMappingDto>
focal_class.signature: List<SysSystemMappingDto> findBySystemId(UUID systemId, SystemOperationType operation,
  			SystemEntityType entityType)
focal_class.class_method_signature: DefaultSysSystemMappingService.findByObjectClass(SysSchemaObjectClassDto objectClass,
  			SystemOperationType operation, SystemEntityType entityType)
focal_class.full_signature: @Override public List<SysSystemMappingDto> findByObjectClass(SysSchemaObjectClassDto objectClass,
  			SystemOperationType operation, SystemEntityType entityType)
focal_class.identifier: findByObjectClass
focal_class.modifiers: @Override public
focal_class.parameters: (SysSchemaObjectClassDto objectClass,
  			SystemOperationType operation, SystemEntityType entityType)
focal_class.return: List<SysSystemMappingDto>
focal_class.signature: List<SysSystemMappingDto> findByObjectClass(SysSchemaObjectClassDto objectClass,
  			SystemOperationType operation, SystemEntityType entityType)
focal_class.class_method_signature: DefaultSysSystemMappingService.isEnabledProtection(AccAccountDto account)
focal_class.full_signature: @Override public boolean isEnabledProtection(AccAccountDto account)
focal_class.identifier: isEnabledProtection
focal_class.modifiers: @Override public
focal_class.parameters: (AccAccountDto account)
focal_class.return: boolean
focal_class.signature: boolean isEnabledProtection(AccAccountDto account)
focal_class.class_method_signature: DefaultSysSystemMappingService.getProtectionInterval(AccAccountDto account)
focal_class.full_signature: @Override public Integer getProtectionInterval(AccAccountDto account)
focal_class.identifier: getProtectionInterval
focal_class.modifiers: @Override public
focal_class.parameters: (AccAccountDto account)
focal_class.return: Integer
focal_class.signature: Integer getProtectionInterval(AccAccountDto account)
focal_class.class_method_signature: DefaultSysSystemMappingService.clone(UUID id)
focal_class.full_signature: @Override public SysSystemMappingDto clone(UUID id)
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: (UUID id)
focal_class.return: SysSystemMappingDto
focal_class.signature: SysSystemMappingDto clone(UUID id)
focal_class.class_method_signature: DefaultSysSystemMappingService.internalExport(UUID id)
focal_class.full_signature: @Override protected SysSystemMappingDto internalExport(UUID id)
focal_class.identifier: internalExport
focal_class.modifiers: @Override protected
focal_class.parameters: (UUID id)
focal_class.return: SysSystemMappingDto
focal_class.signature: SysSystemMappingDto internalExport(UUID id)
focal_class.class_method_signature: DefaultSysSystemMappingService.export(UUID id, IdmExportImportDto batch)
focal_class.full_signature: @Override public void export(UUID id, IdmExportImportDto batch)
focal_class.identifier: export
focal_class.modifiers: @Override public
focal_class.parameters: (UUID id, IdmExportImportDto batch)
focal_class.return: void
focal_class.signature: void export(UUID id, IdmExportImportDto batch)
focal_class.class_method_signature: DefaultSysSystemMappingService.validate(UUID id)
focal_class.full_signature: @Override public void validate(UUID id)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (UUID id)
focal_class.return: void
focal_class.signature: void validate(UUID id)
focal_class.class_method_signature: DefaultSysSystemMappingService.validateIdentifier(Map<String, Object> errors, SysSystemMappingDto systemMapping,
  			List<SysSystemAttributeMappingDto> attributesList)
focal_class.full_signature: private Map<String, Object> validateIdentifier(Map<String, Object> errors, SysSystemMappingDto systemMapping,
  			List<SysSystemAttributeMappingDto> attributesList)
focal_class.identifier: validateIdentifier
focal_class.modifiers: private
focal_class.parameters: (Map<String, Object> errors, SysSystemMappingDto systemMapping,
  			List<SysSystemAttributeMappingDto> attributesList)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> validateIdentifier(Map<String, Object> errors, SysSystemMappingDto systemMapping,
  			List<SysSystemAttributeMappingDto> attributesList)
focal_class.class_method_signature: DefaultSysSystemMappingService.validateSynchronizationContracts(Map<String, Object> errors,
  			SysSystemMappingDto systemMapping, List<SysSystemAttributeMappingDto> attributesList)
focal_class.full_signature: private Map<String, Object> validateSynchronizationContracts(Map<String, Object> errors,
  			SysSystemMappingDto systemMapping, List<SysSystemAttributeMappingDto> attributesList)
focal_class.identifier: validateSynchronizationContracts
focal_class.modifiers: private
focal_class.parameters: (Map<String, Object> errors,
  			SysSystemMappingDto systemMapping, List<SysSystemAttributeMappingDto> attributesList)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> validateSynchronizationContracts(Map<String, Object> errors,
  			SysSystemMappingDto systemMapping, List<SysSystemAttributeMappingDto> attributesList)
focal_class.class_method_signature: DefaultSysSystemMappingService.canBeAccountCreated(String uid, AbstractDto dto, String script, SysSystemDto system)
focal_class.full_signature: @Override public boolean canBeAccountCreated(String uid, AbstractDto dto, String script, SysSystemDto system)
focal_class.identifier: canBeAccountCreated
focal_class.modifiers: @Override public
focal_class.parameters: (String uid, AbstractDto dto, String script, SysSystemDto system)
focal_class.return: boolean
focal_class.signature: boolean canBeAccountCreated(String uid, AbstractDto dto, String script, SysSystemDto system)
focal_class.class_method_signature: DefaultSysSystemMappingService.findProvisioningMapping(UUID systemId, SystemEntityType entityType)
focal_class.full_signature: @Override public SysSystemMappingDto findProvisioningMapping(UUID systemId, SystemEntityType entityType)
focal_class.identifier: findProvisioningMapping
focal_class.modifiers: @Override public
focal_class.parameters: (UUID systemId, SystemEntityType entityType)
focal_class.return: SysSystemMappingDto
focal_class.signature: SysSystemMappingDto findProvisioningMapping(UUID systemId, SystemEntityType entityType)
focal_class.class_method_signature: DefaultSysSystemMappingService.getProtectionInterval(SysSystemMappingDto systemMapping)
focal_class.full_signature: private Integer getProtectionInterval(SysSystemMappingDto systemMapping)
focal_class.identifier: getProtectionInterval
focal_class.modifiers: private
focal_class.parameters: (SysSystemMappingDto systemMapping)
focal_class.return: Integer
focal_class.signature: Integer getProtectionInterval(SysSystemMappingDto systemMapping)
focal_class.class_method_signature: DefaultSysSystemMappingService.isEnabledProtection(SysSystemMappingDto systemMapping)
focal_class.full_signature: private boolean isEnabledProtection(SysSystemMappingDto systemMapping)
focal_class.identifier: isEnabledProtection
focal_class.modifiers: private
focal_class.parameters: (SysSystemMappingDto systemMapping)
focal_class.return: boolean
focal_class.signature: boolean isEnabledProtection(SysSystemMappingDto systemMapping)
focal_class.class_method_signature: DefaultSysSystemMappingService.getAttributeMappingService()
focal_class.full_signature: private SysSystemAttributeMappingService getAttributeMappingService()
focal_class.identifier: getAttributeMappingService
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SysSystemAttributeMappingService
focal_class.signature: SysSystemAttributeMappingService getAttributeMappingService()
focal_class.class_method_signature: DefaultSysSystemMappingService.getMappingContext(SysSystemMappingDto mapping, SysSystemEntityDto systemEntity, AbstractDto dto, SysSystemDto system)
focal_class.full_signature: @Override public MappingContext getMappingContext(SysSystemMappingDto mapping, SysSystemEntityDto systemEntity, AbstractDto dto, SysSystemDto system)
focal_class.identifier: getMappingContext
focal_class.modifiers: @Override public
focal_class.parameters: (SysSystemMappingDto mapping, SysSystemEntityDto systemEntity, AbstractDto dto, SysSystemDto system)
focal_class.return: MappingContext
focal_class.signature: MappingContext getMappingContext(SysSystemMappingDto mapping, SysSystemEntityDto systemEntity, AbstractDto dto, SysSystemDto system)
focal_class.class_method_signature: DefaultSysSystemMappingService.duplicateMapping(UUID id, SysSchemaObjectClassDto schema,
  			Map<UUID, UUID> schemaAttributesIds, Map<UUID, UUID> mappedAttributesIds, boolean usedInSameSystem)
focal_class.full_signature: @Override @Transactional public SysSystemMappingDto duplicateMapping(UUID id, SysSchemaObjectClassDto schema,
  			Map<UUID, UUID> schemaAttributesIds, Map<UUID, UUID> mappedAttributesIds, boolean usedInSameSystem)
focal_class.identifier: duplicateMapping
focal_class.modifiers: @Override @Transactional public
focal_class.parameters: (UUID id, SysSchemaObjectClassDto schema,
  			Map<UUID, UUID> schemaAttributesIds, Map<UUID, UUID> mappedAttributesIds, boolean usedInSameSystem)
focal_class.return: SysSystemMappingDto
focal_class.signature: SysSystemMappingDto duplicateMapping(UUID id, SysSchemaObjectClassDto schema,
  			Map<UUID, UUID> schemaAttributesIds, Map<UUID, UUID> mappedAttributesIds, boolean usedInSameSystem)
focal_class.class_method_signature: DefaultSysSystemMappingService.duplicateName(String name)
focal_class.full_signature: private String duplicateName(String name)
focal_class.identifier: duplicateName
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String duplicateName(String name)
focal_class.superclass: extends AbstractEventableDtoService<SysSystemMappingDto, SysSystemMapping, SysSystemMappingFilter>
focal_method.body: @Override
  	public SysSystemMappingDto save(SysSystemMappingDto dto, BasePermission... permission) {
  		SystemEntityType entityType = dto.getEntityType();
  		if (SystemOperationType.PROVISIONING == dto.getOperationType() && !entityType.isSupportsProvisioning()) {
  			throw new ResultCodeException(AccResultCode.PROVISIONING_NOT_SUPPORTS_ENTITY_TYPE, ImmutableMap.of("entityType", entityType));
  		}
  
  		// Validate all sub attributes
  		getAttributeMappingService()
  				.findBySystemMapping(dto).forEach(attribute -> {
  					getAttributeMappingService().validate(attribute, dto);
  				});
  		return super.save(dto, permission);
  	}
focal_method.class_method_signature: DefaultSysSystemMappingService.save(SysSystemMappingDto dto, BasePermission... permission)
focal_method.full_signature: @Override public SysSystemMappingDto save(SysSystemMappingDto dto, BasePermission... permission)
focal_method.identifier: save
focal_method.invocations: getEntityType getOperationType isSupportsProvisioning of forEach findBySystemMapping getAttributeMappingService validate getAttributeMappingService save
focal_method.modifiers: @Override public
focal_method.parameters: (SysSystemMappingDto dto, BasePermission... permission)
focal_method.return: SysSystemMappingDto
focal_method.signature: SysSystemMappingDto save(SysSystemMappingDto dto, BasePermission... permission)