Constructs and deconstructs ACL values.
The permissions assigned to an ACL are constructed by performing a bitwise union of individual permission attributes: Read, Write, Create, Delete, Admin. In addition, the All permission encompasses all of these attributes.
Several commonly used ACL values have been predefined for sake of convenience: AnyoneAll, AnyoneRead, CreatorAll.
- See also:
- Companion:
- class
Type members
Value members
Concrete methods
Constructs a new ACL from the input string s
.
Constructs a new ACL from the input string s
.
- Value parameters:
- s
a string representing the ACL
- Returns:
the ACL in
s
if it conforms to the specific syntax- Throws:
- IllegalArgumentException
if
s
does not conform to the proper syntax
- See also:
Parses the ACL in the input string s
.
Parses the ACL in the input string s
.
The syntax of s
is "''scheme'':''id''=[rwcda*]"
, where the following apply:
- the
:
delimiter may be omitted if ''id'' is not required rwcda*
may be repeated zero or more times
- Value parameters:
- s
a string representing the ACL
- Returns:
a
Success
containing the ACL ins
if it conforms to the proper syntax, otherwise aFailure
containing the offending exception