com.atlassian.crowd.model.group
Class InternalGroup
java.lang.Object
com.atlassian.crowd.model.InternalEntity
com.atlassian.crowd.model.InternalDirectoryEntity
com.atlassian.crowd.model.group.InternalGroup
- All Implemented Interfaces:
- DirectoryEntity, Group, InternalDirectoryGroup, TimestampedGroup, TimestampedEntity, java.io.Serializable, java.lang.Comparable<Group>
public class InternalGroup
- extends InternalDirectoryEntity
- implements InternalDirectoryGroup
Encapsulates the concept of group.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.crowd.model.group.Group |
isActive |
InternalGroup
protected InternalGroup()
InternalGroup
public InternalGroup(InternalEntityTemplate internalEntityTemplate,
Directory directory,
GroupTemplate groupTemplate)
InternalGroup
public InternalGroup(Group group,
Directory directory)
updateDetailsFrom
public void updateDetailsFrom(Group group)
renameTo
public void renameTo(java.lang.String newName)
setName
protected void setName(java.lang.String name)
- Overrides:
setName in class InternalEntity
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface Group
- Returns:
- description of the group or
null if there is no description.
getType
public GroupType getType()
- Specified by:
getType in interface Group
- Returns:
- the type of the group.
getLowerName
public java.lang.String getLowerName()
isLocal
public boolean isLocal()
- Description copied from interface:
InternalDirectoryGroup
- Returns true if this is a Local Group.
- Specified by:
isLocal in interface InternalDirectoryGroup
- Returns:
- true if this is a Local Group.
setLocal
public void setLocal(boolean local)
equals
public boolean equals(java.lang.Object o)
- Description copied from interface:
DirectoryEntity
- Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
- Specified by:
equals in interface DirectoryEntity- Specified by:
equals in class InternalEntity
- 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 interface DirectoryEntity- Specified by:
hashCode in class InternalEntity
- Returns:
- hashcode.
compareTo
public int compareTo(Group o)
- Specified by:
compareTo in interface java.lang.Comparable<Group>
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012 Atlassian. All Rights Reserved.