org.servebox.toolbox.acl
Class AccessRequestGroup

java.lang.Object
  extended by org.servebox.foundry.value.BasicObject
      extended by org.servebox.foundry.value.AbstractValueObject
          extended by org.servebox.toolbox.acl.BasicACLObject
              extended by org.servebox.toolbox.acl.AccessRequestObject
                  extended by org.servebox.toolbox.acl.AccessRequestGroup
All Implemented Interfaces:
Serializable, IACLContainer

public class AccessRequestGroup
extends AccessRequestObject
implements IACLContainer

An AccessRequestGroup is a collection of AccessRequestUsers requiring access verification on a resource.

Author:
B.Flight
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
AccessRequestGroup()
           
AccessRequestGroup(String name)
           
 
Method Summary
 boolean addGroup(AccessRequestGroup group)
          Add the specified ARG to the tree.
 boolean addObject(AccessRequestObject object)
          Add the specified object to the tree
 Vector getChildContainer()
           
 AccessRequestGroup getParentGroup()
           
 Collection getRequestObjects()
          get a list of all request objects that are part of this group
 Collection getRoles()
          Obtain the roles for this ARG.
 boolean removeGroup(AccessRequestGroup group)
          Remove the specified ARG from the tree.
 boolean removeObject(AccessRequestObject object)
          Remove the specified object from the tree
 void setParentGroup(AccessRequestGroup parent)
           
 void setRoles(Vector roles)
          Set the roles for this ARG.
 String toString()
           
 
Methods inherited from class org.servebox.toolbox.acl.BasicACLObject
equals, getName, getUID, setName, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AccessRequestGroup

public AccessRequestGroup()

AccessRequestGroup

public AccessRequestGroup(String name)
Method Detail

setRoles

public void setRoles(Vector roles)
Set the roles for this ARG. Any existing roles are replaced.

Parameters:
roles -

getRoles

public Collection getRoles()
Obtain the roles for this ARG.

Returns:
a Vectorcontaining the roles applicable.

setParentGroup

public void setParentGroup(AccessRequestGroup parent)

getParentGroup

public AccessRequestGroup getParentGroup()

addGroup

public boolean addGroup(AccessRequestGroup group)
Add the specified ARG to the tree.

Parameters:
group -
Returns:

removeGroup

public boolean removeGroup(AccessRequestGroup group)
Remove the specified ARG from the tree.

Parameters:
group -
Returns:

addObject

public boolean addObject(AccessRequestObject object)
Add the specified object to the tree

Parameters:
object -
Returns:

removeObject

public boolean removeObject(AccessRequestObject object)
Remove the specified object from the tree

Parameters:
object -
Returns:

getRequestObjects

public Collection getRequestObjects()
get a list of all request objects that are part of this group

Returns:
A Collection

toString

public String toString()
Overrides:
toString in class AccessRequestObject

getChildContainer

public Vector getChildContainer()
Specified by:
getChildContainer in interface IACLContainer


Copyright © 2010. All Rights Reserved.