Search in sources :

Example 1 with AccountType

use of eu.bcvsolutions.idm.acc.domain.AccountType in project CzechIdMng by bcvsolutions.

the class AccAccountController method toFilter.

@Override
protected AccAccountFilter toFilter(MultiValueMap<String, Object> parameters) {
    AccAccountFilter filter = new AccAccountFilter(parameters);
    // 
    filter.setSystemId(getParameterConverter().toUuid(parameters, "systemId"));
    filter.setSystemEntityId(getParameterConverter().toUuid(parameters, "systemEntityId"));
    // 
    // for first check identityId, this attribute has bigger priority than identity parameter
    UUID identityId = getParameterConverter().toUuid(parameters, "identityId");
    if (identityId == null) {
        identityId = getParameterConverter().toEntityUuid(parameters, AccAccountFilter.PARAMETER_IDENTITY_ID, IdmIdentityDto.class);
    }
    filter.setIdentityId(identityId);
    // 
    filter.setUid(getParameterConverter().toString(parameters, "uid"));
    filter.setAccountType(getParameterConverter().toEnum(parameters, "accountType", AccountType.class));
    filter.setOwnership(getParameterConverter().toBoolean(parameters, "ownership"));
    filter.setSupportChangePassword(getParameterConverter().toBoolean(parameters, "supportChangePassword"));
    filter.setIncludeEcho(getParameterConverter().toBoolean(parameters, "includeEcho"));
    filter.setEntityType(getParameterConverter().toEnum(parameters, "entityType", SystemEntityType.class));
    // 
    return filter;
}
Also used : AccAccountFilter(eu.bcvsolutions.idm.acc.dto.filter.AccAccountFilter) SystemEntityType(eu.bcvsolutions.idm.acc.domain.SystemEntityType) UUID(java.util.UUID) IdmIdentityDto(eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto) AccountType(eu.bcvsolutions.idm.acc.domain.AccountType)

Aggregations

AccountType (eu.bcvsolutions.idm.acc.domain.AccountType)1 SystemEntityType (eu.bcvsolutions.idm.acc.domain.SystemEntityType)1 AccAccountFilter (eu.bcvsolutions.idm.acc.dto.filter.AccAccountFilter)1 IdmIdentityDto (eu.bcvsolutions.idm.core.api.dto.IdmIdentityDto)1 UUID (java.util.UUID)1