Class ScimV2UserResource

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response create​(edu.psu.swe.scim.spec.resources.ScimUser resource, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)  
      javax.ws.rs.core.Response delete​(String id)  
      javax.ws.rs.core.Response find​(edu.psu.swe.scim.spec.protocol.data.SearchRequest request)  
      javax.ws.rs.core.Response getById​(String id, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)  
      org.silverpeas.core.webapi.admin.scim.ScimRequestContext getSilverpeasContext()
      Gets the context of Silverpeas linked to the current request.
      protected void initContext()  
      javax.ws.rs.core.Response patch​(edu.psu.swe.scim.spec.protocol.data.PatchRequest patchRequest, String id, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)  
      javax.ws.rs.core.Response patch​(String id, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)  
      javax.ws.rs.core.Response query​(edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes, edu.psu.swe.scim.spec.adapter.FilterWrapper filter, edu.psu.swe.scim.spec.protocol.attribute.AttributeReference sortBy, edu.psu.swe.scim.spec.protocol.search.SortOrder sortOrder, Integer startIndex, Integer count)  
      javax.ws.rs.core.Response update​(edu.psu.swe.scim.spec.resources.ScimUser resource, String id, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes, edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)  
      • Methods inherited from class edu.psu.swe.scim.server.rest.UserResourceImpl

        getProvider
      • Methods inherited from class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl

        createGenericExceptionResponse
    • Constructor Detail

      • ScimV2UserResource

        public ScimV2UserResource()
    • Method Detail

      • initContext

        @PostConstruct
        protected void initContext()
      • getById

        @GET
        @Path("{id}")
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response getById​(@PathParam("id")
                                                 String id,
                                                 @QueryParam("attributes")
                                                 edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                                 @QueryParam("excludedAttributes")
                                                 edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)
        Specified by:
        getById in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        getById in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
        See Also:
        Scim spec, retrieving known resources
      • query

        @GET
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response query​(@QueryParam("attributes")
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                               @QueryParam("excludedAttributes")
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes,
                                               @QueryParam("filter")
                                               edu.psu.swe.scim.spec.adapter.FilterWrapper filter,
                                               @QueryParam("sortBy")
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReference sortBy,
                                               @QueryParam("sortOrder")
                                               edu.psu.swe.scim.spec.protocol.search.SortOrder sortOrder,
                                               @QueryParam("startIndex")
                                               Integer startIndex,
                                               @QueryParam("count")
                                               Integer count)
        Specified by:
        query in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        query in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
        See Also:
        Scim spec, query resources
      • create

        @POST
        @Consumes("application/scim+json")
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response create​(edu.psu.swe.scim.spec.resources.ScimUser resource,
                                                @QueryParam("attributes")
                                                edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                                @QueryParam("excludedAttributes")
                                                edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)
        Specified by:
        create in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        create in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
        See Also:
        Scim spec, query resources
      • find

        @POST
        @Path("/.search")
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response find​(edu.psu.swe.scim.spec.protocol.data.SearchRequest request)
        Specified by:
        find in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        find in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
        See Also:
        Scim spec, query with post
      • update

        @PUT
        @Path("{id}")
        @Consumes("application/scim+json")
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response update​(edu.psu.swe.scim.spec.resources.ScimUser resource,
                                                @PathParam("id")
                                                String id,
                                                @QueryParam("attributes")
                                                edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                                @QueryParam("excludedAttributes")
                                                edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)
        Specified by:
        update in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        update in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
        See Also:
        Scim spec, update
      • patch

        @PATCH
        @Path("{id}")
        @Consumes("application/scim+json")
        @Produces("application/scim+json")
        public javax.ws.rs.core.Response patch​(@PathParam("id")
                                               String id,
                                               @QueryParam("attributes")
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                               @QueryParam("excludedAttributes")
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)
                                        throws IOException
        Throws:
        IOException
      • patch

        @PATCH
        @Path("{id}")
        @Consumes("text/plain")
        @Produces("text/plain")
        public javax.ws.rs.core.Response patch​(edu.psu.swe.scim.spec.protocol.data.PatchRequest patchRequest,
                                               String id,
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper attributes,
                                               edu.psu.swe.scim.spec.protocol.attribute.AttributeReferenceListWrapper excludedAttributes)
        Specified by:
        patch in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        patch in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>
      • delete

        @DELETE
        @Path("{id}")
        public javax.ws.rs.core.Response delete​(@PathParam("id")
                                                String id)
        Specified by:
        delete in interface edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimUser>
        Overrides:
        delete in class edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimUser>