Class

de.ceow.security.acl

GenericRole

Related Doc: package acl

Permalink

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])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  9. def getIdentifier: Long

    Permalink

    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]

    Permalink

    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]]]

    Permalink

    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

    Permalink

    Returns the string identifier of the Role

    Returns the string identifier of the Role

    Definition Classes
    GenericRoleRole
  13. val inheritedRoles: List[Role]

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val name: String

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    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