public final class ResourceTypeDefinition
extends java.lang.Object
| Constructor and Description |
|---|
ResourceTypeDefinition(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.lang.String endpoint,
com.bettercloud.scim2.common.types.SchemaResource coreSchema,
java.util.Map<com.bettercloud.scim2.common.types.SchemaResource,java.lang.Boolean> schemaExtensions,
boolean discoverable)
Create a new ResourceType.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceTypeDefinition |
fromScimResource(java.lang.Class<?> scimResource) |
static ResourceTypeDefinition |
fromScimResource(ScimResource resourceType,
org.springframework.web.bind.annotation.RequestMapping mapping) |
com.bettercloud.scim2.common.types.AttributeDefinition |
getAttributeDefinition(com.bettercloud.scim2.common.Path path)
Retrieve the attribute definition for the attribute in the path.
|
com.bettercloud.scim2.common.Path |
normalizePath(com.bettercloud.scim2.common.Path path)
Normalize a path by removing the schema URN for core attributes.
|
com.bettercloud.scim2.common.types.ResourceTypeResource |
toScimResource()
Retrieve the ResourceType SCIM resource that represents this definition.
|
public ResourceTypeDefinition(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.lang.String endpoint,
com.bettercloud.scim2.common.types.SchemaResource coreSchema,
java.util.Map<com.bettercloud.scim2.common.types.SchemaResource,java.lang.Boolean> schemaExtensions,
boolean discoverable)
id - Unique id of the resource.name - Name of the resource.description - Description of the resource.endpoint - The Uri of the resource.coreSchema - The core schema for the resource type.schemaExtensions - A map of schema extensions to whether it is
required for the resource type.discoverable - Flag that defines if the resource with be returned by the ResourceTypes API.public com.bettercloud.scim2.common.types.AttributeDefinition getAttributeDefinition(com.bettercloud.scim2.common.Path path)
path - The attribute path.null if there is no attribute
defined for the path.public com.bettercloud.scim2.common.Path normalizePath(com.bettercloud.scim2.common.Path path)
path - The path to normalize.public com.bettercloud.scim2.common.types.ResourceTypeResource toScimResource()
public static ResourceTypeDefinition fromScimResource(java.lang.Class<?> scimResource)
public static ResourceTypeDefinition fromScimResource(ScimResource resourceType, org.springframework.web.bind.annotation.RequestMapping mapping)