java.lang.Object
org.gcube.informationsystem.resourceregistry.api.rest.ContextPath

public class ContextPath extends Object
The Class ContextPath.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • CONTEXTS_PATH_PART

      public static final String CONTEXTS_PATH_PART
      The Constant CONTEXTS_PATH_PART.
      See Also:
    • CURRENT_PATH_PART

      public static final String CURRENT_PATH_PART
      The literal path segment used to request the context associated with the caller's current authorization token.

      Accepted in both raw (@current) and percent-encoded (%40current) forms; the JAX-RS container decodes the percent encoding before path matching, so no special handling is required.

      See Also:
    • HISTORY_PATH_PART

      public static final String HISTORY_PATH_PART
      The literal path segment used to request the context's history/audit trail.
      See Also:
    • DEPTH_QUERY_PARAMETER

      public static final String DEPTH_QUERY_PARAMETER
      Query parameter controlling the depth of the returned context hierarchy tree.
      • 0 (default) — returns only the requested context
      • positive integer N — returns the context and N levels of its descendants (if N exceeds the available descendant depth, the response is naturally bounded by existing data and no warning is emitted)
      • -1 — returns the context and all descendants recursively
      See Also:
    • DEPTH_QUERY_PARAMETER_DEFAULT_READ_VALUE

      public static final String DEPTH_QUERY_PARAMETER_DEFAULT_READ_VALUE
      Default value for the DEPTH_QUERY_PARAMETER query parameter on Read-style endpoints ("0").
      See Also:
    • DEPTH_UNLIMITED

      public static final int DEPTH_UNLIMITED
      The constant representing unlimited depth hierarchy expansion (-1).
      See Also:
    • DEPTH_ROOT_ONLY

      public static final int DEPTH_ROOT_ONLY
      The constant representing root/current level only depth expansion (0).
      See Also:
    • METADATA_POLICY_QUERY_PARAMETER

      public static final String METADATA_POLICY_QUERY_PARAMETER
      The canonical metadata-policy query parameter.
      See Also:
    • METADATA_POLICY_QUERY_PARAMETER_DEFAULT_VALUE

      public static final String METADATA_POLICY_QUERY_PARAMETER_DEFAULT_VALUE
      See Also:
    • OFFSET_QUERY_PARAMETER

      public static final String OFFSET_QUERY_PARAMETER
      The Constant OFFSET_QUERY_PARAMETER.
      See Also:
    • LIMIT_QUERY_PARAMETER

      public static final String LIMIT_QUERY_PARAMETER
      The Constant LIMIT_QUERY_PARAMETER.
      See Also:
    • LIFECYCLE_QUERY_PARAMETER

      public static final String LIFECYCLE_QUERY_PARAMETER
      Query parameter selecting which context lifecycle slice is returned by collection reads.
      See Also:
    • LIFECYCLE_QUERY_PARAMETER_DEFAULT_VALUE

      public static final String LIFECYCLE_QUERY_PARAMETER_DEFAULT_VALUE
      Default value for LIFECYCLE_QUERY_PARAMETER.
      See Also:
  • Constructor Details

    • ContextPath

      public ContextPath()