case class GenericRole(name: String, inheritedRoles: List[Role]) extends Role with Product with Serializable
- Alphabetic
- By Inheritance
- GenericRole
- Serializable
- Serializable
- Product
- Equals
- Role
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getIdentifier: Long
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
- Definition Classes
- GenericRole → Role
- See also
http://de.wikipedia.org/wiki/Bitweiser_Operator
-
def
getInheritedRoles: List[Role]
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
- Definition Classes
- GenericRole → Role
-
def
getPrivileges: Map[Resource, Map[Privilege, Seq[Assert]]]
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
- Definition Classes
- GenericRole → Role
-
def
getRoleId: String
Returns the string identifier of the Role
Returns the string identifier of the Role
- Definition Classes
- GenericRole → Role
- val inheritedRoles: List[Role]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )