Search in sources :

Example 1 with IdmFormAttributeFilter

use of eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter in project CzechIdMng by bcvsolutions.

the class FormAttributeDeleteBulkActionIntegrationTest method testProcessBulkActionByFilter.

@Test
public void testProcessBulkActionByFilter() {
    List<IdmFormAttributeDto> attributes = createAttributes(5);
    IdmFormAttributeFilter filter = new IdmFormAttributeFilter();
    filter.setId(attributes.get(2).getId());
    List<IdmFormAttributeDto> checkAttributes = service.find(filter, null).getContent();
    Assert.assertEquals(1, checkAttributes.size());
    IdmBulkActionDto bulkAction = findBulkAction(IdmFormAttribute.class, FormAttributeDeleteBulkAction.NAME);
    bulkAction.setTransformedFilter(filter);
    bulkAction.setFilter(toMap(filter));
    IdmBulkActionDto processAction = bulkActionManager.processAction(bulkAction);
    checkResultLrt(processAction, 1l, null, null);
    Assert.assertNull(service.get(attributes.get(2)));
    Assert.assertNotNull(service.get(attributes.get(1)));
    Assert.assertNotNull(service.get(attributes.get(3)));
}
Also used : IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) IdmBulkActionDto(eu.bcvsolutions.idm.core.api.bulk.action.dto.IdmBulkActionDto) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) AbstractBulkActionTest(eu.bcvsolutions.idm.test.api.AbstractBulkActionTest) Test(org.junit.Test)

Example 2 with IdmFormAttributeFilter

use of eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter in project CzechIdMng by bcvsolutions.

the class ComplexHrProcessIntegrationTest method otherStuffClenaup.

