com.atlassian.crowd.integration.model
Class DirectoryContainer

java.lang.Object
  extended by com.atlassian.crowd.integration.model.DirectoryEntity
      extended by com.atlassian.crowd.integration.model.DirectoryContainer
All Implemented Interfaces:
Serializable, Group, Principal
Direct Known Subclasses:
RemoteGroup, RemoteRole

public class DirectoryContainer
extends DirectoryEntity
implements Group, Serializable

See Also:
Serialized Form

Field Summary
protected  Directory directory
           
protected  Set members
          The principal members of the group.
 
Fields inherited from class com.atlassian.crowd.integration.model.DirectoryEntity
active, attributes, conception, description, directoryID, ID, lastModified, name
 
Constructor Summary
DirectoryContainer()
           
 
Method Summary
 boolean addMember(Principal user)
          Adds the user to the group.
 Directory getDirectory()
           
 Set getMembers()
          Gets the principals who are a member of the group.
 boolean isMember(Principal member)
          Checks if the principal is a member of the group.
 Enumeration members()
          Gets the members of the group.
 boolean removeMember(Principal user)
          Removes the supplied principal from the group.
 void setDirectory(Directory directory)
           
 void setMembers(Set members)
          Sets the members of the group.
 
Methods inherited from class com.atlassian.crowd.integration.model.DirectoryEntity
equals, getAttribute, getAttributes, getConception, getDescription, getDirectoryID, getID, getLastModified, getName, hashCode, isActive, setActive, setAttribute, setAttribute, setAttributes, setConception, setDescription, setDirectoryID, setID, setLastModified, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Field Detail

members

protected Set members
The principal members of the group.


directory

protected Directory directory
Constructor Detail

DirectoryContainer

public DirectoryContainer()
Method Detail

addMember

public boolean addMember(Principal user)
Adds the user to the group.

Specified by:
addMember in interface Group
Parameters:
user - The user to add.
Returns:
If the user was added.

isMember

public boolean isMember(Principal member)
Checks if the principal is a member of the group.

Specified by:
isMember in interface Group
Parameters:
member - The principal to validate member ship.
Returns:
true if and only if the principal is a member, otherwise false.

removeMember

public boolean removeMember(Principal user)
Removes the supplied principal from the group.

Specified by:
removeMember in interface Group
Parameters:
user - The principal to remove.
Returns:
true if and only if the principal was removed, otherwise false.

members

public Enumeration members()
Gets the members of the group.

Specified by:
members in interface Group
Returns:
The members.

getMembers

public Set getMembers()
Gets the principals who are a member of the group.

Returns:
The members.

setMembers

public void setMembers(Set members)
Sets the members of the group.

Parameters:
members - The members.

getDirectory

public Directory getDirectory()

setDirectory

public void setDirectory(Directory directory)


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.