public class InternalGroup extends InternalDirectoryEntity implements InternalDirectoryGroup
directory
active, createdDate, id, name, updatedDate
Modifier | Constructor and Description |
---|---|
protected |
InternalGroup() |
|
InternalGroup(Group group,
Directory directory) |
|
InternalGroup(InternalEntityTemplate internalEntityTemplate,
Directory directory,
GroupTemplate groupTemplate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Group o) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
Set<InternalGroupAttribute> |
getAttributes() |
String |
getDescription() |
String |
getLowerName() |
GroupType |
getType() |
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 |
renameTo(String newName) |
void |
setLocal(boolean local) |
protected void |
setName(String name) |
String |
toString() |
void |
updateDetailsFrom(Group group) |
getDirectory, getDirectoryId
getCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDirectoryId, getName
getCreatedDate, getUpdatedDate
protected InternalGroup()
public InternalGroup(InternalEntityTemplate internalEntityTemplate, Directory directory, GroupTemplate groupTemplate)
public void updateDetailsFrom(Group group)
public void renameTo(String newName)
protected void setName(String name)
setName
in class InternalEntity
public String getDescription()
getDescription
in interface Group
null
if there is no description.public GroupType getType()
public String getLowerName()
public boolean isLocal()
InternalDirectoryGroup
isLocal
in interface InternalDirectoryGroup
public void setLocal(boolean local)
public Set<InternalGroupAttribute> getAttributes()
public boolean equals(Object o)
DirectoryEntity
equals
in interface DirectoryEntity
equals
in class InternalEntity
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface DirectoryEntity
hashCode
in class InternalEntity
public int compareTo(Group o)
compareTo
in interface Comparable<Group>
Copyright © 2016 Atlassian. All rights reserved.