org.apache.geronimo.javamail.store.imap
Class Rights.Right

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.Rights.Right
Enclosing class:
Rights

public static final class Rights.Right
extends Object

An individual right for IMAP Store manipulation.


Field Summary
static Rights.Right ADMINISTER
          administer (perform SETACL)
static Rights.Right CREATE
          create (CREATE new sub-mailboxes in any implementation-defined hierarchy)
static Rights.Right DELETE
          delete (STORE DELETED flag, perform EXPUNGE)
static Rights.Right INSERT
          insert (perform APPEND, COPY into mailbox)
static Rights.Right KEEP_SEEN
          keep seen/unseen information across sessions (STORE SEEN flag)
static Rights.Right LOOKUP
          lookup (mailbox is visible to LIST/LSUB commands)
static Rights.Right POST
          post (send mail to submission address for mailbox, not enforced by IMAP4 itself)
static Rights.Right READ
          read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox)
static Rights.Right WRITE
          write (STORE flags other than SEEN and DELETED)
 
Method Summary
static Rights.Right getInstance(char right)
          Get an instance for a right from the single character right value.
 String toString()
          Return the string value of the Right.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOOKUP

public static final Rights.Right LOOKUP
lookup (mailbox is visible to LIST/LSUB commands)


READ

public static final Rights.Right READ
read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox)


KEEP_SEEN

public static final Rights.Right KEEP_SEEN
keep seen/unseen information across sessions (STORE SEEN flag)


WRITE

public static final Rights.Right WRITE
write (STORE flags other than SEEN and DELETED)


INSERT

public static final Rights.Right INSERT
insert (perform APPEND, COPY into mailbox)


POST

public static final Rights.Right POST
post (send mail to submission address for mailbox, not enforced by IMAP4 itself)


CREATE

public static final Rights.Right CREATE
create (CREATE new sub-mailboxes in any implementation-defined hierarchy)


DELETE

public static final Rights.Right DELETE
delete (STORE DELETED flag, perform EXPUNGE)


ADMINISTER

public static final Rights.Right ADMINISTER
administer (perform SETACL)

Method Detail

getInstance

public static Rights.Right getInstance(char right)
Get an instance for a right from the single character right value. The returned instance will be a singleton for that character value.

Parameters:
right - The right character value.
Returns:
A Right instance that's the mapping for the character value.

toString

public String toString()
Return the string value of the Right. The string value is the character used to create the Right with newInstance().

Overrides:
toString in class Object
Returns:
The string representation of the Right.


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