Class ScimGroupAdminService
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.scim.ScimGroupAdminService
-
- All Implemented Interfaces:
edu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
@Service public class ScimGroupAdminService extends Object implements edu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
The service in charge of handling the Silverpeas's groups against those sent by SCIM client.
It is finally kind of CRUD service.All provider methods are called by WEB services which are decoding the HTTP requests in front.
But for now, groups coming from SCIM clients are not handled...
- Author:
- silveryocha
-
-
Field Summary
Fields Modifier and Type Field Description protected Administration
admin
protected org.silverpeas.core.webapi.admin.scim.ScimRequestContext
scimRequestContext
-
Constructor Summary
Constructors Constructor Description ScimGroupAdminService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.psu.swe.scim.spec.resources.ScimGroup
create(edu.psu.swe.scim.spec.resources.ScimGroup resource)
void
delete(String id)
edu.psu.swe.scim.spec.protocol.filter.FilterResponse<edu.psu.swe.scim.spec.resources.ScimGroup>
find(edu.psu.swe.scim.spec.protocol.search.Filter filter, edu.psu.swe.scim.spec.protocol.search.PageRequest pageRequest, edu.psu.swe.scim.spec.protocol.search.SortRequest sortRequest)
edu.psu.swe.scim.spec.resources.ScimGroup
get(String id)
List<Class<? extends edu.psu.swe.scim.spec.resources.ScimExtension>>
getExtensionList()
protected <T extends SearchCriteria>
TprocessExpression(edu.psu.swe.scim.spec.protocol.filter.FilterExpression expression, T searchCriteria)
Centralizing theSearchCriteria
instance creation fromFilterExpression
given by SCIM client.edu.psu.swe.scim.spec.resources.ScimGroup
update(edu.psu.swe.scim.server.provider.UpdateRequest<edu.psu.swe.scim.spec.resources.ScimGroup> updateRequest)
protected void
validateDomainExists()
-
-
-
Field Detail
-
scimRequestContext
@Inject protected org.silverpeas.core.webapi.admin.scim.ScimRequestContext scimRequestContext
-
admin
@Inject protected Administration admin
-
-
Method Detail
-
create
public edu.psu.swe.scim.spec.resources.ScimGroup create(edu.psu.swe.scim.spec.resources.ScimGroup resource) throws edu.psu.swe.scim.server.exception.UnableToCreateResourceException
- Specified by:
create
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToCreateResourceException
-
update
public edu.psu.swe.scim.spec.resources.ScimGroup update(edu.psu.swe.scim.server.provider.UpdateRequest<edu.psu.swe.scim.spec.resources.ScimGroup> updateRequest) throws edu.psu.swe.scim.server.exception.UnableToUpdateResourceException
- Specified by:
update
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToUpdateResourceException
-
get
public edu.psu.swe.scim.spec.resources.ScimGroup get(String id) throws edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
- Specified by:
get
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
-
find
public edu.psu.swe.scim.spec.protocol.filter.FilterResponse<edu.psu.swe.scim.spec.resources.ScimGroup> find(edu.psu.swe.scim.spec.protocol.search.Filter filter, edu.psu.swe.scim.spec.protocol.search.PageRequest pageRequest, edu.psu.swe.scim.spec.protocol.search.SortRequest sortRequest) throws edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
- Specified by:
find
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
-
delete
public void delete(String id) throws edu.psu.swe.scim.server.exception.UnableToDeleteResourceException
- Specified by:
delete
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToDeleteResourceException
-
getExtensionList
public List<Class<? extends edu.psu.swe.scim.spec.resources.ScimExtension>> getExtensionList() throws edu.psu.swe.scim.server.exception.UnableToRetrieveExtensionsException
- Specified by:
getExtensionList
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimGroup>
- Throws:
edu.psu.swe.scim.server.exception.UnableToRetrieveExtensionsException
-
validateDomainExists
protected void validateDomainExists()
-
processExpression
protected <T extends SearchCriteria> T processExpression(edu.psu.swe.scim.spec.protocol.filter.FilterExpression expression, T searchCriteria) throws edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
Centralizing theSearchCriteria
instance creation fromFilterExpression
given by SCIM client.- Type Parameters:
T
- the type ofSearchCriteria
- Parameters:
expression
- the filters given by the SCIM client.searchCriteria
- the silverpeasSearchCriteria
instance.- Returns:
- the completed
SearchCriteria
instance. - Throws:
edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
-
-