public class UserTemplateWithAttributes extends UserTemplate implements UserWithAttributes
Modifier | Constructor and Description |
---|---|
|
UserTemplateWithAttributes(String username,
long directoryId) |
protected |
UserTemplateWithAttributes(User user) |
|
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)
Creates new UserTemplateWithAttributes based on the given user with empty attributes.
|
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Set<String> values) |
void |
setAttribute(String name,
String value) |
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, getFirstName, getLastName, getName, hashCode, isActive, setActive, setDirectoryId, setDisplayName, setEmailAddress, setFirstName, setLastName, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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 templateprotected UserTemplateWithAttributes(User user)
public static UserTemplateWithAttributes ofUserWithNoAttributes(User user)
user
- user to use as a templatepublic Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values forpublic 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)
Copyright © 2013 Atlassian. All Rights Reserved.