com.atlassian.crowd.directory
Class ImmutableGroup

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

public class ImmutableGroup
extends Object
implements InternalDirectoryGroup

ImmutableGroup is an immutable implementation of InternalDirectoryGroup.


Constructor Summary
ImmutableGroup(InternalDirectoryGroup group)
           
 
Method Summary
 int compareTo(Group o)
           
 Date getCreatedDate()
          Returns the date the entity was created.
 String getDescription()
           
 long getDirectoryId()
           
 String getName()
           
 GroupType getType()
           
 Date getUpdatedDate()
          Returns the date the entity was last updated.
 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 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 String getName()
Specified by:
getName in interface DirectoryEntity
Returns:
name of the entity.

compareTo

public int compareTo(Group o)
Specified by:
compareTo in interface 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 Date getCreatedDate()
Description copied from interface: TimestampedEntity
Returns the date the entity was created.

Specified by:
getCreatedDate in interface TimestampedEntity
Returns:
date the entity was created

getUpdatedDate

public Date getUpdatedDate()
Description copied from interface: TimestampedEntity
Returns the date the entity was last updated.

Specified by:
getUpdatedDate in interface TimestampedEntity
Returns:
date the entity was last updated.


Copyright © 2014 Atlassian. All Rights Reserved.