org.apache.geronimo.javamail.store.imap
Class ACL

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.ACL
All Implemented Interfaces:
Cloneable

public class ACL
extends Object
implements Cloneable

A named access control list for IMAP resources.


Constructor Summary
ACL(String name)
          Create an ACL for a resource.
ACL(String name, Rights rights)
          Create a named ACL instance with an initial Rights set.
 
Method Summary
protected  Object clone()
          Creates and returns a copy of this object.
 String getName()
          Get the ACL name.
 Rights getRights()
          Get the Rights associated with this ACL.
 void setRights(Rights rights)
          Set a new set of Rights for this ACL instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACL

public ACL(String name)
Create an ACL for a resource. The ACL will have an empty Rights set.

Parameters:
name - The name of the resource.

ACL

public ACL(String name,
           Rights rights)
Create a named ACL instance with an initial Rights set.

Parameters:
name - The name of the resouce this ACL applies to.
rights - The Rights associated with this resource.
Method Detail

getName

public String getName()
Get the ACL name.

Returns:
The string name of the ACL.

getRights

public Rights getRights()
Get the Rights associated with this ACL.

Returns:
The Rights set supported for this resource.

setRights

public void setRights(Rights rights)
Set a new set of Rights for this ACL instance.

Parameters:
rights - The new Rights set.

clone

protected Object clone()
                throws CloneNotSupportedException
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A cloned copy of this object. This is a deep copy, given that a new Rights set is also created.
Throws:
CloneNotSupportedException


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.