Search in sources :

Example 36 with CoreException

use of eu.bcvsolutions.idm.core.api.exception.CoreException in project CzechIdMng by bcvsolutions.

the class AdUserConnectorType method executeStepOne.

/**
 * Execute first step of AD wizard.
 */
protected void executeStepOne(ConnectorTypeDto connectorType) {
    String port = connectorType.getMetadata().get(PORT);
    Assert.notNull(port, "Port cannot be null!");
    String host = connectorType.getMetadata().get(HOST);
    Assert.notNull(host, "Host cannot be null!");
    String user = connectorType.getMetadata().get(USER);
    Assert.notNull(user, "Username cannot be null!");
    String sslSwitch = connectorType.getMetadata().get(SSL_SWITCH);
    Assert.notNull(sslSwitch, "SSL switch cannot be null!");
    String password = connectorType.getMetadata().get(PASSWORD);
    String systemId = connectorType.getMetadata().get(SYSTEM_DTO_KEY);
    SysSystemDto systemDto;
    boolean create = true;
    if (systemId != null) {
        // System already exists.
        create = false;
        systemDto = getSystemService().get(UUID.fromString(systemId), IdmBasePermission.READ);
    } else {
        // Create new system.
        systemDto = new SysSystemDto();
        // System is set as readOnly only if is new.
        systemDto.setReadonly(true);
    }
    systemDto.setName(connectorType.getMetadata().get(SYSTEM_NAME));
    // Resolve remote system.
    systemDto.setRemoteServer(connectorType.getRemoteServer());
    // Find connector key and set it to the system.
    IcConnectorKey connectorKey = getConnectorManager().findConnectorKey(connectorType);
    Assert.notNull(connectorKey, "Connector key was not found!");
    systemDto.setConnectorKey(new SysConnectorKeyDto(connectorKey));
    // Check permission on create or update system (others permissions will be not checked (EAV for identity, mapping, sync, entity state ...)).
    systemDto = getSystemService().save(systemDto, create ? IdmBasePermission.CREATE : IdmBasePermission.UPDATE);
    // Put new system to the connector type (will be returned to FE).
    connectorType.getEmbedded().put(SYSTEM_DTO_KEY, systemDto);
    connectorType.getMetadata().put(SYSTEM_DTO_KEY, systemDto.getId().toString());
    IdmFormDefinitionDto connectorFormDef = this.getSystemService().getConnectorFormDefinition(systemDto);
    // Set the port.
    this.setValueToConnectorInstance(PORT, port, systemDto, connectorFormDef);
    // Set the host.
    this.setValueToConnectorInstance(HOST, host, systemDto, connectorFormDef);
    // Set the user.
    this.setValueToConnectorInstance(PRINCIPAL, user, systemDto, connectorFormDef);
    // Set the SSL switch.
    this.setValueToConnectorInstance(SSL, sslSwitch, systemDto, connectorFormDef);
    // Set the password.
    // Password is mandatory only if none exists in connector configuration.
    String passwordInSystem = this.getValueFromConnectorInstance(CREDENTIALS, systemDto, connectorFormDef);
    if (Strings.isNotBlank(password) && !GuardedString.SECRED_PROXY_STRING.equals(password)) {
        this.setValueToConnectorInstance(CREDENTIALS, password, systemDto, connectorFormDef);
    } else {
        Assert.notNull(passwordInSystem, "Password cannot be null!");
        // Load from confidential storage.
        password = getConfidentialValueFromConnectorInstance(CREDENTIALS, systemDto, connectorFormDef);
    }
    // Find domain DN.
    if (Strings.isBlank(connectorType.getMetadata().get(DOMAIN_KEY))) {
        String defaultNamingContext = this.findDnsHostName("389", host, user, password, false);
        connectorType.getMetadata().put(DOMAIN_KEY, defaultNamingContext);
    }
    // Find Users container DN.
    String usersContainerDN = this.findDn("(&(CN=Users)(objectClass=container))", "389", host, user, password, false);
    connectorType.getMetadata().put(TEST_USER_CONTAINER_KEY, usersContainerDN);
    // Find Domain Users group DN.
    String domainUsersDN = this.findDn("(&(CN=Domain Guests)(objectClass=group))", "389", host, user, password, false);
    connectorType.getMetadata().put(TEST_GROUP_KEY, domainUsersDN);
    // Generate random test user name.
    connectorType.getMetadata().put(TEST_USERNAME_KEY, MessageFormat.format("TestUserIdM_{0}", UUID.randomUUID().toString().substring(0, 8)));
    if (!Boolean.parseBoolean(sslSwitch)) {
        // LDAPS is trun off, this step will be skipped.
        return;
    }
    Pair<X509Certificate, Boolean> serverCertificatePair = getServerCertificate(port, host);
    if (serverCertificatePair != null) {
        boolean hasTrustedCA = serverCertificatePair.getValue();
        // Put information if the server already has trusted certificate.
        connectorType.getMetadata().put(HAS_TRUSTED_CA_KEY, String.valueOf(hasTrustedCA));
        X509Certificate serverCertificate = serverCertificatePair.getKey();
        X509Certificate resultCertificate = getCertificateFromAD(serverCertificate, port, host, user, password);
        if (resultCertificate != null) {
            try {
                // Save CA as file.
                File caFile = new File(Paths.get(getTrustedCaFolder(), getCaFileName(resultCertificate)).toString());
                FileUtils.copyInputStreamToFile(CertificateUtils.certificateToPem(resultCertificate), caFile);
                // Save certificate as a temporary attachment.
                IdmAttachmentDto attachment = new IdmAttachmentDto();
                attachment.setOwnerType(AttachmentManager.TEMPORARY_ATTACHMENT_OWNER_TYPE);
                attachment.setName("AD_CA");
                attachment.setMimetype("application/x-pem-file");
                attachment.setInputData(CertificateUtils.certificateToPem(resultCertificate));
                attachment = attachmentManager.saveAttachment(null, attachment);
                // Save server certificate as a temporary attachment.
                IdmAttachmentDto serverAttachment = new IdmAttachmentDto();
                serverAttachment.setOwnerType(AttachmentManager.TEMPORARY_ATTACHMENT_OWNER_TYPE);
                serverAttachment.setName("SERVER_AD_CA");
                serverAttachment.setMimetype("application/x-pem-file");
                serverAttachment.setInputData(CertificateUtils.certificateToPem(serverCertificate));
                serverAttachment = attachmentManager.saveAttachment(null, serverAttachment);
                // Put data to connectorType for FE
                connectorType.getMetadata().put(CRT_ATTACHMENT_ID_KEY, attachment.getId().toString());
                connectorType.getMetadata().put(CRT_SUBJECT_DN_KEY, resultCertificate.getSubjectDN().getName());
                connectorType.getMetadata().put(CRT_VALIDITY_FROM_KEY, getZonedDateTime(resultCertificate.getNotBefore()));
                connectorType.getMetadata().put(CRT_VALIDITY_TILL_KEY, getZonedDateTime(resultCertificate.getNotAfter()));
                // Fingerprint by SHA1 (is use in windows certificate manager)
                connectorType.getMetadata().put(CRT_FINGER_PRINT_KEY, DigestUtils.sha1Hex(resultCertificate.getEncoded()));
                connectorType.getMetadata().put(CRT_FILE_PATH_KEY, Paths.get(caFile.getAbsolutePath()).toString());
                // Put data to connectorType for FE
                connectorType.getMetadata().put(SERVER_CRT_ATTACHMENT_ID_KEY, serverAttachment.getId().toString());
                connectorType.getMetadata().put(SERVER_CRT_SUBJECT_DN_KEY, serverCertificate.getSubjectDN().getName());
                connectorType.getMetadata().put(SERVER_CRT_VALIDITY_FROM_KEY, getZonedDateTime(serverCertificate.getNotBefore()));
                connectorType.getMetadata().put(SERVER_CRT_VALIDITY_TILL_KEY, getZonedDateTime(serverCertificate.getNotAfter()));
                // Fingerprint by SHA1 (is use in windows certificate manager)
                connectorType.getMetadata().put(SERVER_CRT_FINGER_PRINT_KEY, DigestUtils.sha1Hex(serverCertificate.getEncoded()));
            } catch (CertificateException | IOException ex) {
                throw new CoreException(ex.getLocalizedMessage(), ex);
            }
        }
    }
}
Also used : IdmAttachmentDto(eu.bcvsolutions.idm.core.ecm.api.dto.IdmAttachmentDto) SysConnectorKeyDto(eu.bcvsolutions.idm.acc.dto.SysConnectorKeyDto) IcConnectorKey(eu.bcvsolutions.idm.ic.api.IcConnectorKey) IdmFormDefinitionDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto) CertificateException(java.security.cert.CertificateException) GuardedString(eu.bcvsolutions.idm.core.security.api.domain.GuardedString) IOException(java.io.IOException) SysSystemDto(eu.bcvsolutions.idm.acc.dto.SysSystemDto) X509Certificate(java.security.cert.X509Certificate) CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) File(java.io.File)

