public class UserTemplateWithAttributes extends UserTemplate implements UserWithAttributes
| Modifier | Constructor and Description |
|---|---|
|
UserTemplateWithAttributes(String username,
long directoryId) |
protected |
UserTemplateWithAttributes(User user) |
protected |
UserTemplateWithAttributes(User user) |
|
UserTemplateWithAttributes(UserWithAttributes user)
Creates new UserTemplateWithAttributes based on the given user with attributes.
|
|
UserTemplateWithAttributes(UserWithAttributes user)
Creates new UserTemplateWithAttributes based on the given user with attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getAttributes() |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Get all the values associated with a given key.
|
boolean |
isEmpty() |
static UserTemplateWithAttributes |
ofUserWithNoAttributes(User user)
Deprecated.
Use
toUserWithNoAttributes(User) instead. Since v2.9. |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Set<String> values) |
void |
setAttribute(String name,
String value) |
String |
toString() |
static UserTemplateWithAttributes |
toUserWithNoAttributes(User user)
Creates new UserTemplateWithAttributes based on the given user with empty attributes.
|
static UserTemplateWithAttributes |
toUserWithNoAttributes(User user)
Creates new UserTemplateWithAttributes based on the given user with empty attributes.
|
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, getExternalId, getFirstName, getLastName, getName, hashCode, isActive, setActive, setDirectoryId, setDisplayName, setEmailAddress, setExternalId, setFirstName, setLastName, setNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExternalId, getFirstName, getLastNameequals, getDirectoryId, getName, hashCodecompareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, hashCode, isActivepublic UserTemplateWithAttributes(String username, long directoryId)
public UserTemplateWithAttributes(UserWithAttributes user)
user - user to use as a templatepublic UserTemplateWithAttributes(UserWithAttributes user)
user - user to use as a templateprotected UserTemplateWithAttributes(User user)
protected UserTemplateWithAttributes(User user)
@Deprecated public static UserTemplateWithAttributes ofUserWithNoAttributes(User user)
toUserWithNoAttributes(User) instead. Since v2.9.user - user to use as a templatepublic static UserTemplateWithAttributes toUserWithNoAttributes(User user)
user - user to use as a templatepublic static UserTemplateWithAttributes toUserWithNoAttributes(User user)
user - user to use as a template@Nullable public Set<String> getValues(String name)
AttributesgetValues in interface Attributesname - the key to retrieve the values for@Nullable public String getValue(String name)
Attributesnull if there is no value.getValue in interface Attributesname - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic void removeAttribute(String name)
public String toString()
toString in interface PrincipaltoString in class UserTemplateCopyright © 2021 Atlassian. All rights reserved.