public abstract static class Resource.Builder extends Object
Resource| Modifier and Type | Field and Description |
|---|---|
protected String |
externalId |
| Constructor and Description |
|---|
Resource.Builder(Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSchema(String schema) |
abstract <T> T |
build()
Builds the Object of the Builder
|
Resource.Builder |
setExternalId(String externalId)
Sets the external id (See
Resource.getExternalId()). |
Resource.Builder |
setId(String id)
Sets the id of the resource.
|
Resource.Builder |
setMeta(Meta meta)
Sets the meta data
client info: The meta information of a User will be created and set by the OSIAM server.
|
Resource.Builder |
setSchemas(Set<String> schemas)
sets the schemas of the Resource
|
protected String externalId
public Resource.Builder(Resource resource)
public Resource.Builder setSchemas(Set<String> schemas)
schemas - actual schemasprotected void addSchema(String schema)
public Resource.Builder 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 setExternalId(String externalId)
Resource.getExternalId()).externalId - the external idpublic Resource.Builder setMeta(Meta meta)
client info: The meta information 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.
For an update(PATCH) the attribute value can be set by the client. In normal case this
should be set by the UpdateUser or UpdateGroup and not by the client directly.
meta - the meta objectpublic abstract <T> T build()
Copyright © 2014. All Rights Reserved.