Example 37 with CoreException

use of eu.bcvsolutions.idm.core.api.exception.CoreException in project CzechIdMng by bcvsolutions.

the class AbstractSchedulableTaskExecutor method execute.

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
    if (this.isDisabled()) {
        LOG.warn("Task [{}] is disabled and cannot be executed, remove schedule for this task to hide this warning.", AutowireHelper.getTargetClass(this).getSimpleName());
        // 
        return;
    }
    String executionDateProperty = context.getMergedJobDataMap().getString(EntityEvent.EVENT_PROPERTY_EXECUTE_DATE);
    if (StringUtils.isNotBlank(executionDateProperty)) {
        ZonedDateTime executionDate = ZonedDateTime.parse(executionDateProperty);
        // Is it safe to ask about now and count with delay after task execution?
        if (ZonedDateTime.now().isBefore(executionDate)) {
            LOG.debug("Task [{}] first fire time will be executed after [{}].", AutowireHelper.getTargetClass(this).getSimpleName(), executionDateProperty);
            // 
            return;
        }
    }
    // run as system - called from scheduler internall
    if (securityService.isAuthenticated() && !securityService.isSystemAuthenticated()) {
        throw new CoreException("System want to reuse thread logged with identity [" + securityService.getCurrentUsername() + "] for system processing!");
    }
    securityService.setSystemAuthentication();
    // 
    // scheduled task is quartz reference to IdM entity
    IdmScheduledTaskDto taskDto = getScheduledTask(context);
    // 
    // add task to queue only - quartz will start take care of the rest
    createIdmLongRunningTask(context, taskDto);
}
Also used : CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) ZonedDateTime(java.time.ZonedDateTime) IdmScheduledTaskDto(eu.bcvsolutions.idm.core.scheduler.api.dto.IdmScheduledTaskDto)

