public abstract static class Resource.Builder<T> extends Object
Resource| Modifier and Type | Method and Description |
|---|---|
Resource.Builder<T> |
addExtension(Extension extension)
Sets a Extension to the User (See
Resource.getExtension(String)). |
Resource.Builder<T> |
addExtensions(Collection<Extension> extensions)
Adds a collection of Extension to the User (See
Resource.getExtensions()). |
protected void |
addSchema(String schema) |
abstract T |
build()
Builds the Object of the Builder
|
protected <V extends MultiValuedAttribute> |
isMultivaluedAttributeExistInCollection(V targetAttribute,
Collection<V> collection) |
Resource.Builder<T> |
removeExtension(String urn)
removes one single Extension from the User
|
Resource.Builder<T> |
removeExtensions()
removes all Extensions from the actual User
|
Resource.Builder<T> |
setExternalId(String externalId)
Sets the external id (See
Resource.getExternalId()). |
Resource.Builder<T> |
setId(String id)
Sets the id of the resource.
|
Resource.Builder<T> |
setMeta(Meta meta) |
Resource.Builder<T> |
setSchemas(Set<String> schemas)
set Schemas for the User
|
protected void addSchema(String schema)
public Resource.Builder<T> setId(String id)
client info: The id of a User will be created and set by the OSIAM server. If a User or Group which is send to the OSIAM server
has this value filled, the value will be ignored or the action will be rejected.
id - if of the resourcepublic Resource.Builder<T> setExternalId(String externalId)
Resource.getExternalId()).externalId - the external idpublic Resource.Builder<T> setMeta(Meta meta)
meta - the meta objectpublic Resource.Builder<T> addExtensions(Collection<Extension> extensions)
Resource.getExtensions()).extensions - a collection of extensionspublic Resource.Builder<T> addExtension(Extension extension)
Resource.getExtension(String)).extension - a single Extensionpublic Resource.Builder<T> removeExtensions()
public Resource.Builder<T> removeExtension(String urn)
urn - the urn from the Extension to be removedpublic Resource.Builder<T> setSchemas(Set<String> schemas)
schemas - to setpublic abstract T build()
protected <V extends MultiValuedAttribute> boolean isMultivaluedAttributeExistInCollection(V targetAttribute, Collection<V> collection)
Copyright © 2022 SAP SE. All rights reserved.