public final class ImmutableDirectoryGroupWithAttributes extends BaseImmutableGroup implements GroupWithAttributes, InternalDirectoryGroup
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableDirectoryGroupWithAttributes.Builder |
Modifier and Type | Method and Description |
---|---|
static ImmutableDirectoryGroupWithAttributes.Builder |
builder(InternalDirectoryGroup group,
com.google.common.collect.SetMultimap<String,String> attributes) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
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.
|
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isEmpty() |
boolean |
isLocal()
Returns true if this is a Local Group.
|
ImmutableDirectoryGroupWithAttributes |
withName(String name) |
compareTo, getDescription, getDirectoryId, getExternalId, getName, getType, isActive, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getExternalId, getType, isActive
getDirectoryId, getName
compareTo
public static ImmutableDirectoryGroupWithAttributes.Builder builder(InternalDirectoryGroup group, 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 boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic Date getCreatedDate()
TimestampedEntity
getCreatedDate
in interface TimestampedEntity
public Date getUpdatedDate()
TimestampedEntity
getUpdatedDate
in interface TimestampedEntity
public boolean isLocal()
InternalDirectoryGroup
isLocal
in interface InternalDirectoryGroup
public ImmutableDirectoryGroupWithAttributes withName(String name)
withName
in class BaseImmutableGroup
public boolean equals(Object o)
DirectoryEntity
equals
in interface DirectoryEntity
equals
in class BaseImmutableGroup
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface DirectoryEntity
hashCode
in class BaseImmutableGroup
Copyright © 2021 Atlassian. All rights reserved.