Example 38 with CoreException

use of eu.bcvsolutions.idm.core.api.exception.CoreException in project CzechIdMng by bcvsolutions.

the class DefaultRequestManager method findPotencialParents.

/**
 * Find potential parents. Invokes all method with UUID return type and without
 * input parameters.
 *
 * @param filter
 * @return
 */
private List<RequestPredicate> findPotencialParents(BaseFilter filter) {
    Assert.notNull(filter, "Filter is mandatory!");
    List<MethodDescriptor> descriptors;
    try {
        descriptors = // 
        Lists.newArrayList(Introspector.getBeanInfo(filter.getClass()).getMethodDescriptors()).stream().filter(// 
        methodDescriptor -> UUID.class.equals(methodDescriptor.getMethod().getReturnType())).filter(methodDescriptor -> methodDescriptor.getMethod().getParameterTypes() == null || // 
        methodDescriptor.getMethod().getParameterTypes().length == 0).collect(Collectors.toList());
    } catch (IntrospectionException e) {
        throw new CoreException(e);
    }
    // 
    List<RequestPredicate> results = new ArrayList<>();
    descriptors.stream().forEach(descriptor -> {
        try {
            Object value = descriptor.getMethod().invoke(filter, new Object[] {});
            if (value == null) {
                return;
            }
            RequestFilterPredicate filterPredicate = descriptor.getMethod().getAnnotation(RequestFilterPredicate.class);
            results.add(new RequestPredicate((UUID) value, filterPredicate != null ? filterPredicate.field() : null));
        } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
            throw new CoreException(e);
        }
    });
    return results;
}
Also used : DtoUtils(eu.bcvsolutions.idm.core.api.utils.DtoUtils) IdmRequestItemDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestItemDto) IdmFormAttributeDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto) Autowired(org.springframework.beans.factory.annotation.Autowired) FormService(eu.bcvsolutions.idm.core.eav.api.service.FormService) SecurityService(eu.bcvsolutions.idm.core.security.api.service.SecurityService) Map(java.util.Map) IdmRequestDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestDto) PageRequest(org.springframework.data.domain.PageRequest) Page(org.springframework.data.domain.Page) IntrospectionException(java.beans.IntrospectionException) Serializable(java.io.Serializable) InvocationTargetException(java.lang.reflect.InvocationTargetException) PropertyDescriptor(java.beans.PropertyDescriptor) Builder(eu.bcvsolutions.idm.core.api.dto.OperationResultDto.Builder) Lazy(org.springframework.context.annotation.Lazy) GuardedString(eu.bcvsolutions.idm.core.security.api.domain.GuardedString) RequestOperationType(eu.bcvsolutions.idm.core.api.domain.RequestOperationType) ArrayList(java.util.ArrayList) LinkedHashMap(java.util.LinkedHashMap) Introspector(java.beans.Introspector) Strings(com.google.common.base.Strings) AbstractDto(eu.bcvsolutions.idm.core.api.dto.AbstractDto) IdmBasePermission(eu.bcvsolutions.idm.core.security.api.domain.IdmBasePermission) Lists(com.google.common.collect.Lists) BaseEntity(eu.bcvsolutions.idm.core.api.entity.BaseEntity) LookupService(eu.bcvsolutions.idm.core.api.service.LookupService) Service(org.springframework.stereotype.Service) WorkflowProcessInstanceService(eu.bcvsolutions.idm.core.workflow.service.WorkflowProcessInstanceService) IdmFormInstanceDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormInstanceDto) Requestable(eu.bcvsolutions.idm.core.api.domain.Requestable) CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) OperationState(eu.bcvsolutions.idm.core.api.domain.OperationState) IOException(java.io.IOException) Field(java.lang.reflect.Field) BaseFilter(eu.bcvsolutions.idm.core.api.dto.filter.BaseFilter) IdmFormDefinitionDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto) IdmRoleDto(eu.bcvsolutions.idm.core.api.dto.IdmRoleDto) IdmRequestItemService(eu.bcvsolutions.idm.core.api.service.IdmRequestItemService) CoreResultCode(eu.bcvsolutions.idm.core.api.domain.CoreResultCode) FormValueService(eu.bcvsolutions.idm.core.eav.api.service.FormValueService) RequestEventType(eu.bcvsolutions.idm.core.model.event.RequestEvent.RequestEventType) BaseDto(eu.bcvsolutions.idm.core.api.dto.BaseDto) EntityEventManager(eu.bcvsolutions.idm.core.api.service.EntityEventManager) Embedded(eu.bcvsolutions.idm.core.api.domain.Embedded) RequestEvent(eu.bcvsolutions.idm.core.model.event.RequestEvent) RequestState(eu.bcvsolutions.idm.core.api.domain.RequestState) RoleRequestException(eu.bcvsolutions.idm.core.api.exception.RoleRequestException) CoreGroupPermission(eu.bcvsolutions.idm.core.model.domain.CoreGroupPermission) IdmFormValueDto(eu.bcvsolutions.idm.core.eav.api.dto.IdmFormValueDto) ResultCodeException(eu.bcvsolutions.idm.core.api.exception.ResultCodeException) BasePermission(eu.bcvsolutions.idm.core.security.api.domain.BasePermission) ProcessInstance(org.activiti.engine.runtime.ProcessInstance) Pageable(org.springframework.data.domain.Pageable) ImmutableMap(com.google.common.collect.ImmutableMap) Collection(java.util.Collection) ReadWriteDtoService(eu.bcvsolutions.idm.core.api.service.ReadWriteDtoService) RequestManager(eu.bcvsolutions.idm.core.api.service.RequestManager) AcceptedException(eu.bcvsolutions.idm.core.api.exception.AcceptedException) UUID(java.util.UUID) Collectors(java.util.stream.Collectors) List(java.util.List) ExceptionUtils(eu.bcvsolutions.idm.core.api.utils.ExceptionUtils) Modifier(java.lang.reflect.Modifier) Entry(java.util.Map.Entry) Identifiable(eu.bcvsolutions.idm.core.api.domain.Identifiable) RoleRequestApprovalProcessor(eu.bcvsolutions.idm.core.model.event.processor.role.RoleRequestApprovalProcessor) PageImpl(org.springframework.data.domain.PageImpl) IdmRequestService(eu.bcvsolutions.idm.core.api.service.IdmRequestService) FormableEntity(eu.bcvsolutions.idm.core.eav.api.entity.FormableEntity) IdmRequestItem(eu.bcvsolutions.idm.core.model.entity.IdmRequestItem) HashMap(java.util.HashMap) MessageFormat(java.text.MessageFormat) ConfidentialStorage(eu.bcvsolutions.idm.core.api.service.ConfidentialStorage) ReadDtoService(eu.bcvsolutions.idm.core.api.service.ReadDtoService) RequestFilterPredicate(eu.bcvsolutions.idm.core.api.domain.RequestFilterPredicate) ImmutableList(com.google.common.collect.ImmutableList) CollectionUtils(org.apache.commons.collections.CollectionUtils) Propagation(org.springframework.transaction.annotation.Propagation) OperationResultDto(eu.bcvsolutions.idm.core.api.dto.OperationResultDto) EntityUtils(eu.bcvsolutions.idm.core.api.utils.EntityUtils) Qualifier(org.springframework.beans.factory.annotation.Qualifier) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore) Niceable(eu.bcvsolutions.idm.core.api.domain.Niceable) IdmRequestItemFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmRequestItemFilter) EntityEvent(eu.bcvsolutions.idm.core.api.event.EntityEvent) Codeable(eu.bcvsolutions.idm.core.api.domain.Codeable) IdmRequestAttributeValueDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestAttributeValueDto) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) IdmRequestItemChangesDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestItemChangesDto) MethodDescriptor(java.beans.MethodDescriptor) ApplicationContext(org.springframework.context.ApplicationContext) ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) IdmRequestItemAttributeDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestItemAttributeDto) Comparator(java.util.Comparator) IdmRequestFilter(eu.bcvsolutions.idm.core.api.dto.filter.IdmRequestFilter) Transactional(org.springframework.transaction.annotation.Transactional) Assert(org.springframework.util.Assert) RequestFilterPredicate(eu.bcvsolutions.idm.core.api.domain.RequestFilterPredicate) IntrospectionException(java.beans.IntrospectionException) ArrayList(java.util.ArrayList) MethodDescriptor(java.beans.MethodDescriptor) InvocationTargetException(java.lang.reflect.InvocationTargetException) CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) UUID(java.util.UUID)

