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