public static class Group.Builder extends Resource.Builder
Group instancesexternalId| Constructor and Description |
|---|
Group.Builder()
creates a new Group without a displayName
|
Group.Builder(Group group)
Constructs a new builder by copying all values from the given
Group |
Group.Builder(String displayName)
Constructs a new builder and sets the display name (See
Group.getDisplayName()). |
Group.Builder(String displayName,
Group group)
creates a new Group.Builder based on the given displayName and group.
|
| Modifier and Type | Method and Description |
|---|---|
Group |
build()
Builds the Object of the Builder
|
Group.Builder |
setExternalId(String externalId)
Sets the external id (See
Resource.getExternalId()). |
Group.Builder |
setId(String id)
Sets the id of the resource.
|
Group.Builder |
setMembers(Set<MemberRef> members)
Sets the list of members as
Set (See Group.getMembers()). |
Group.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.
|
Group.Builder |
setSchemas(Set<String> schemas)
sets the schemas of the Resource
|
addSchemapublic Group.Builder(String displayName, Group group)
displayName - the new displayName of the groupgroup - a existing grouppublic Group.Builder()
public Group.Builder(Group group)
Groupgroup - Group to be copied fromSCIMDataValidationException - if the given group is nullpublic Group.Builder(String displayName)
Group.getDisplayName()).displayName - the display nameSCIMDataValidationException - if the displayName is null or emptypublic Group.Builder setId(String id)
Resource.Builder
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.
setId in class Resource.Builderid - if of the resourcepublic Group.Builder setMeta(Meta meta)
Resource.Builder
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.
setMeta in class Resource.Buildermeta - the meta objectpublic Group.Builder setExternalId(String externalId)
Resource.BuilderResource.getExternalId()).setExternalId in class Resource.BuilderexternalId - the external idpublic Group.Builder setSchemas(Set<String> schemas)
Resource.BuildersetSchemas in class Resource.Builderschemas - actual schemaspublic Group.Builder setMembers(Set<MemberRef> members)
Set (See Group.getMembers()).members - the set of memberspublic Group build()
Resource.Builderbuild in class Resource.BuilderCopyright © 2014. All Rights Reserved.