Example 39 with CoreException

use of eu.bcvsolutions.idm.core.api.exception.CoreException in project CzechIdMng by bcvsolutions.

the class DefaultRequestManager method startRequest.

@Override
@Transactional
public IdmRequestDto startRequest(UUID requestId, boolean checkRight) {
    IdmRequestDto request = requestService.get(requestId);
    Assert.notNull(request, "Request is required!");
    try {
        RequestManager service = this.getRequestManager();
        if (!(service instanceof DefaultRequestManager)) {
            throw new CoreException("We expects instace of DefaultRequestManager!");
        }
        return ((DefaultRequestManager) service).startRequestNewTransactional(requestId, checkRight);
    } catch (Exception ex) {
        LOG.error(ex.getLocalizedMessage(), ex);
        request = requestService.get(requestId);
        Throwable exceptionToLog = ExceptionUtils.resolveException(ex);
        if (exceptionToLog instanceof ResultCodeException) {
            // 
            request.setResult(new // 
            OperationResultDto.Builder(// 
            OperationState.EXCEPTION).setException(// 
            (ResultCodeException) exceptionToLog).build());
        } else {
            // 
            request.setResult(new // 
            OperationResultDto.Builder(// 
            OperationState.EXCEPTION).setCause(// 
            exceptionToLog).build());
        }
        request.setState(RequestState.EXCEPTION);
        return requestService.save(request);
    }
}
Also used : RequestManager(eu.bcvsolutions.idm.core.api.service.RequestManager) CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) Builder(eu.bcvsolutions.idm.core.api.dto.OperationResultDto.Builder) ResultCodeException(eu.bcvsolutions.idm.core.api.exception.ResultCodeException) IdmRequestDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestDto) IntrospectionException(java.beans.IntrospectionException) InvocationTargetException(java.lang.reflect.InvocationTargetException) CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) IOException(java.io.IOException) RoleRequestException(eu.bcvsolutions.idm.core.api.exception.RoleRequestException) ResultCodeException(eu.bcvsolutions.idm.core.api.exception.ResultCodeException) AcceptedException(eu.bcvsolutions.idm.core.api.exception.AcceptedException) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) Transactional(org.springframework.transaction.annotation.Transactional)

