Search in sources :

Example 1 with AdUserConnectorType

use of eu.bcvsolutions.idm.acc.connector.AdUserConnectorType in project CzechIdMng by bcvsolutions.

the class MsAdMappingIdentityAutoAttributesProcessor method conditional.

@Override
public boolean conditional(EntityEvent<SysSystemMappingDto> event) {
    boolean conditional = super.conditional(event);
    if (!conditional) {
        return false;
    }
    SysSystemMappingDto systemMappingDto = event.getContent();
    // Attributes will be generated only for __ACCOUNT__ schema.
    SysSchemaObjectClassDto objectClassDto = lookupService.lookupEmbeddedDto(systemMappingDto, SysSystemMapping_.objectClass);
    if (objectClassDto != null && objectClassDto.getSystem() != null) {
        SysSystemDto systemDto = lookupService.lookupEmbeddedDto(objectClassDto, SysSchemaObjectClass_.system);
        ConnectorType connectorType = connectorManager.findConnectorTypeBySystem(systemDto);
        if (connectorType != null) {
            // Only for AD user and AD+WinRM user wizards.
            return connectorType instanceof AdUserConnectorType;
        }
    }
    return false;
}
Also used : ConnectorType(eu.bcvsolutions.idm.acc.service.api.ConnectorType) AdUserConnectorType(eu.bcvsolutions.idm.acc.connector.AdUserConnectorType) SysSystemMappingDto(eu.bcvsolutions.idm.acc.dto.SysSystemMappingDto) SysSchemaObjectClassDto(eu.bcvsolutions.idm.acc.dto.SysSchemaObjectClassDto) AdUserConnectorType(eu.bcvsolutions.idm.acc.connector.AdUserConnectorType) SysSystemDto(eu.bcvsolutions.idm.acc.dto.SysSystemDto)

Aggregations

AdUserConnectorType (eu.bcvsolutions.idm.acc.connector.AdUserConnectorType)1 SysSchemaObjectClassDto (eu.bcvsolutions.idm.acc.dto.SysSchemaObjectClassDto)1 SysSystemDto (eu.bcvsolutions.idm.acc.dto.SysSystemDto)1 SysSystemMappingDto (eu.bcvsolutions.idm.acc.dto.SysSystemMappingDto)1 ConnectorType (eu.bcvsolutions.idm.acc.service.api.ConnectorType)1