public class ResourceType extends ResourceNode
| Modifier and Type | Class and Description |
|---|---|
class |
ResourceType.ResourceSchema
represents the schema descriptions of this resource type
|
class |
ResourceType.SchemaExtension
a schema extension representation
|
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceType(SchemaFactory schemaFactory,
com.fasterxml.jackson.databind.JsonNode resourceTypeDocument) |
protected |
ResourceType(SchemaFactory schemaFactory,
String resourceDocument) |
| Modifier and Type | Method and Description |
|---|---|
List<Schema> |
getAllSchemas()
this method will extract all
Schema definitions that belong to this resource type. |
Optional<String> |
getDescription()
The resource type's human-readable description.
|
String |
getEndpoint()
The resource type's HTTP-addressable endpoint relative to the Base URL of the service provider, e.g.,
"Users".
|
ResourceTypeFeatures |
getFeatures() |
String |
getName()
The resource type name.
|
List<Schema> |
getNotRequiredResourceSchemaExtensions() |
List<Schema> |
getRequiredResourceSchemaExtensions() |
ResourceType.ResourceSchema |
getResourceSchema(com.fasterxml.jackson.databind.JsonNode resourceDocument)
will find the meta resource schema and its extensions of this resource type that apply to the given
document
|
String |
getSchema()
The resource type's primary/base schema URI, e.g., "urn:ietf:params:scim:schemas:core:2.0:User".
|
List<ResourceType.SchemaExtension> |
getSchemaExtensions()
A list of URIs of the resource type's schema extensions.
|
boolean |
isDisabled() |
void |
setDisabled(Boolean disabled)
disables or enables this resourcetype
|
void |
setFeatures(ResourceTypeFeatures filterExtension) |
void |
setId(String id) |
getExternalId, getId, getMeta, getSortingAttribute, setExternalId, setMetaaddSchema, getSchemas, removeSchema, setSchemas, setSchemasaddAttribute, getArrayAttribute, getBooleanAttribute, getDateTimeAttribute, getDoubleAttribute, getIntegerAttribute, getLongAttribute, getObjectAttribute, getSchemaAttribute, getSimpleArrayAttribute, getSimpleArrayAttribute, getSimpleArrayAttributeSet, getSimpleArrayAttributeSet, getStringAttribute, getStringAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeList, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setStringAttributeList, setStringAttributeList_at, _childrenEqual, _put, asToken, deepCopy, elements, equals, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, get, get, getNodeType, hashCode, isEmpty, isEmpty, isObject, path, path, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, replace, required, retain, retain, serialize, serializeWithType, set, setAll, setAll, size, with, withArray, without, withoutarrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, textNodefindPath, numberType, required, toPrettyString, toString, traverse, traverse_reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, require, requiredAt, requiredAt, requireNonNull, shortValue, textValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequiredforEach, spliteratorprotected ResourceType(SchemaFactory schemaFactory, String resourceDocument)
protected ResourceType(SchemaFactory schemaFactory, com.fasterxml.jackson.databind.JsonNode resourceTypeDocument)
public List<Schema> getRequiredResourceSchemaExtensions()
public List<Schema> getNotRequiredResourceSchemaExtensions()
public List<Schema> getAllSchemas()
Schema definitions that belong to this resource type. The first entry
in the list will always be the main Schema referenced in the attribute getSchema(). All
other Schemas in the list will be the extensions of this resourceSchema definitions that describe this resource typepublic ResourceType.ResourceSchema getResourceSchema(com.fasterxml.jackson.databind.JsonNode resourceDocument)
resourceDocument - a document that should be validated against its schemaspublic void setId(String id)
setId in class ResourceNodepublic String getEndpoint()
public String getName()
public Optional<String> getDescription()
public String getSchema()
public List<ResourceType.SchemaExtension> getSchemaExtensions()
public ResourceTypeFeatures getFeatures()
ResourceTypeFeaturespublic void setFeatures(ResourceTypeFeatures filterExtension)
ResourceTypeFeaturespublic boolean isDisabled()
public void setDisabled(Boolean disabled)
Copyright © 2019. All rights reserved.