public static class SimpleMailboxACL.SimpleMailboxACLEntryKey extends Object implements MailboxACL.MailboxACLEntryKey
MailboxACLEntryKey
.Constructor and Description |
---|
SimpleMailboxACL.SimpleMailboxACLEntryKey(String serialized)
Creates a new instance of SimpleMailboxACLEntryKey from the given
serialized
String . |
SimpleMailboxACL.SimpleMailboxACLEntryKey(String name,
MailboxACL.NameType nameType,
boolean negative) |
Modifier and Type | Method and Description |
---|---|
static SimpleMailboxACL.SimpleMailboxACLEntryKey |
createGroup(String name) |
static SimpleMailboxACL.SimpleMailboxACLEntryKey |
createGroup(String name,
boolean negative) |
static SimpleMailboxACL.SimpleMailboxACLEntryKey |
createUser(String name) |
static SimpleMailboxACL.SimpleMailboxACLEntryKey |
createUser(String name,
boolean negative) |
boolean |
equals(Object o) |
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
MailboxACL.MailboxACLEntryKey.getName() . |
int |
hashCode() |
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()
Serializes this
SimpleMailboxACL.SimpleMailboxACLEntryKey using
MailboxACL.DEFAULT_NEGATIVE_MARKER and
MailboxACL.DEFAULT_GROUP_MARKER . |
String |
toString() |
public SimpleMailboxACL.SimpleMailboxACLEntryKey(String serialized)
String
. It supposes that negative rights are
marked with MailboxACL.DEFAULT_NEGATIVE_MARKER
and that
groups are marked with MailboxACL.DEFAULT_GROUP_MARKER
.serialized
- public SimpleMailboxACL.SimpleMailboxACLEntryKey(String name, MailboxACL.NameType nameType, boolean negative)
public static SimpleMailboxACL.SimpleMailboxACLEntryKey createGroup(String name)
public static SimpleMailboxACL.SimpleMailboxACLEntryKey createGroup(String name, boolean negative)
public static SimpleMailboxACL.SimpleMailboxACLEntryKey createUser(String name)
public static SimpleMailboxACL.SimpleMailboxACLEntryKey createUser(String name, boolean negative)
public String getName()
MailboxACL.MailboxACLEntryKey
MailboxACL.MailboxACLEntryKey
applies.getName
in interface MailboxACL.MailboxACLEntryKey
public MailboxACL.NameType getNameType()
MailboxACL.MailboxACLEntryKey
MailboxACL.MailboxACLEntryKey.getName()
.getNameType
in interface MailboxACL.MailboxACLEntryKey
MailboxACL.MailboxACLEntryKey.getName()
public boolean isNegative()
MailboxACL.MailboxACLEntryKey
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.isNegative
in interface MailboxACL.MailboxACLEntryKey
public String serialize()
SimpleMailboxACL.SimpleMailboxACLEntryKey
using
MailboxACL.DEFAULT_NEGATIVE_MARKER
and
MailboxACL.DEFAULT_GROUP_MARKER
.serialize
in interface MailboxACL.MailboxACLEntryKey
String
MailboxACL.MailboxACLEntryKey.serialize()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.