public final class ImmutableTimestampedUserWithAttributes extends BaseImmutableUser implements UserWithAttributes, TimestampedUser
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableTimestampedUserWithAttributes.Builder |
Modifier and Type | Method and Description |
---|---|
static ImmutableTimestampedUserWithAttributes.Builder |
builder(TimestampedUser user,
com.google.common.collect.SetMultimap<String,String> attributes) |
Date |
getCreatedDate()
Returns the date the entity was created.
|
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
Date |
getUpdatedDate()
Returns the date the entity was last updated.
|
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() |
ImmutableTimestampedUserWithAttributes |
withName(String name) |
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, getExternalId, getFirstName, getLastName, getName, hashCode, isActive, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExternalId, getFirstName, getLastName
equals, getDirectoryId, getName, hashCode
compareTo, equals, getDirectoryId, getDisplayName, getEmailAddress, hashCode, isActive
public static ImmutableTimestampedUserWithAttributes.Builder builder(TimestampedUser user, com.google.common.collect.SetMultimap<String,String> attributes)
@Nonnull public Set<String> getValues(String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values for@Nullable public String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public Date getCreatedDate()
TimestampedEntity
getCreatedDate
in interface TimestampedEntity
public Date getUpdatedDate()
TimestampedEntity
getUpdatedDate
in interface TimestampedEntity
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic ImmutableTimestampedUserWithAttributes withName(String name)
withName
in class BaseImmutableUser
Copyright © 2021 Atlassian. All rights reserved.