public final class ResourceTypeDefinition extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceTypeDefinition.Builder
Builder for creating a ResourceTypeDefinition.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceTypeDefinition |
fromJaxRsResource(Class<?> resource)
Create a new instance representing the resource type implemented by a
root JAX-RS resource class.
|
AttributeDefinition |
getAttributeDefinition(Path path)
Retrieve the attribute definition for the attribute in the path.
|
SchemaResource |
getCoreSchema()
Gets the resource type's schema.
|
String |
getDescription()
Gets the description of the resource type.
|
String |
getEndpoint()
Gets the resource type's endpoint.
|
String |
getName()
Gets the resource type name.
|
Map<SchemaResource,Boolean> |
getSchemaExtensions()
Gets the resource type's schema extensions.
|
boolean |
isDiscoverable()
Whether this resource type and its associated schemas should be
discoverable using the SCIM 2 standard /resourceTypes and /schemas
endpoints.
|
Path |
normalizePath(Path path)
Normalize a path by removing the schema URN for core attributes.
|
ResourceTypeResource |
toScimResource()
Retrieve the ResourceType SCIM resource that represents this definition.
|
public String getName()
public String getDescription()
public String getEndpoint()
public SchemaResource getCoreSchema()
public Map<SchemaResource,Boolean> getSchemaExtensions()
public boolean isDiscoverable()
true if discoverable or false otherwise.public AttributeDefinition getAttributeDefinition(Path path)
path - The attribute path.null if there is no attribute
defined for the path.public Path normalizePath(Path path)
path - The path to normalize.public ResourceTypeResource toScimResource()
public static ResourceTypeDefinition fromJaxRsResource(Class<?> resource)
resource - a root resource whose
ResourceType
and Path values will be used to
initialize the ResourceTypeDefinition.null if resource is not
annotated with ResourceType
and Path.Copyright © 2015–2019 Ping Identity Corporation. All rights reserved.