public class InternalGroup extends InternalDirectoryEntity<InternalGroupAttribute> implements InternalDirectoryGroup
attributes, directoryactive, 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().
|
String |
getDescription() |
String |
getExternalId()
This will return
null for directories which do not support external ids |
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 |
setExternalId(String externalId) |
void |
setLocal(boolean local) |
protected void |
setName(String name) |
String |
toString() |
void |
updateDetailsFrom(Group group) |
getAttributes, getDirectory, getDirectoryIdgetCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNowclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirectoryId, getNamegetCreatedDate, getUpdatedDateprotected 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 InternalEntitypublic String getDescription()
getDescription in interface Groupnull if there is no description.public GroupType getType()
public String getLowerName()
public boolean isLocal()
InternalDirectoryGroupisLocal in interface InternalDirectoryGrouppublic void setLocal(boolean local)
@Nullable public String getExternalId()
Groupnull for directories which do not support external idsgetExternalId in interface Groupnull it there is no external idpublic void setExternalId(String externalId)
public boolean equals(Object o)
DirectoryEntityequals in interface DirectoryEntityequals in class InternalEntityo - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntityhashCode in interface DirectoryEntityhashCode in class InternalEntitypublic int compareTo(Group o)
compareTo in interface Comparable<Group>Copyright © 2018 Atlassian. All rights reserved.