private void otherStuffClenaup() {
    // script cleanup
    IdmScriptDto dto = scriptService.getByCode(stringToLocalDateScript);
    scriptService.delete(dto);
    dto = scriptService.getByCode(getIdentityUuidByPersonalNumScript);
    scriptService.delete(dto);
    // generator setting removal
    IdmGenerateValueFilter generatorFilter = new IdmGenerateValueFilter();
    generatorFilter.setDtoType(IdmIdentityDto.class.getCanonicalName());
    generatedAttributeService.find(generatorFilter, null).getContent().stream().filter(gen -> IdentityUsernameGenerator.class.getCanonicalName().equals(gen.getGeneratorType())).forEach(gen -> {
        generatedAttributeService.delete(gen);
    });
    generatedAttributeService.find(generatorFilter, null).getContent().stream().filter(gen -> IdentityEmailGenerator.class.getCanonicalName().equals(gen.getGeneratorType())).forEach(gen -> {
        generatedAttributeService.delete(gen);
    });
    // identity EAV
    IdmFormAttributeFilter formAttrFilt = new IdmFormAttributeFilter();
    formAttrFilt.setCode(eavAutoRoleAttrName);
    List<IdmFormAttributeDto> attrs = formAttrService.find(formAttrFilt, null).getContent();
    attrs.forEach(attr -> {
        // if deleted after identity is deleted, no value remains
        formService.deleteAttribute(attr);
    });
}
Also used : Arrays(java.util.Arrays) IdmScriptCategory(eu.bcvsolutions.idm.core.api.domain.IdmScriptCategory) IdmIdentityRoleDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityRoleDto) ZonedDateTime(java.time.ZonedDateTime) SysSystemFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSystemFilter) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) IdmIdentityContract(eu.bcvsolutions.idm.core.model.entity.IdmIdentityContract) Autowired(org.springframework.beans.factory.annotation.Autowired) IdmTreeNodeFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmTreeNodeFilter) FormService(eu.bcvsolutions.idm.core.eav.api.service.FormService) StringUtils(org.apache.commons.lang3.StringUtils) InMemoryDirectoryServer(com.unboundid.ldap.listener.InMemoryDirectoryServer) Map(java.util.Map) IdmLongRunningTaskFilter(eu.bcvsolutions.idm.core.scheduler.api.dto.filter.IdmLongRunningTaskFilter) SynchronizationUnlinkedActionType(eu.bcvsolutions.idm.acc.domain.SynchronizationUnlinkedActionType) Task(eu.bcvsolutions.idm.core.scheduler.api.dto.Task) IdmRoleFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmRoleFilter) IdentityUsernameGenerator(eu.bcvsolutions.idm.core.generator.identity.IdentityUsernameGenerator) AbstractSysSyncConfigDto(eu.bcvsolutions.idm.acc.dto.AbstractSysSyncConfigDto) LDIFReader(com.unboundid.ldif.LDIFReader) AutomaticRoleAttributeRuleType(eu.bcvsolutions.idm.core.api.domain.AutomaticRoleAttributeRuleType) RecursionType(eu.bcvsolutions.idm.core.api.domain.RecursionType) IdmIdentityContractService(eu.bcvsolutions.idm.core.api.service.IdmIdentityContractService) SysSchemaAttributeFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSchemaAttributeFilter) IcConnectorKeyImpl(eu.bcvsolutions.idm.ic.impl.IcConnectorKeyImpl) SystemOperationType(eu.bcvsolutions.idm.acc.domain.SystemOperationType) LongRunningFutureTask(eu.bcvsolutions.idm.core.scheduler.api.dto.LongRunningFutureTask) HrEndContractProcess(eu.bcvsolutions.idm.core.scheduler.task.impl.hr.HrEndContractProcess) Set(java.util.Set) IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) ReconciliationMissingAccountActionType(eu.bcvsolutions.idm.acc.domain.ReconciliationMissingAccountActionType) IdentityState(eu.bcvsolutions.idm.core.api.domain.IdentityState) Serializable(java.io.Serializable) SysProvisioningOperationFilter(eu.bcvsolutions.idm.acc.dto.filter.SysProvisioningOperationFilter) IdmRoleCatalogueService(eu.bcvsolutions.idm.core.api.service.IdmRoleCatalogueService) IdmAutomaticRoleAttributeRuleService(eu.bcvsolutions.idm.core.api.service.IdmAutomaticRoleAttributeRuleService) IdmIdentityContractFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmIdentityContractFilter) IdmGenerateValueDto(eu.bcvsolutions.idm.core.api.dto.IdmGenerateValueDto) HrEnableContractProcess(eu.bcvsolutions.idm.core.scheduler.task.impl.hr.HrEnableContractProcess) SynchronizationSchedulableTaskExecutor(eu.bcvsolutions.idm.acc.scheduler.task.impl.SynchronizationSchedulableTaskExecutor) IdmTreeNodeService(eu.bcvsolutions.idm.core.api.service.IdmTreeNodeService) IdmRoleTreeNodeService(eu.bcvsolutions.idm.core.api.service.IdmRoleTreeNodeService) IdmRoleCompositionDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleCompositionDto) EntityEventProcessor(eu.bcvsolutions.idm.core.api.event.EntityEventProcessor) Schema(com.unboundid.ldap.sdk.schema.Schema) RoleEvent(eu.bcvsolutions.idm.core.model.event.RoleEvent) CollectionUtils(org.apache.commons.collections4.CollectionUtils) ArrayList(java.util.ArrayList) Lists(com.google.common.collect.Lists) SynchronizationLinkedActionType(eu.bcvsolutions.idm.acc.domain.SynchronizationLinkedActionType) AbstractIntegrationTest(eu.bcvsolutions.idm.test.api.AbstractIntegrationTest) RoleEventType(eu.bcvsolutions.idm.core.model.event.RoleEvent.RoleEventType) LDAPException(com.unboundid.ldap.sdk.LDAPException) Before(org.junit.Before) SysRoleSystemAttributeService(eu.bcvsolutions.idm.acc.service.api.SysRoleSystemAttributeService) IdmFormDefinitionFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormDefinitionFilter) SchedulerConfiguration(eu.bcvsolutions.idm.core.scheduler.api.config.SchedulerConfiguration) HrContractExclusionProcess(eu.bcvsolutions.idm.core.scheduler.task.impl.hr.HrContractExclusionProcess) LongRunningTaskManager(eu.bcvsolutions.idm.core.scheduler.api.service.LongRunningTaskManager) IdmGenerateValueFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmGenerateValueFilter) IdmRoleService(eu.bcvsolutions.idm.core.api.service.IdmRoleService) OperationState(eu.bcvsolutions.idm.core.api.domain.OperationState) IOException(java.io.IOException) Test(org.junit.Test) EntityManager(javax.persistence.EntityManager) SysSyncContractConfigDto(eu.bcvsolutions.idm.acc.dto.SysSyncContractConfigDto) IdmFormDefinitionDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto) ScriptAuthorityType(eu.bcvsolutions.idm.core.api.domain.ScriptAuthorityType) IdmRoleDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleDto) IdmLongRunningTaskDto(eu.bcvsolutions.idm.core.scheduler.api.dto.IdmLongRunningTaskDto) CoreResultCode(eu.bcvsolutions.idm.core.api.domain.CoreResultCode) SysSystemAttributeMappingDto(eu.bcvsolutions.idm.acc.dto.SysSystemAttributeMappingDto) AutomaticRoleAttributeRuleComparison(eu.bcvsolutions.idm.core.api.domain.AutomaticRoleAttributeRuleComparison) IdmIdentity_(eu.bcvsolutions.idm.core.model.entity.IdmIdentity_) Assert(org.junit.Assert) LDAPConnection(com.unboundid.ldap.sdk.LDAPConnection) Entry(com.unboundid.ldap.sdk.Entry) SysSchemaAttributeDto(eu.bcvsolutions.idm.acc.dto.SysSchemaAttributeDto) SysSyncConfigFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSyncConfigFilter) IdmTreeNodeDto(eu.bcvsolutions.idm.core.api.dto.IdmTreeNodeDto) InMemoryDirectoryServerConfig(com.unboundid.ldap.listener.InMemoryDirectoryServerConfig) TestContractResource(eu.bcvsolutions.idm.acc.entity.TestContractResource) SysConnectorKeyDto(eu.bcvsolutions.idm.acc.dto.SysConnectorKeyDto) IdmAutomaticRoleAttributeDto(eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeDto) IdmFormValueDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormValueDto) SysRoleSystemService(eu.bcvsolutions.idm.acc.service.api.SysRoleSystemService) IdmAutomaticRoleAttributeRuleDto(eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeRuleDto) After(org.junit.After) SynchronizationMissingEntityActionType(eu.bcvsolutions.idm.acc.domain.SynchronizationMissingEntityActionType) IdmFormAttributeService(eu.bcvsolutions.idm.core.eav.api.service.IdmFormAttributeService) Assert.fail(org.junit.Assert.fail) SysSyncConfigService(eu.bcvsolutions.idm.acc.service.api.SysSyncConfigService) IdmScriptAuthorityDto(eu.bcvsolutions.idm.core.api.dto.IdmScriptAuthorityDto) ImmutableMap(com.google.common.collect.ImmutableMap) IdmGenerateValueService(eu.bcvsolutions.idm.core.api.service.IdmGenerateValueService) Collection(java.util.Collection) SysProvisioningOperationService(eu.bcvsolutions.idm.acc.service.api.SysProvisioningOperationService) ProvisioningAttributeDto(eu.bcvsolutions.idm.acc.dto.ProvisioningAttributeDto) SysSchemaObjectClassDto(eu.bcvsolutions.idm.acc.dto.SysSchemaObjectClassDto) IdmRoleCompositionService(eu.bcvsolutions.idm.core.api.service.IdmRoleCompositionService) UUID(java.util.UUID) SchedulerManager(eu.bcvsolutions.idm.core.scheduler.api.service.SchedulerManager) Collectors(java.util.stream.Collectors) SysSyncIdentityConfigDto(eu.bcvsolutions.idm.acc.dto.SysSyncIdentityConfigDto) Objects(java.util.Objects) IdmEntityStateDto(eu.bcvsolutions.idm.core.api.dto.IdmEntityStateDto) List(java.util.List) Query(javax.persistence.Query) EventConfiguration(eu.bcvsolutions.idm.core.api.config.domain.EventConfiguration) LocalDate(java.time.LocalDate) IdmRoleCatalogueFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmRoleCatalogueFilter) SysRoleSystemDto(eu.bcvsolutions.idm.acc.dto.SysRoleSystemDto) IdmIdentityService(eu.bcvsolutions.idm.core.api.service.IdmIdentityService) TestResource(eu.bcvsolutions.idm.acc.entity.TestResource) IdmAutomaticRoleAttributeService(eu.bcvsolutions.idm.core.api.service.IdmAutomaticRoleAttributeService) AttributeMappingStrategyType(eu.bcvsolutions.idm.acc.domain.AttributeMappingStrategyType) IdmScriptService(eu.bcvsolutions.idm.core.api.service.IdmScriptService) HashMap(java.util.HashMap) SysSystemDto(eu.bcvsolutions.idm.acc.dto.SysSystemDto) LDIFException(com.unboundid.ldif.LDIFException) IdmTreeTypeDto(eu.bcvsolutions.idm.core.api.dto.IdmTreeTypeDto) PersistentType(eu.bcvsolutions.idm.core.eav.api.domain.PersistentType) HashSet(java.util.HashSet) SysSystemMappingService(eu.bcvsolutions.idm.acc.service.api.SysSystemMappingService) EntityStateManager(eu.bcvsolutions.idm.core.api.service.EntityStateManager) SystemEntityType(eu.bcvsolutions.idm.acc.domain.SystemEntityType) OperationResultDto(eu.bcvsolutions.idm.core.api.dto.OperationResultDto) IdmRoleCatalogueRoleDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleCatalogueRoleDto) IdmLongRunningTaskService(eu.bcvsolutions.idm.core.scheduler.api.service.IdmLongRunningTaskService) IdmIdentityContractDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityContractDto) EntityEvent(eu.bcvsolutions.idm.core.api.event.EntityEvent) SysProvisioningOperationDto(eu.bcvsolutions.idm.acc.dto.SysProvisioningOperationDto) IdmTreeTypeFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmTreeTypeFilter) IdmRoleCatalogueDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleCatalogueDto) IdmIdentityRoleService(eu.bcvsolutions.idm.core.api.service.IdmIdentityRoleService) IdmIdentityRoleFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmIdentityRoleFilter) SysSystemService(eu.bcvsolutions.idm.acc.service.api.SysSystemService) IdmIdentityDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto) IdmTreeTypeService(eu.bcvsolutions.idm.core.api.service.IdmTreeTypeService) IdmRoleCatalogueRoleService(eu.bcvsolutions.idm.core.api.service.IdmRoleCatalogueRoleService) FileInputStream(java.io.FileInputStream) ApplicationContext(org.springframework.context.ApplicationContext) IdmScriptDto(eu.bcvsolutions.idm.core.api.dto.IdmScriptDto) SysRoleSystemAttributeDto(eu.bcvsolutions.idm.acc.dto.SysRoleSystemAttributeDto) ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) SysSchemaAttributeService(eu.bcvsolutions.idm.acc.service.api.SysSchemaAttributeService) IdmRoleTreeNodeDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleTreeNodeDto) SysSystemAttributeMappingFilter(eu.bcvsolutions.idm.acc.dto.filter.SysSystemAttributeMappingFilter) IdmFormDefinitionService(eu.bcvsolutions.idm.core.eav.api.service.IdmFormDefinitionService) IdentityEmailGenerator(eu.bcvsolutions.idm.core.generator.identity.IdentityEmailGenerator) SysSystemMappingDto(eu.bcvsolutions.idm.acc.dto.SysSystemMappingDto) TestHelper(eu.bcvsolutions.idm.acc.TestHelper) SysSystemAttributeMappingService(eu.bcvsolutions.idm.acc.service.api.SysSystemAttributeMappingService) IdmScriptAuthorityService(eu.bcvsolutions.idm.core.api.service.IdmScriptAuthorityService) InputStream(java.io.InputStream) Transactional(org.springframework.transaction.annotation.Transactional) IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) IdmScriptDto(eu.bcvsolutions.idm.core.api.dto.IdmScriptDto) IdmGenerateValueFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmGenerateValueFilter) IdentityUsernameGenerator(eu.bcvsolutions.idm.core.generator.identity.IdentityUsernameGenerator) IdentityEmailGenerator(eu.bcvsolutions.idm.core.generator.identity.IdentityEmailGenerator) IdmIdentityDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto)

