c

de.ceow.security.acl

GenericRole

case class GenericRole(name: String, inheritedRoles: List[Role]) extends Role with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Role, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericRole
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Role
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenericRole(name: String, inheritedRoles: List[Role])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  9. 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
    GenericRoleRole
    See also

    http://de.wikipedia.org/wiki/Bitweiser_Operator

  10. 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
    GenericRoleRole
  11. 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
    GenericRoleRole
  12. def getRoleId: String

    Returns the string identifier of the Role

    Returns the string identifier of the Role

    Definition Classes
    GenericRoleRole
  13. val inheritedRoles: List[Role]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val name: String
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Role

Inherited from AnyRef

Inherited from Any

Ungrouped