public final class ImmutableUserWithAttributes extends BaseImmutableUser implements UserWithAttributes
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableUserWithAttributes.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableUserWithAttributes.Builder |
builder(User user,
com.google.common.collect.SetMultimap<String,String> attributes) |
static ImmutableUserWithAttributes.Builder |
builder(UserWithAttributes user) |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String key)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key.
|
boolean |
isEmpty() |
ImmutableUserWithAttributes |
withName(String name) |
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, getExternalId, getFirstName, getLastName, getName, hashCode, isActive, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExternalId, getFirstName, getLastNameequals, getDirectoryId, getName, hashCodecompareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, hashCode, isActivepublic static ImmutableUserWithAttributes.Builder builder(UserWithAttributes user)
public static ImmutableUserWithAttributes.Builder builder(User user, com.google.common.collect.SetMultimap<String,String> attributes)
@Nonnull public Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values for@Nullable public String getValue(String key)
Attributesnull if there is no value.getValue in interface Attributeskey - 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 ImmutableUserWithAttributes withName(String name)
withName in class BaseImmutableUserCopyright © 2021 Atlassian. All rights reserved.