Example 3 with IdmFormAttributeFilter

use of eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter in project CzechIdMng by bcvsolutions.

the class ComplexHrProcessIntegrationTest method addEavIdentityContractFormDef.

/**
 * Creating required contract EAV attribute for the purpose of automatic roles assignment
 */
private void addEavIdentityContractFormDef() {
    IdmFormDefinitionFilter filt = new IdmFormDefinitionFilter();
    filt.setType(IdmIdentityContract.class.getCanonicalName());
    filt.setMain(true);
    IdmFormDefinitionDto formDef = formDefService.find(filt, null).getContent().get(0);
    IdmFormAttributeFilter formAttrFilt = new IdmFormAttributeFilter();
    formAttrFilt.setCode(eavAutoRoleAttrName);
    formAttrFilt.setDefinitionId(formDef.getId());
    if (formAttrService.count(formAttrFilt) > 0) {
        // already created
        return;
    }
    IdmFormAttributeDto formAttr = new IdmFormAttributeDto();
    formAttr.setCode(eavAutoRoleAttrName);
    formAttr.setName(eavAutoRoleAttrName);
    formAttr.setPersistentType(PersistentType.SHORTTEXT);
    formAttr.setFormDefinition(formDef.getId());
    formAttrService.save(formAttr);
}
Also used : IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) IdmFormDefinitionFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormDefinitionFilter) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) IdmFormDefinitionDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto) IdmIdentityContract(eu.bcvsolutions.idm.core.model.entity.IdmIdentityContract)

