public static interface MailboxACL.MailboxACLRights extends Iterable<MailboxACL.MailboxACLRight>
MailboxACL.MailboxACLRight
s.
Implementations may decide to support only a specific range of rights,
e.g. the Standard Rights of RFC 4314 section 2.1.
Implementations must not allow adding or removing of elements once this
MailboxACLRights are initialized.Modifier and Type | Method and Description |
---|---|
boolean |
contains(MailboxACL.MailboxACLRight right)
Tells whether this contains the given right.
|
MailboxACL.MailboxACLRights |
except(MailboxACL.MailboxACLRights toRemove)
Performs the set theoretic operation of relative complement of
toRemove MailboxACLRights in this MailboxACLRights.
|
boolean |
isEmpty()
Tells if this set of rights is empty.
|
boolean |
isSupported(MailboxACL.MailboxACLRight right)
Tells whether the implementation supports the given right.
|
String |
serialize()
Returns a serialized form of this
MailboxACL.MailboxACLRights as
String . |
MailboxACL.MailboxACLRights |
union(MailboxACL.MailboxACLRights toAdd)
Performs the set theoretic operation of union of this
MailboxACLRights and toAdd MailboxACLRights.
|
boolean contains(MailboxACL.MailboxACLRight right) throws UnsupportedRightException
right
- UnsupportedRightException
- iff the given right is not supported.MailboxACL.MailboxACLRights except(MailboxACL.MailboxACLRights toRemove) throws UnsupportedRightException
MailboxACL.MailboxACLRights
. However, implementations may decide to
return this or toRemove parameter value in case the result would be
equal to the respective one of those.toRemove
- UnsupportedRightException
boolean isEmpty()
boolean isSupported(MailboxACL.MailboxACLRight right)
right
- String serialize()
MailboxACL.MailboxACLRights
as
String
.String
MailboxACL.MailboxACLRights union(MailboxACL.MailboxACLRights toAdd) throws UnsupportedRightException
MailboxACL.MailboxACLRights
. However, implementations may decide to
return this or toAdd parameter value in case the result would be
equal to the respective one of those.toAdd
- UnsupportedRightException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.