com.atlassian.crowd.directory
Class ImmutableGroup

java.lang.Object
  extended by com.atlassian.crowd.directory.ImmutableGroup
All Implemented Interfaces:
DirectoryEntity, Group, InternalDirectoryGroup, TimestampedGroup, TimestampedEntity, java.lang.Comparable<Group>

public class ImmutableGroup
extends java.lang.Object
implements InternalDirectoryGroup


Constructor Summary
ImmutableGroup(InternalDirectoryGroup group)
           
 
Method Summary
 int compareTo(Group o)
           
 java.util.Date getCreatedDate()
           
 java.lang.String getDescription()
           
 long getDirectoryId()
           
 java.lang.String getName()
           
 GroupType getType()
           
 java.util.Date getUpdatedDate()
           
 boolean isActive()
           
 boolean isLocal()
          Returns true if this is a Local Group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.model.DirectoryEntity
equals, hashCode
 

Constructor Detail

ImmutableGroup

public ImmutableGroup(InternalDirectoryGroup group)
Method Detail

getType

public GroupType getType()
Specified by:
getType in interface Group
Returns:
the type of the group.

isActive

public boolean isActive()
Specified by:
isActive in interface Group
Returns:
true if and only if the user is allowed to authenticate.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Group
Returns:
description of the group or null if there is no description.

getDirectoryId

public long getDirectoryId()
Specified by:
getDirectoryId in interface DirectoryEntity
Returns:
id of the directory in which the DirectoryEntity is stored.

getName

public java.lang.String getName()
Specified by:
getName in interface DirectoryEntity
Returns:
name of the entity.

compareTo

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

isLocal

public boolean isLocal()
Description copied from interface: InternalDirectoryGroup
Returns true if this is a Local Group.

Specified by:
isLocal in interface InternalDirectoryGroup
Returns:
true if this is a Local Group.

getCreatedDate

public java.util.Date getCreatedDate()
Specified by:
getCreatedDate in interface TimestampedEntity

getUpdatedDate

public java.util.Date getUpdatedDate()
Specified by:
getUpdatedDate in interface TimestampedEntity


Copyright © 2010 Atlassian. All Rights Reserved.