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, directoryFields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInternalGroup(Group group, Directory directory) InternalGroup(InternalEntityTemplate internalEntityTemplate, Directory directory, GroupTemplate groupTemplate) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanImplementations must ensure equality based on getDirectoryId() and case-insensitive getName().This will returnnullfor directories which do not support external idsgetType()inthashCode()Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().booleanisLocal()Returns true if this is a Local Group.voidvoidsetExternalId(String externalId) voidsetLocal(boolean local) protected voidtoString()voidupdateDetailsFrom(Group group) Methods inherited from class com.atlassian.crowd.model.InternalDirectoryEntity
getAttributes, getDirectory, getDirectoryIdMethods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.crowd.model.DirectoryEntity
getDirectoryId, getNameMethods 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:
setNamein classInternalEntity
-
getDescription
- Specified by:
getDescriptionin interfaceGroup- Returns:
- description of the group or
nullif there is no description.
-
getType
-
getLowerName
-
isLocal
public boolean isLocal()Description copied from interface:InternalDirectoryGroupReturns true if this is a Local Group.- Specified by:
isLocalin interfaceInternalDirectoryGroup- Returns:
- true if this is a Local Group.
-
setLocal
public void setLocal(boolean local) -
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
-
setExternalId
-
equals
Description copied from interface:DirectoryEntityImplementations must ensure equality based on getDirectoryId() and case-insensitive getName().- Specified by:
equalsin interfaceDirectoryEntity- Specified by:
equalsin classInternalEntity- 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- Specified by:
hashCodein classInternalEntity- Returns:
- hashcode.
-
compareTo
- Specified by:
compareToin interfaceComparable<Group>
-
toString
-