use of org.apache.syncope.ext.scimv2.api.BadRequestException in project syncope by apache.
the class SCIMDataBinder method toGroupTO.
public GroupTO toGroupTO(final SCIMGroup group) {
if (!GROUP_SCHEMAS.equals(group.getSchemas())) {
throw new BadRequestException(ErrorType.invalidValue);
}
GroupTO groupTO = new GroupTO();
groupTO.setRealm(SyncopeConstants.ROOT_REALM);
groupTO.setKey(group.getId());
groupTO.setName(group.getDisplayName());
return groupTO;
}
Aggregations