public static interface MailboxACL.MailboxACLEntryKey
MailboxACL.getEntries()
. Implementations should
override #hashCode()
and #equals(Object)
in such a way
that all of getName()
, getNameType()
and
isNegative()
are significant.Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of a user or of a group to which this
MailboxACL.MailboxACLEntryKey applies. |
MailboxACL.NameType |
getNameType()
Tells of what type is the name returned by
getName() . |
boolean |
isNegative()
If true the
MailboxACL.MailboxACLRights returned by
MailboxACLEntry#getRights() should be interpreted as
"negative rights" as described in RFC4314: If the identifier "-fred"
is granted the "w" right, that indicates that the "w" right is to be
removed from users matching the identifier "fred", even though the
user "fred" might have the "w" right as a consequence of some other
identifier in the ACL. |
String |
serialize()
Returns a serialized form of this
MailboxACL.MailboxACLEntryKey as a
String . |
String getName()
MailboxACL.MailboxACLEntryKey
applies.MailboxACL.NameType getNameType()
getName()
.getName()
boolean isNegative()
MailboxACL.MailboxACLRights
returned by
MailboxACLEntry#getRights()
should be interpreted as
"negative rights" as described in RFC4314: If the identifier "-fred"
is granted the "w" right, that indicates that the "w" right is to be
removed from users matching the identifier "fred", even though the
user "fred" might have the "w" right as a consequence of some other
identifier in the ACL.
Note that MailboxACLEntry#getName()
does not start with "-"
when MailboxACLEntry#getRights()
returns true.String serialize()
MailboxACL.MailboxACLEntryKey
as a
String
. Implementations should choose a consistent way how
all of getName()
, getNameType()
and
isNegative()
get serialized.
RFC4314 sction 2. states: All user name strings accepted by the LOGIN
or AUTHENTICATE commands to authenticate to the IMAP server are
reserved as identifiers for the corresponding users. Identifiers
starting with a dash ("-") are reserved for "negative rights",
described below. All other identifier strings are interpreted in an
implementation-defined manner.
Dovecot and Cyrus mark groups with '$' prefix. See http://wiki2.dovecot.org/SharedMailboxes/Shared:
The $group syntax is not a standard, but it is mentioned in RFC
4314 examples and is also understood by at least Cyrus IMAP. Having
'-' before the identifier specifies negative rights.String
MailboxACL.DEFAULT_GROUP_MARKER
,
MailboxACL.DEFAULT_NEGATIVE_MARKER
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.