defines the unique "bit"-identifier for this role.
defines the unique "bit"-identifier for this role. Keep in mind, that a single bit is unique the way of definitions is 1, 2, 4, 8 ... For a short explanation: (1|2|4) -> 7, (7&1) == 1 -> true, (7&2) == 2 -> true, (7&4) == 4 -> true
http://de.wikipedia.org/wiki/Bitweiser_Operator
return a list of roles which this Role will inherited from
returns a definition of privileges for resources.
returns a definition of privileges for resources.
Example: return Map( com.github.scyks.playacl.Resource => List(), // allows all in this resource com.github.scyks.playacl.Resource => List( com.github.scyks.playacl.Privilege, // allow privilege com.github.scyks.playacl.Privilege => List((obj: Option[AclObject]) => { true }), // allow privilege by execute assertion function com.github.scyks.playacl.Privilege => List((obj: Option[AclObject]) => { true }, (obj: Option[AclObject]) => { true }), // allow privilege by execute both assertions - both have to return true ), )
if you define an privilege in an resource, the whole resource is denied and only defined privilegs are allowed
Returns the string identifier of the Role
this is the abstract role