Package com.atlassian.crowd.model.group
Class InternalGroup
java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.InternalDirectoryEntity<InternalGroupAttribute>
com.atlassian.crowd.model.group.InternalGroup
- All Implemented Interfaces:
DirectoryEntity
,Group
,InternalDirectoryGroup
,TimestampedGroup
,TimestampedEntity
,Serializable
,Comparable<Group>
public class InternalGroup
extends InternalDirectoryEntity<InternalGroupAttribute>
implements InternalDirectoryGroup
Encapsulates the concept of group.
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.crowd.model.InternalDirectoryEntity
attributes, directory
Fields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate
-
Constructor Summary
ModifierConstructorDescriptionprotected
InternalGroup
(Group group, Directory directory) InternalGroup
(InternalEntityTemplate internalEntityTemplate, Directory directory, GroupTemplate groupTemplate) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().This will returnnull
for directories which do not support external idsgetType()
int
hashCode()
Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().boolean
isLocal()
Returns true if this is a Local Group.void
void
setExternalId
(String externalId) void
setLocal
(boolean local) protected void
toString()
void
updateDetailsFrom
(Group group) Methods inherited from class com.atlassian.crowd.model.InternalDirectoryEntity
getAttributes, getDirectory, getDirectoryId
Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity
getDirectoryId, getName
Methods inherited from interface com.atlassian.crowd.model.TimestampedEntity
getCreatedDate, getUpdatedDate
-
Constructor Details
-
InternalGroup
protected InternalGroup() -
InternalGroup
public InternalGroup(InternalEntityTemplate internalEntityTemplate, Directory directory, GroupTemplate groupTemplate) -
InternalGroup
-
-
Method Details
-
updateDetailsFrom
-
renameTo
-
setName
- Overrides:
setName
in classInternalEntity
-
getDescription
- Specified by:
getDescription
in interfaceGroup
- Returns:
- description of the group or
null
if there is no description.
-
getType
-
getLowerName
-
isLocal
public boolean isLocal()Description copied from interface:InternalDirectoryGroup
Returns true if this is a Local Group.- Specified by:
isLocal
in interfaceInternalDirectoryGroup
- Returns:
- true if this is a Local Group.
-
setLocal
public void setLocal(boolean local) -
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
-
setExternalId
-
equals
Description copied from interface:DirectoryEntity
Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().- Specified by:
equals
in interfaceDirectoryEntity
- Specified by:
equals
in classInternalEntity
- 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
- Specified by:
hashCode
in classInternalEntity
- Returns:
- hashcode.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Group>
-
toString
-