Package com.atlassian.crowd.model.group
Class InternalGroupWithAttributes
java.lang.Object
com.atlassian.crowd.model.EntityWithAttributes
com.atlassian.crowd.model.group.InternalGroupWithAttributes
- All Implemented Interfaces:
Attributes,DirectoryEntity,Group,GroupWithAttributes,GroupWithMembers,Comparable<Group>
public class InternalGroupWithAttributes
extends EntityWithAttributes
implements GroupWithAttributes
Encapsulates the concept of group which has attributes.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalGroupWithAttributes(InternalGroup group, Map<String, Set<String>> attributes) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanImplementations must ensure equality based on getDirectoryId() and case-insensitive getName().longThis will returnnullfor directories which do not support external idsgetName()getType()inthashCode()Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().booleanisActive()toString()Methods inherited from class com.atlassian.crowd.model.EntityWithAttributes
getKeys, getValue, getValues, isEmptyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, getValue, getValues, isEmpty
-
Constructor Details
-
InternalGroupWithAttributes
-
InternalGroupWithAttributes
-
-
Method Details
-
getDirectoryId
public long getDirectoryId()- Specified by:
getDirectoryIdin interfaceDirectoryEntity- Returns:
- id of the directory in which the DirectoryEntity is stored.
-
getName
- Specified by:
getNamein interfaceDirectoryEntity- Returns:
- name of the entity.
-
getType
-
isActive
public boolean isActive() -
getDescription
- Specified by:
getDescriptionin interfaceGroup- Returns:
- description of the group or
nullif there is no description.
-
getExternalId
Description copied from interface:GroupThis will returnnullfor directories which do not support external ids- Specified by:
getExternalIdin interfaceGroup- Returns:
- external id of the group or
nullit there is no external id
-
getInternalGroup
-
equals
Description copied from interface:DirectoryEntityImplementations must ensure equality based on getDirectoryId() and case-insensitive getName().- Specified by:
equalsin interfaceDirectoryEntity- Overrides:
equalsin classObject- Parameters:
o- object to compare to.- Returns:
trueif and only if the directoryId and the lowercase names of the directory entities match.
-
hashCode
public int hashCode()Description copied from interface:DirectoryEntityImplementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().- Specified by:
hashCodein interfaceDirectoryEntity- Overrides:
hashCodein classObject- Returns:
- hashcode.
-
compareTo
- Specified by:
compareToin interfaceComparable<Group>
-
toString
- Overrides:
toStringin classEntityWithAttributes
-