use of io.jans.scim.model.scim2.group.GroupResource in project jans by JanssenProject.
the class Scim2GroupService method buildGroupResource.
public GroupResource buildGroupResource(GluuGroup gluuGroup, boolean fillMembersDisplay, String endpointUrl, String usersUrl) {
GroupResource group = new GroupResource();
if (externalScimService.isEnabled() && !externalScimService.executeScimGetGroupMethods(gluuGroup)) {
throw new WebApplicationException("Failed to execute SCIM script successfully", Status.PRECONDITION_FAILED);
}
transferAttributesToGroupResource(gluuGroup, group, fillMembersDisplay, endpointUrl, usersUrl);
return group;
}
Aggregations