Example 40 with CoreException

use of eu.bcvsolutions.idm.core.api.exception.CoreException in project CzechIdMng by bcvsolutions.

the class DefaultRequestManager method getChanges.

@SuppressWarnings("unchecked")
@Override
public IdmRequestItemChangesDto getChanges(IdmRequestItemDto item, BasePermission... permission) {
    LOG.debug(MessageFormat.format("Start read request item with changes [{0}].", item));
    Assert.notNull(item, "Idm request item cannot be null!");
    if (Strings.isNullOrEmpty(item.getOwnerType()) || item.getOwnerId() == null) {
        return null;
    }
    Class<? extends Requestable> dtoClass;
    try {
        dtoClass = (Class<? extends Requestable>) Class.forName(item.getOwnerType());
    } catch (ClassNotFoundException e) {
        throw new CoreException(e);
    }
    ReadDtoService<?, ?> readService = getServiceByItem(item, dtoClass);
    Requestable currentDto = (Requestable) readService.get(item.getOwnerId(), permission);
    if (currentDto == null) {
        try {
            currentDto = (Requestable) dtoClass.getDeclaredConstructor().newInstance();
            currentDto.setId(item.getOwnerId());
        } catch (ReflectiveOperationException e) {
            throw new CoreException(e);
        }
    }
    Requestable changedDto = this.get(item.getRequest(), currentDto);
    RequestOperationType itemOperation = item.getOperation();
    List<IdmRequestItemAttributeDto> resultAttributes = getChanges((AbstractDto) currentDto, (AbstractDto) changedDto, itemOperation);
    IdmRequestItemChangesDto result = new IdmRequestItemChangesDto();
    result.setRequestItem(item);
    result.getAttributes().addAll(resultAttributes);
    LOG.debug(MessageFormat.format("End of reading the request item with changes [{0}].", item));
    return result;
}
Also used : CoreException(eu.bcvsolutions.idm.core.api.exception.CoreException) Requestable(eu.bcvsolutions.idm.core.api.domain.Requestable) RequestOperationType(eu.bcvsolutions.idm.core.api.domain.RequestOperationType) IdmRequestItemAttributeDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestItemAttributeDto) IdmRequestItemChangesDto(eu.bcvsolutions.idm.core.api.dto.IdmRequestItemChangesDto)

