java.lang.Object
de.captaingoldfish.scim.sdk.server.endpoints.ResourceHandler<Schema>
de.captaingoldfish.scim.sdk.server.endpoints.handler.SchemaHandler

public class SchemaHandler extends ResourceHandler<Schema>
author Pascal Knueppel
created at: 20.10.2019 - 12:16

  • Constructor Details

  • Method Details

    • createResource

      public Schema createResource(Schema resource, Context context)
      creating of schemas not supported
      Specified by:
      createResource in class ResourceHandler<Schema>
      Parameters:
      resource - the resource to store
      context - the current request context that holds additional useful information. This object is never null
      Returns:
      the stored resource with additional meta information as id, created, lastModified timestamps etc.
    • getResource

      public Schema getResource(String id, List<SchemaAttribute> attributes, List<SchemaAttribute> excludedAttributes, Context context)
      extract a resource by its id
      Specified by:
      getResource in class ResourceHandler<Schema>
      Parameters:
      id - the id of the resource to return
      attributes - the attributes that should be returned to the client. If the client sends this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joins
      excludedAttributes - the attributes that should NOT be returned to the client. If the client send this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joins
      context - the current request context that holds additional useful information. This object is never null
      Returns:
      the found resource
    • listResources

      public PartialListResponse<Schema> listResources(long startIndex, int count, FilterNode filter, SchemaAttribute sortBy, SortOrder sortOrder, List<SchemaAttribute> attributes, List<SchemaAttribute> excludedAttributes, Context context)
      queries several resources based on the following values
      Specified by:
      listResources in class ResourceHandler<Schema>
      Parameters:
      startIndex - the start index that has a minimum value of 1. So the given startIndex here will never be lower than 1
      count - the number of entries that should be returned to the client. The minimum value of this value is 0.
      filter - the parsed filter expression if the client has given a filter
      sortBy - the attribute value that should be used for sorting
      sortOrder - the sort order
      attributes - the attributes that should be returned to the client. If the client sends this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joins
      excludedAttributes - the attributes that should NOT be returned to the client. If the client send this parameter the evaluation of these parameters might help to improve database performance by omitting unnecessary table joins
      context - the current request context that holds additional useful information. This object is never null
      Returns:
      a list of several resources and a total results value. You may choose to leave the totalResults value blank but this might lead to erroneous results on the client side
    • updateResource

      public Schema updateResource(Schema schema, Context context)
      updating of schemas not supported
      Specified by:
      updateResource in class ResourceHandler<Schema>
      Parameters:
      schema - the resource that should override an existing one
      context - the current request context that holds additional useful information. This object is never null
      Returns:
      the updated resource with the values changed and a new lastModified value
    • deleteResource

      public void deleteResource(String id, Context context)
      deleting of schemas not supported
      Specified by:
      deleteResource in class ResourceHandler<Schema>
      Parameters:
      id - the id of the resource to delete
      context - the current request context that holds additional useful information. This object is never null