com.atlassian.crowd.model.group
Class InternalGroup

java.lang.Object
  extended by com.atlassian.crowd.model.InternalEntity
      extended by com.atlassian.crowd.model.InternalDirectoryEntity
          extended by com.atlassian.crowd.model.group.InternalGroup
All Implemented Interfaces:
DirectoryEntity, Group, InternalDirectoryGroup, TimestampedGroup, TimestampedEntity, Serializable, Comparable<Group>

public class InternalGroup
extends InternalDirectoryEntity
implements InternalDirectoryGroup

Encapsulates the concept of group.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.model.InternalDirectoryEntity
directory
 
Fields inherited from class com.atlassian.crowd.model.InternalEntity
active, createdDate, id, name, updatedDate
 
Constructor Summary
protected InternalGroup()
           
  InternalGroup(Group group, Directory directory)
           
  InternalGroup(InternalEntityTemplate internalEntityTemplate, Directory directory, GroupTemplate groupTemplate)
           
 
Method Summary
 int compareTo(Group o)
           
 boolean equals(Object o)
           
 Set<InternalGroupAttribute> getAttributes()
           
 String getDescription()
           
 String getLowerName()
           
 GroupType getType()
           
 int hashCode()
           
 boolean isLocal()
           
 void renameTo(String newName)
           
 void setLocal(boolean local)
           
protected  void setName(String name)
           
 String toString()
           
 void updateDetailsFrom(Group group)
           
 
Methods inherited from class com.atlassian.crowd.model.InternalDirectoryEntity
getDirectory, getDirectoryId
 
Methods inherited from class com.atlassian.crowd.model.InternalEntity
getCreatedDate, getId, getName, getUpdatedDate, isActive, setActive, setCreatedDate, setCreatedDateToNow, setUpdatedDate, setUpdatedDateToNow
 
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
 
Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity
getDirectoryId, getName
 
Methods inherited from interface com.atlassian.crowd.model.TimestampedEntity
getCreatedDate, getUpdatedDate
 

Constructor Detail

InternalGroup

protected InternalGroup()

InternalGroup

public InternalGroup(InternalEntityTemplate internalEntityTemplate,
                     Directory directory,
                     GroupTemplate groupTemplate)

InternalGroup

public InternalGroup(Group group,
                     Directory directory)
Method Detail

updateDetailsFrom

public void updateDetailsFrom(Group group)

renameTo

public void renameTo(String newName)

setName

protected void setName(String name)
Overrides:
setName in class InternalEntity

getDescription

public String getDescription()
Specified by:
getDescription in interface Group

getType

public GroupType getType()
Specified by:
getType in interface Group

getLowerName

public String getLowerName()

isLocal

public boolean isLocal()
Specified by:
isLocal in interface InternalDirectoryGroup

setLocal

public void setLocal(boolean local)

getAttributes

public Set<InternalGroupAttribute> getAttributes()

equals

public boolean equals(Object o)
Specified by:
equals in interface DirectoryEntity
Specified by:
equals in class InternalEntity

hashCode

public int hashCode()
Specified by:
hashCode in interface DirectoryEntity
Specified by:
hashCode in class InternalEntity

compareTo

public int compareTo(Group o)
Specified by:
compareTo in interface Comparable<Group>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016 Atlassian. All Rights Reserved.