Package io.jans.scim.ws.rs.scim2
Class BaseScimWebService
- java.lang.Object
-
- io.jans.scim.ws.rs.scim2.BaseScimWebService
-
- Direct Known Subclasses:
BulkWebService,Fido2DeviceWebService,FidoDeviceWebService,GroupWebService,ResourceTypeWS,SchemaWebService,ScimResourcesUpdatedWebService,SearchResourcesWebService,ServiceProviderConfigWS,UserWebService
@Dependent public class BaseScimWebService extends Object
Base methods for SCIM web services- Author:
- Yuriy Movchan Date: 08/23/2013 Re-engineered by jgomer on 2017-09-14.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEARCH_SUFFIX
-
Constructor Summary
Constructors Constructor Description BaseScimWebService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassignMetaInformation(BaseScimResource resource)protected voidexecuteValidation(BaseScimResource resource)protected voidexecuteValidation(BaseScimResource resource, boolean laxRequiredness)StringgetEndpointUrl()static javax.ws.rs.core.ResponsegetErrorResponse(int statusCode, ErrorScimType scimType, String detail)static javax.ws.rs.core.ResponsegetErrorResponse(javax.ws.rs.core.Response.Status status, ErrorScimType scimType, String detail)static javax.ws.rs.core.ResponsegetErrorResponse(javax.ws.rs.core.Response.Status status, String detail)protected voidinit(Class<? extends BaseScimWebService> cls)protected javax.ws.rs.core.ResponseinspectPatchRequest(PatchRequest patch, Class<? extends BaseScimResource> cls)javax.ws.rs.core.ResponsenotFoundResponse(String id, String resourceType)protected javax.ws.rs.core.ResponseprepareSearchRequest(List<String> schemas, String filter, String sortBy, String sortOrder, Integer startIndex, Integer count, String attrsList, String excludedAttrsList, SearchRequest request)javax.ws.rs.core.ResponsevalidateExistenceOfUser(String id)
-
-
-
Field Detail
-
SEARCH_SUFFIX
public static final String SEARCH_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEndpointUrl
public String getEndpointUrl()
-
getErrorResponse
public static javax.ws.rs.core.Response getErrorResponse(javax.ws.rs.core.Response.Status status, String detail)
-
getErrorResponse
public static javax.ws.rs.core.Response getErrorResponse(javax.ws.rs.core.Response.Status status, ErrorScimType scimType, String detail)
-
getErrorResponse
public static javax.ws.rs.core.Response getErrorResponse(int statusCode, ErrorScimType scimType, String detail)
-
validateExistenceOfUser
public javax.ws.rs.core.Response validateExistenceOfUser(String id)
-
init
protected void init(Class<? extends BaseScimWebService> cls)
-
assignMetaInformation
protected void assignMetaInformation(BaseScimResource resource)
-
executeValidation
protected void executeValidation(BaseScimResource resource) throws SCIMException
- Throws:
SCIMException
-
executeValidation
protected void executeValidation(BaseScimResource resource, boolean laxRequiredness) throws SCIMException
- Throws:
SCIMException
-
prepareSearchRequest
protected javax.ws.rs.core.Response prepareSearchRequest(List<String> schemas, String filter, String sortBy, String sortOrder, Integer startIndex, Integer count, String attrsList, String excludedAttrsList, SearchRequest request)
-
inspectPatchRequest
protected javax.ws.rs.core.Response inspectPatchRequest(PatchRequest patch, Class<? extends BaseScimResource> cls)
-
-