Class ScimV2GroupResource
- java.lang.Object
-
- edu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
-
- edu.psu.swe.scim.server.rest.GroupResourceImpl
-
- org.silverpeas.core.webapi.admin.scim.ScimV2GroupResource
-
- All Implemented Interfaces:
edu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
,edu.psu.swe.scim.spec.protocol.GroupResource
,ProtectedWebResource
,WebAuthenticationValidation
,WebAuthorizationValidation
,SilverpeasWebResource
,ScimProtectedWebResource
@WebService @Path("/domains/{domainId}/scim/Groups") @Authorized @Alternative @Priority(2010) public class ScimV2GroupResource extends edu.psu.swe.scim.server.rest.GroupResourceImpl implements ScimProtectedWebResource
References : Implementation of a Client using SCIM 2.0 protocol.- Author:
- silveryocha
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description ScimV2GroupResource()
-
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.ScimGroup 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
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.ScimGroup 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.BaseResourceTypeResourceImpl
createGenericExceptionResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.webapi.admin.scim.ScimProtectedWebResource
getAdminController, getComponentId, getHttpRequest, getUri, validateUserAuthorization
-
Methods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
-
-
-
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 interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
getById
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
- 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 interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
query
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
- 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.ScimGroup 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 interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
create
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
- 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 interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
find
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
- 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.ScimGroup 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 interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
update
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
- See Also:
- Scim spec, update
-
patch
@PATCH @Path("{id}") @Consumes("application/scim+json") @Produces("application/scim+json") public javax.ws.rs.core.Response patch(edu.psu.swe.scim.spec.protocol.data.PatchRequest patchRequest, @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:
patch
in interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
patch
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
-
delete
@DELETE @Path("{id}") public javax.ws.rs.core.Response delete(@PathParam("id") String id)
- Specified by:
delete
in interfaceedu.psu.swe.scim.spec.protocol.BaseResourceTypeResource<edu.psu.swe.scim.spec.resources.ScimGroup>
- Overrides:
delete
in classedu.psu.swe.scim.server.rest.BaseResourceTypeResourceImpl<edu.psu.swe.scim.spec.resources.ScimGroup>
-
getSilverpeasContext
public org.silverpeas.core.webapi.admin.scim.ScimRequestContext getSilverpeasContext()
Description copied from interface:WebAuthenticationValidation
Gets the context of Silverpeas linked to the current request. This context must be initialized before the functional request processing.- Specified by:
getSilverpeasContext
in interfaceScimProtectedWebResource
- Specified by:
getSilverpeasContext
in interfaceWebAuthenticationValidation
- Specified by:
getSilverpeasContext
in interfaceWebAuthorizationValidation
- Returns:
SilverpeasRequestContext
instance.
-
-