public class InternalGroup extends InternalDirectoryEntity<InternalGroupAttribute> implements InternalDirectoryGroup
attributes, 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().
|
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, 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)
@Nullable public String getExternalId()
Group
null
for directories which do not support external idsgetExternalId
in interface Group
null
it there is no external idpublic void setExternalId(String externalId)
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 © 2021 Atlassian. All rights reserved.