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;
}
Aggregations