public abstract class Resource<T> extends Object implements Serializable
Users and Groups. All sub-resources (User/Group/custom) need to be
in the same Java package or JSON deserialization will break. It is possible to include extra metadata in the JSON to make deserialization work but
it won't be compliant with the SCIM specification.| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Builder<T>
The Builder class is used to construct instances of the
Resource |
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_SCHEMA |
| Modifier | Constructor and Description |
|---|---|
protected |
Resource(Resource.Builder<T> builder) |
protected |
Resource(String id,
String externalId,
Meta meta,
Set<String> schemas) |
| Modifier and Type | Method and Description |
|---|---|
abstract Resource.Builder<T> |
builder() |
boolean |
equals(Object obj) |
Map<String,Extension> |
getCustomExtensions() |
Extension |
getExtension(String urn)
Provides the
Extension with the given URN |
Map<String,Extension> |
getExtensions()
Provides an unmodifiable view of all additional
Extension fields of the user |
String |
getExternalId()
Gets the external Id of the resource.
|
String |
getId()
Gets the Id of the resource.
|
Meta |
getMeta()
Gets the meta attribute
|
@NotNull @Size(min=1) Set<String> |
getSchemas()
Gets the list of defined schemas
|
void |
handleExtensionSchema(String schemaId,
Object value) |
boolean |
hasCustomExtensions() |
boolean |
hasExtensions() |
int |
hashCode() |
boolean |
isExtensionPresent(String urn)
Checks if an extension with the given urn is present because an extension is not returned if no field is set
|
public static final String CORE_SCHEMA
protected Resource(Resource.Builder<T> builder)
public String getId()
public String getExternalId()
For more information please look at SCIM core schema 2.0, section 5.1
public Meta getMeta()
@NotNull @Size(min=1) public @NotNull @Size(min=1) Set<String> getSchemas()
Setpublic Map<String,Extension> getExtensions()
Extension fields of the userpublic Extension getExtension(String urn)
Extension with the given URNurn - The URN of the extensionIllegalArgumentException - If urn is null or emptyNoSuchElementException - If extension with given urn is not availablepublic boolean isExtensionPresent(String urn)
urn - urn of the extensionpublic boolean hasExtensions()
public boolean hasCustomExtensions()
public abstract Resource.Builder<T> builder()
Copyright © 2022 SAP SE. All rights reserved.