Aggregations

CoreException (eu.bcvsolutions.idm.core.api.exception.CoreException)64 UUID (java.util.UUID)16 GuardedString (eu.bcvsolutions.idm.core.security.api.domain.GuardedString)15 Test (org.junit.Test)14 ResultCodeException (eu.bcvsolutions.idm.core.api.exception.ResultCodeException)13 IOException (java.io.IOException)12 ArrayList (java.util.ArrayList)11 AcceptedException (eu.bcvsolutions.idm.core.api.exception.AcceptedException)10 AbstractIntegrationTest (eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)9 Field (java.lang.reflect.Field)9 Embedded (eu.bcvsolutions.idm.core.api.domain.Embedded)8 AbstractDto (eu.bcvsolutions.idm.core.api.dto.AbstractDto)8 BaseEntity (eu.bcvsolutions.idm.core.api.entity.BaseEntity)8 List (java.util.List)8 Requestable (eu.bcvsolutions.idm.core.api.domain.Requestable)7 BaseDto (eu.bcvsolutions.idm.core.api.dto.BaseDto)7 IdmRequestDto (eu.bcvsolutions.idm.core.api.dto.IdmRequestDto)7 IdmLongRunningTaskDto (eu.bcvsolutions.idm.core.scheduler.api.dto.IdmLongRunningTaskDto)7 RequestOperationType (eu.bcvsolutions.idm.core.api.domain.RequestOperationType)6 IntrospectionException (java.beans.IntrospectionException)6