Class ScimUserAdminService
- java.lang.Object
-
- org.silverpeas.core.webapi.admin.scim.ScimUserAdminService
-
- All Implemented Interfaces:
edu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimUser>
@Service public class ScimUserAdminService extends Object implements edu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimUser>
The service in charge of handling the Silverpeas's users 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.
- 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 ScimUserAdminService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.psu.swe.scim.spec.resources.ScimUser
create(edu.psu.swe.scim.spec.resources.ScimUser resource)
void
delete(String id)
edu.psu.swe.scim.spec.protocol.filter.FilterResponse<edu.psu.swe.scim.spec.resources.ScimUser>
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.ScimUser
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.ScimUser
update(edu.psu.swe.scim.server.provider.UpdateRequest<edu.psu.swe.scim.spec.resources.ScimUser> 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.ScimUser create(edu.psu.swe.scim.spec.resources.ScimUser 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.ScimUser>
- Throws:
edu.psu.swe.scim.server.exception.UnableToCreateResourceException
-
update
public edu.psu.swe.scim.spec.resources.ScimUser update(edu.psu.swe.scim.server.provider.UpdateRequest<edu.psu.swe.scim.spec.resources.ScimUser> 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.ScimUser>
- Throws:
edu.psu.swe.scim.server.exception.UnableToUpdateResourceException
-
get
public edu.psu.swe.scim.spec.resources.ScimUser 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.ScimUser>
- Throws:
edu.psu.swe.scim.server.exception.UnableToRetrieveResourceException
-
find
public edu.psu.swe.scim.spec.protocol.filter.FilterResponse<edu.psu.swe.scim.spec.resources.ScimUser> 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.ScimUser>
- 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.ScimUser>
- Throws:
edu.psu.swe.scim.server.exception.UnableToDeleteResourceException
-
getExtensionList
public List<Class<? extends edu.psu.swe.scim.spec.resources.ScimExtension>> getExtensionList()
- Specified by:
getExtensionList
in interfaceedu.psu.swe.scim.server.provider.Provider<edu.psu.swe.scim.spec.resources.ScimUser>
-
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
-
-