public static class User.Builder extends Resource.Builder
User instancesexternalId| Constructor and Description |
|---|
User.Builder()
Creates a new builder without a userName
|
User.Builder(String userName)
Constructs a new builder by with a set userName
|
User.Builder(String userName,
User user)
creates a new User.Builder based on the given userName and user.
|
User.Builder(User user)
Constructs a new builder by copying all values from the given
User |
| Modifier and Type | Method and Description |
|---|---|
User.Builder |
addAddress(Address address)
adds an Address to the User
|
User.Builder |
addAddresses(Collection<Address> addresses)
Adds the physical mailing addresses for this User (See
User.getAddresses()). |
User.Builder |
addEmail(Email email)
adds an email to the User
|
User.Builder |
addEmails(Collection<Email> emails)
Adds the E-mail addresses for the User (See
User.getEmails()). |
User.Builder |
addEntitlement(Entitlement entitlement)
adds an Entitlement to the User
|
User.Builder |
addEntitlements(Collection<Entitlement> entitlements)
Adds a collection of entitlements for the User (See
User.getEntitlements()). |
User.Builder |
addExtension(Extension extension)
Sets a Extension to the User (See
User.getExtension(String)). |
User.Builder |
addExtensions(Collection<Extension> extensions)
Adds a collection of Extension to the User (See
User.getExtensions()). |
User.Builder |
addIm(Im im)
adds an Im to the User
|
User.Builder |
addIms(Collection<Im> ims)
Adds the instant messaging addresses for the User (See
User.getIms()). |
User.Builder |
addPhoneNumber(PhoneNumber phoneNumber)
adds an phoneNumber to the User
|
User.Builder |
addPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
Adds the phone numbers for the User (See
User.getPhoneNumbers()). |
User.Builder |
addPhoto(Photo photo)
adds an Photo to the User
|
User.Builder |
addPhotos(Collection<Photo> photos)
Adds the URL's of photo's of the User (See
User.getPhotos()). |
User.Builder |
addRole(Role role)
adds an Role to the User
|
User.Builder |
addRoles(Collection<Role> roles)
Sets a list of roles for the User (See
User.getRoles()). |
User.Builder |
addX509Certificate(X509Certificate x509Certificate)
adds an X509Certificate to the User
|
User.Builder |
addX509Certificates(Collection<X509Certificate> x509Certificates)
Sets a collection of certificates issued to the User (See
User.getX509Certificates()). |
User |
build()
Builds the Object of the Builder
|
User.Builder |
removeAddress(Address address)
removes one single Photo from the User
|
User.Builder |
removeAddresses()
removes all Addresses from the actual User
|
User.Builder |
removeEmail(Email email)
removes one single email from the User
|
User.Builder |
removeEmails()
removes all email from the actual User
|
User.Builder |
removeEntitlement(Entitlement entitlement)
removes one single Entitlement from the User
|
User.Builder |
removeEntitlements()
removes all Entitlements from the actual User
|
User.Builder |
removeExtension(String urn)
removes one single Extension from the User
|
User.Builder |
removeExtensions()
removes all Extensions from the actual User
|
User.Builder |
removeIm(Im im)
removes one single im from the User
|
User.Builder |
removeIms()
removes all ims from the actual User
|
User.Builder |
removePhoneNumber(PhoneNumber phoneNumber)
removes one single phoneNumber from the User
|
User.Builder |
removePhoneNumbers()
removes all phoneNumbers from the actual User
|
User.Builder |
removePhoto(Photo photo)
removes one single Photo from the User
|
User.Builder |
removePhotos()
removes all Photos from the actual User
|
User.Builder |
removeRole(Role role)
removes one single Role from the User
|
User.Builder |
removeRoles()
removes all Roles from the actual User
|
User.Builder |
removeX509Certificate(X509Certificate x509Certificate)
removes one single X509Certificate from the User
|
User.Builder |
removeX509Certificates()
removes all X509Certificates from the actual User
|
User.Builder |
setActive(Boolean active)
Sets a Boolean value indicating the User's administrative status.
|
User.Builder |
setDisplayName(String displayName)
Sets the display name (See
User.getDisplayName()). |
User.Builder |
setExternalId(String externalId)
Sets the external id (See
Resource.getExternalId()). |
User.Builder |
setGroups(List<GroupRef> groups)
Sets a list of groups that the user belongs to (See
User.getGroups())
client info: The groups where the user is a member of will only be set from the OSIAM server. |
User.Builder |
setId(String id)
Sets the id of the resource.
|
User.Builder |
setLocale(String locale)
Sets the default location of the User (See
User.getLocale()). |
User.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.
|
User.Builder |
setName(Name name)
Sets the components of the
User's real name (See User.getName()). |
User.Builder |
setNickName(String nickName)
Sets the nick name (See
User.getNickName()). |
User.Builder |
setPassword(String password)
Sets the User's clear text password (See
User.getPassword()). |
User.Builder |
setPreferredLanguage(String preferredLanguage)
Sets the preferred language of the USer (See
User.getPreferredLanguage()). |
User.Builder |
setProfileUrl(String profileUrl)
Sets the profile URL (See
User.getProfileUrl()). |
User.Builder |
setSchemas(Set<String> schemas)
sets the schemas of the Resource
|
User.Builder |
setTimezone(String timezone)
Sets the User's time zone (See
User.getTimezone()). |
User.Builder |
setTitle(String title)
Sets the user's title (See
User.getTitle()). |
User.Builder |
setUserType(String userType)
Sets the user type (See
User.getUserType()). |
addSchemapublic User.Builder(String userName, User user)
userName - the new userName of the useruser - a existing userpublic User.Builder(String userName)
userName - Unique identifier for the User (See User.getUserName())SCIMDataValidationException - if the given userName is null or emptypublic User.Builder()
public User.Builder(User user)
Useruser - a old UserSCIMDataValidationException - if the given user is nullpublic User.Builder setName(Name name)
User's real name (See User.getName()).name - the name object of the Userpublic User.Builder setDisplayName(String displayName)
User.getDisplayName()).displayName - the display name of the Userpublic User.Builder setNickName(String nickName)
User.getNickName()).nickName - the nick name of the Userpublic User.Builder setProfileUrl(String profileUrl)
User.getProfileUrl()).profileUrl - the profil URL of the Userpublic User.Builder setTitle(String title)
User.getTitle()).title - the title of the Userpublic User.Builder setUserType(String userType)
User.getUserType()).userType - the type of the Userpublic User.Builder setPreferredLanguage(String preferredLanguage)
User.getPreferredLanguage()).preferredLanguage - sets the preferred language of the Userpublic User.Builder setLocale(String locale)
User.getLocale()).locale - sets the local of the Userpublic User.Builder setTimezone(String timezone)
User.getTimezone()).timezone - sets the time zone of the Userpublic User.Builder setActive(Boolean active)
User.isActive())active - the active status of the Userpublic User.Builder setPassword(String password)
User.getPassword()).password - the password as clear textpublic User.Builder addEmails(Collection<Email> emails)
User.getEmails()).emails - a collection of email to be addedpublic User.Builder addEmail(Email email)
email - an email to addpublic User.Builder removeEmails()
public User.Builder removeEmail(Email email)
email - an email to be removedpublic User.Builder addPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
User.getPhoneNumbers()).phoneNumbers - the phone numbers of the the Userpublic User.Builder addPhoneNumber(PhoneNumber phoneNumber)
phoneNumber - a phoneNumber to addpublic User.Builder removePhoneNumbers()
public User.Builder removePhoneNumber(PhoneNumber phoneNumber)
phoneNumber - an phoneNumber to be removedpublic User.Builder addIms(Collection<Im> ims)
User.getIms()).ims - a collection of the ims of the Userpublic User.Builder addIm(Im im)
im - a Im to addpublic User.Builder removeIms()
public User.Builder removeIm(Im im)
im - a im to be removedpublic User.Builder addPhotos(Collection<Photo> photos)
User.getPhotos()).photos - the photos of the Userpublic User.Builder addPhoto(Photo photo)
photo - a Photo to addpublic User.Builder removePhotos()
public User.Builder removePhoto(Photo photo)
photo - a photo to be removedpublic User.Builder addAddresses(Collection<Address> addresses)
User.getAddresses()).addresses - a collection of the addresses of the Userpublic User.Builder addAddress(Address address)
address - a Address to addpublic User.Builder removeAddresses()
public User.Builder removeAddress(Address address)
address - a Address to be removedpublic User.Builder setGroups(List<GroupRef> groups)
User.getGroups())
client info: The groups where the user is a member of will only be set from the OSIAM server. If you want to
put a user into a group, you have to add the user as a member to the group. If a User which is send
to the OSIAM server has this value filled, the value will be ignored or the action will be rejected.
groups - groups of the Userpublic User.Builder addEntitlements(Collection<Entitlement> entitlements)
User.getEntitlements()).entitlements - the entitlements of the Userpublic User.Builder addEntitlement(Entitlement entitlement)
entitlement - a Entitlement to addpublic User.Builder removeEntitlements()
public User.Builder removeEntitlement(Entitlement entitlement)
entitlement - a Entitlement to be removedpublic User.Builder addRoles(Collection<Role> roles)
User.getRoles()).roles - a list of rolespublic User.Builder addRole(Role role)
role - a Role to addpublic User.Builder removeRoles()
public User.Builder removeRole(Role role)
role - a Role to be removedpublic User.Builder addX509Certificates(Collection<X509Certificate> x509Certificates)
User.getX509Certificates()).x509Certificates - the certificates of the Userpublic User.Builder addX509Certificate(X509Certificate x509Certificate)
x509Certificate - a X509Certificate to addpublic User.Builder removeX509Certificates()
public User.Builder removeX509Certificate(X509Certificate x509Certificate)
x509Certificate - a X509Certificate to be removedpublic User.Builder addExtensions(Collection<Extension> extensions)
User.getExtensions()).extensions - a collection of extensionspublic User.Builder addExtension(Extension extension)
User.getExtension(String)).extension - a single Extensionpublic User.Builder removeExtensions()
public User.Builder removeExtension(String urn)
urn - the urn from the Extension to be removedpublic User.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 User.Builder setExternalId(String externalId)
Resource.BuilderResource.getExternalId()).setExternalId in class Resource.BuilderexternalId - the external idpublic User.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 User.Builder setSchemas(Set<String> schemas)
Resource.BuildersetSchemas in class Resource.Builderschemas - actual schemaspublic User build()
Resource.Builderbuild in class Resource.BuilderCopyright © 2014. All Rights Reserved.