Example 4 with IdmFormAttributeFilter

use of eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter in project CzechIdMng by bcvsolutions.

the class ComplexHrProcessIntegrationTest method createAutoRoleByAttribute.

/**
 * Defines automatic roles assigned based on contract attribute
 */
private void createAutoRoleByAttribute() {
    IdmAutomaticRoleAttributeRuleDto attrRule = new IdmAutomaticRoleAttributeRuleDto();
    IdmFormAttributeDto formAttr = null;
    IdmAutomaticRoleAttributeDto roleAtt = null;
    IdmFormAttributeFilter formAttrFilt = new IdmFormAttributeFilter();
    formAttrFilt.setCode(eavAutoRoleAttrName);
    formAttr = formAttrService.find(formAttrFilt, null).getContent().get(0);
    // common part
    attrRule.setComparison(AutomaticRoleAttributeRuleComparison.EQUALS);
    attrRule.setType(AutomaticRoleAttributeRuleType.CONTRACT_EAV);
    attrRule.setAttributeName(formAttr.getName());
    attrRule.setFormAttribute(formAttr.getId());
    // Consultant autorole
    roleAtt = new IdmAutomaticRoleAttributeDto();
    roleAtt.setRole(roleService.getByCode(consultantBusinessRole).getId());
    roleAtt.setName("Consultant autorole");
    roleAtt = autoRoleAttrService.save(roleAtt);
    attrRule.setValue(consultantPositionName);
    attrRule.setAutomaticRoleAttribute(roleAtt.getId());
    attrRule = autoRoleAttrRuleService.save(attrRule);
    // concept needs to be set to false after rule's been saved
    roleAtt.setConcept(false);
    roleAtt = autoRoleAttrService.save(roleAtt);
    // Director autorole
    roleAtt = new IdmAutomaticRoleAttributeDto();
    roleAtt.setRole(roleService.getByCode(adGroupDirectorRole).getId());
    roleAtt.setName("Director autorole");
    roleAtt = autoRoleAttrService.save(roleAtt);
    attrRule.setId(null);
    attrRule.setValue(directorPositionName);
    attrRule.setAutomaticRoleAttribute(roleAtt.getId());
    attrRule = autoRoleAttrRuleService.save(attrRule);
    // concept needs to be set to false after rule's been saved
    roleAtt.setConcept(false);
    roleAtt = autoRoleAttrService.save(roleAtt);
}
Also used : IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) IdmAutomaticRoleAttributeRuleDto(eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeRuleDto) IdmAutomaticRoleAttributeDto(eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeDto)

