Package com.atlassian.crowd.model.group
Class ImmutableGroup
java.lang.Object
com.atlassian.crowd.model.group.ImmutableGroup
- All Implemented Interfaces:
DirectoryEntity
,Group
,Comparable<Group>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableGroup.Builder
static ImmutableGroup.Builder
static ImmutableGroup.Builder
int
boolean
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().static ImmutableGroup
long
This will returnnull
for directories which do not support external idsgetName()
getType()
int
hashCode()
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().boolean
isActive()
toString()
-
Method Details
-
from
- Returns:
- an
ImmutableGroup
with the same properties as the given group. Will avoid creating a copy if possible.
-
builder
-
builder
-
builder
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Group>
-
getDirectoryId
public long getDirectoryId()- Specified by:
getDirectoryId
in interfaceDirectoryEntity
- Returns:
- id of the directory in which the DirectoryEntity is stored.
-
getName
- Specified by:
getName
in interfaceDirectoryEntity
- Returns:
- name of the entity.
-
getType
-
isActive
public boolean isActive() -
getDescription
- Specified by:
getDescription
in interfaceGroup
- Returns:
- description of the group or
null
if there is no description.
-
getExternalId
Description copied from interface:Group
This will returnnull
for directories which do not support external ids- Specified by:
getExternalId
in interfaceGroup
- Returns:
- external id of the group or
null
it there is no external id
-
equals
Description copied from interface:DirectoryEntity
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().- Specified by:
equals
in interfaceDirectoryEntity
- Overrides:
equals
in classObject
- Parameters:
o
- object to compare to.- Returns:
true
if and only if the directoryId and the lowercase names of the directory entities match.
-
hashCode
public int hashCode()Description copied from interface:DirectoryEntity
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().- Specified by:
hashCode
in interfaceDirectoryEntity
- Overrides:
hashCode
in classObject
- Returns:
- hashcode.
-
toString
-