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 role id which this Role will inherited from.
return a role id which this Role will inherited from. you can return None - no parent role you can return Some(string) - one parent role you can return a List[String] more than one parent role
returns a definition of privileges for resources.
returns a definition of privileges for resources.
Example:
return Map( Resource => Seq(), // allows all in this resource Resource => Seq( Privilege, // allow privilege Privilege.deny, // deny privilege Privilege => Seq(new MyAssert()), // allow privilege by execute assert function Privilege => List(new MyAssert1(), new MyAssert2()), // 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
Returns the string identifier of the Role