Search in sources :

Example 21 with GroupResource

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;
}
Also used : WebApplicationException(javax.ws.rs.WebApplicationException) GroupResource(io.jans.scim.model.scim2.group.GroupResource)

Aggregations

GroupResource (io.jans.scim.model.scim2.group.GroupResource)13 Response (javax.ws.rs.core.Response)13 URI (java.net.URI)6 InvalidAttributeValueException (javax.management.InvalidAttributeValueException)6 DefaultValue (javax.ws.rs.DefaultValue)6 HeaderParam (javax.ws.rs.HeaderParam)6 Path (javax.ws.rs.Path)6 Produces (javax.ws.rs.Produces)6 GroupResource (org.gluu.oxtrust.model.scim2.group.GroupResource)6 GluuGroup (io.jans.scim.model.GluuGroup)5 Member (io.jans.scim.model.scim2.group.Member)5 UserResource (io.jans.scim.model.scim2.user.UserResource)5 BaseScimResource (io.jans.scim.model.scim2.BaseScimResource)4 ArrayList (java.util.ArrayList)4 Consumes (javax.ws.rs.Consumes)4 WebApplicationException (javax.ws.rs.WebApplicationException)4 GluuGroup (org.gluu.oxtrust.model.GluuGroup)4 ListViewResponse (org.gluu.persist.model.ListViewResponse)4 ApiOperation (com.wordnik.swagger.annotations.ApiOperation)3 DuplicateEntryException (io.jans.orm.exception.operation.DuplicateEntryException)3