|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.user.UserTemplate
com.atlassian.crowd.model.user.UserTemplateWithAttributes
public class UserTemplateWithAttributes
Mutable user template with mutable attributes.
| Constructor Summary | |
|---|---|
|
UserTemplateWithAttributes(java.lang.String username,
long directoryId)
|
protected |
UserTemplateWithAttributes(User user)
|
|
UserTemplateWithAttributes(UserWithAttributes user)
Creates new UserTemplateWithAttributes based on the given user with attributes. |
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAttributes()
|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getValue(java.lang.String name)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.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(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.util.Set<java.lang.String> values)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
| Methods inherited from class com.atlassian.crowd.model.user.UserTemplate |
|---|
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, getFirstName, getLastName, getName, hashCode, isActive, setActive, setDirectoryId, setDisplayName, setEmailAddress, setFirstName, setLastName, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.crowd.model.user.User |
|---|
getFirstName, getLastName |
| Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity |
|---|
equals, getDirectoryId, getName, hashCode |
| Methods inherited from interface com.atlassian.crowd.embedded.api.User |
|---|
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, hashCode, isActive |
| Constructor Detail |
|---|
public UserTemplateWithAttributes(java.lang.String username,
long directoryId)
public UserTemplateWithAttributes(UserWithAttributes user)
user - user to use as a templateprotected UserTemplateWithAttributes(User user)
| Method Detail |
|---|
public static UserTemplateWithAttributes ofUserWithNoAttributes(User user)
user - user to use as a template
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAttributes()
public java.util.Set<java.lang.String> getValues(java.lang.String name)
Attributes
getValues in interface Attributesname - the key to retrieve the values for
public java.lang.String getValue(java.lang.String name)
Attributesnull if there is no value.
getValue in interface Attributesname - the key to retrieve the value for
null if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributes
public void setAttribute(java.lang.String name,
java.lang.String value)
public void setAttribute(java.lang.String name,
java.util.Set<java.lang.String> values)
public void removeAttribute(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||