Example 5 with IdmFormAttributeFilter

use of eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter in project CzechIdMng by bcvsolutions.

the class FormDefinitionDeleteProcessor method process.

@Override
public EventResult<IdmFormDefinitionDto> process(EntityEvent<IdmFormDefinitionDto> event) {
    IdmFormDefinitionDto formDefinition = event.getContent();
    UUID id = formDefinition.getId();
    Assert.notNull(id, "Form definition identifier is required for delete.");
    // 
    boolean forceDelete = getBooleanProperty(PROPERTY_FORCE_DELETE, event.getProperties());
    if (forceDelete) {
        // 
        // delete all attributes in definition
        IdmFormAttributeFilter filter = new IdmFormAttributeFilter();
        filter.setDefinitionId(id);
        formAttributeService.find(filter, null).forEach(formAttribute -> {
            Map<String, Serializable> properties = new HashMap<>();
            // force
            properties.put(EntityEventProcessor.PROPERTY_FORCE_DELETE, Boolean.TRUE);
            FormAttributeEvent formAttributeEvent = new FormAttributeEvent(FormAttributeEventType.DELETE, formAttribute, properties);
            // 
            formAttributeService.publish(formAttributeEvent, event);
        });
    }
    // 
    formDefinitionService.deleteInternal(formDefinition);
    // 
    return new DefaultEventResult<>(event, this);
}
Also used : IdmFormAttributeFilter(eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter) Serializable(java.io.Serializable) HashMap(java.util.HashMap) DefaultEventResult(eu.bcvsolutions.idm.core.api.event.DefaultEventResult) IdmFormDefinitionDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto) UUID(java.util.UUID) FormAttributeEvent(eu.bcvsolutions.idm.core.eav.api.event.FormAttributeEvent)

