com.atlassian.crowd.integration.model.group
Class InternalGroup

java.lang.Object
  extended by com.atlassian.crowd.integration.model.InternalEntity
      extended by com.atlassian.crowd.integration.model.InternalDirectoryEntity
          extended by com.atlassian.crowd.integration.model.group.InternalGroup
All Implemented Interfaces:
DirectoryEntity, Group, Serializable

public class InternalGroup
extends InternalDirectoryEntity
implements Group

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.integration.model.InternalDirectoryEntity
directory
 
Fields inherited from class com.atlassian.crowd.integration.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
 boolean equals(Object o)
          Implementations must ensure equality based on getDirectoryId() and case-insensitive getName().
 String getDescription()
           
 String getLowerName()
           
 GroupType getType()
           
 int hashCode()
          Implementations must produce a hashcode based on getDirectoryId() and case-insensitive getName().
 void renameTo(String newName)
           
protected  void setName(String name)
           
 String toString()
           
 void updateDetailsFrom(Group group)
           
 
Methods inherited from class com.atlassian.crowd.integration.model.InternalDirectoryEntity
getDirectory, getDirectoryId
 
Methods inherited from class com.atlassian.crowd.integration.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.integration.model.group.Group
isActive
 
Methods inherited from interface com.atlassian.crowd.integration.model.DirectoryEntity
getDirectoryId, getName
 

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
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 String getLowerName()

equals

public boolean equals(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 name.toLowerCase() 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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.