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, setName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExternalId, getFirstName, getLastName
equals, getDirectoryId, getName, hashCode
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, hashCode, isActive
public 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)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values for@Nullable public String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic void removeAttribute(String name)
public String toString()
toString
in interface Principal
toString
in class UserTemplate
Copyright © 2020 Atlassian. All rights reserved.