Aggregations

IdmFormAttributeFilter (eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormAttributeFilter)14 IdmFormAttributeDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto)8 IdmFormDefinitionDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto)6 Test (org.junit.Test)4 Transactional (org.springframework.transaction.annotation.Transactional)4 SysSystemDto (eu.bcvsolutions.idm.acc.dto.SysSystemDto)3 IdmFormDefinitionFilter (eu.bcvsolutions.idm.core.eav.api.dto.filter.IdmFormDefinitionFilter)3 AbstractIntegrationTest (eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)3 UUID (java.util.UUID)3 AbstractSysSyncConfigDto (eu.bcvsolutions.idm.acc.dto.AbstractSysSyncConfigDto)2 IdmAutomaticRoleAttributeDto (eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeDto)2 IdmAutomaticRoleAttributeRuleDto (eu.bcvsolutions.idm.core.api.dto.IdmAutomaticRoleAttributeRuleDto)2 IdmRoleDto (eu.bcvsolutions.idm.core.api.dto.IdmRoleDto)2 IdmRoleFilter (eu.bcvsolutions.idm.core.api.dto.filter.IdmRoleFilter)2 IdmIdentityContract (eu.bcvsolutions.idm.core.model.entity.IdmIdentityContract)2 Serializable (java.io.Serializable)2 HashMap (java.util.HashMap)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Lists (com.google.common.collect.Lists)1 InMemoryDirectoryServer (com.unboundid.ldap.listener.InMemoryDirectoryServer)1