Class ResourceTypeDefinition

    • Method Detail

      • getName

        @NotNull
        public String getName()
        Gets the resource type name.
        Returns:
        the name of the resource type.
      • getDescription

        @Nullable
        public String getDescription()
        Gets the description of the resource type.
        Returns:
        the description of the resource type.
      • getEndpoint

        @NotNull
        public String getEndpoint()
        Gets the resource type's endpoint.
        Returns:
        the endpoint for the resource type.
      • isDiscoverable

        public boolean isDiscoverable()
        Whether this resource type and its associated schemas should be discoverable using the SCIM 2 standard /resourceTypes and /schemas endpoints.
        Returns:
        true if discoverable or false otherwise.
      • normalizePath

        @NotNull
        public Path normalizePath​(@NotNull
                                  Path path)
        Normalize a path by removing the schema URN for core attributes.
        Parameters:
        path - The path to normalize.
        Returns:
        The normalized path.
      • toScimResource

        @NotNull
        public ResourceTypeResource toScimResource()
        Retrieve the ResourceType SCIM resource that represents this definition.
        Returns:
        The ResourceType SCIM resource that represents this definition.
      • fromJaxRsResource

        @Nullable
        public static ResourceTypeDefinition fromJaxRsResource​(@NotNull
                                                               Class<?> resource)
        Create a new instance representing the resource type implemented by a root JAX-RS resource class.
        Parameters:
        resource - a root resource whose ResourceType and Path values will be used to initialize the ResourceTypeDefinition.
        Returns:
        a new ResourceTypeDefinition or null if resource is not annotated with ResourceType and Path.