Class Meta
Object
se.curity.identityserver.sdk.attribute.MapAttributeValue
se.curity.identityserver.sdk.attribute.scim.v2.Meta
- All Implemented Interfaces:
Iterable<Attribute>,AttributeContainer<MapAttributeValue>,AttributeOrAttributeValue<AttributeValue>,AttributeValue
The meta object of SCIM.
Example:
"meta": {
"resourceType": "User",
"created": "2010-01-23T04:56:22Z",
"lastModified": "2011-05-13T04:42:34Z",
"version": "W\/\"3694e05e9dff591\"",
"location": "https://example.com/v2/Users/2819c223-7f76-453a-413861904646"
}
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionadaptToTimezone(ZoneId zoneId) The timestamp that the resource was added to the service provider.The most recent DateTime that the details of this resource were updated at the service provider.The URI of the resource being returned.The name of the resource type of the resource.The version of the resource being returned.static MetaCreate aMetaobject with the given resource type.static Metaof(MapAttributeValue mapAttributeValue) Create aMetaobject from attributes.Add the given attributes if not present, or replace the attribute if it already exists.Add the given attribute if not present, or replace the attribute if it already exists.withCreated(Instant created) withLastModified(Instant lastModified) withLocation(String location) Methods inherited from class se.curity.identityserver.sdk.attribute.MapAttributeValue
append, append, delete, equals, get, get, getAll, getAttributesByName, getMandatory, getValue, getValueWithAuthorities, getValueWithMetadata, hashCode, isEmpty, iterator, keys, map, map, map, mapEntries, mapNonRecursive, nullOrOfType, of, of, of, removeAttributes, removeNullAttributeValues, retainAttributes, size, stream, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeContainer
contains, contains, getOptionalValue, getOptionalValue, removeAttribute, retainAttributeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
CREATED
- See Also:
-
LAST_MODIFIED
- See Also:
-
LOCATION
- See Also:
-
VERSION
- See Also:
-
-
Method Details
-
of
Create aMetaobject with the given resource type.- Parameters:
resourceType- the resource type- Returns:
- a
Metaobject with the resourceType and defult values set. - See Also:
-
of
Create aMetaobject from attributes.- Parameters:
mapAttributeValue- to create the object from- Returns:
- a
Metaobject with the attributes set
-
getResourceType
The name of the resource type of the resource. For instance "User"- Returns:
- the resourceType set
- Throws:
NoSuchElementException- if this attribute is not set
-
getCreated
The timestamp that the resource was added to the service provider.- Returns:
- the timestamp
- Throws:
NoSuchElementException- if this attribute is not setDateTimeParseException- if the String is not valid
-
getLastModified
The most recent DateTime that the details of this resource were updated at the service provider.If this resource has never been modified since its initial creation, the value is the same as the value of
getCreated().- Returns:
- the timestamp of the last modification
- Throws:
NoSuchElementException- if this attribute is not setDateTimeParseException- if the String is not valid
-
getTimezone
-
getLocation
The URI of the resource being returned.Example: "location": "https://example.com/v2/Users/2819c223-7f76-453a-413861904646"
- Returns:
- the uri to the resource
-
getVersion
The version of the resource being returned.This is matching the value of the entity-tag (ETag) HTTP response header
- Returns:
- the version of the resource
-
withLastModified
-
withCreated
-
withLocation
-
with
Description copied from interface:AttributeContainerAdd the given attribute if not present, or replace the attribute if it already exists. Note that two attributes with the same name and different authorities are considered distinct.- Specified by:
within interfaceAttributeContainer<MapAttributeValue>- Overrides:
within classMapAttributeValue- Parameters:
attribute- attribute to add or to override- Returns:
- a copy of this which contains the given Attribute
-
with
Description copied from interface:AttributeContainerAdd the given attributes if not present, or replace the attribute if it already exists. Note that two attributes with the same name and different authorities are considered distinct.- Specified by:
within interfaceAttributeContainer<MapAttributeValue>- Overrides:
within classMapAttributeValue- Parameters:
attributes- attribute to add or to override- Returns:
- a copy of this which contains the given Attributes
-
adaptToTimezone
-