Packages

t

de.ceow.security.play_acl

AsyncAclSecurity

trait AsyncAclSecurity[I <: Identity] extends AclSecurity[I]

Play Security object wraps play.api.mvc.Security

Linear Supertypes
AclSecurity[I], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncAclSecurity
  2. AclSecurity
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def Action: ActionBuilder[Request, AnyContent]

    will return an ActionBuilder which is needed by PlayFramework to build actions

    will return an ActionBuilder which is needed by PlayFramework to build actions

    This method is also part of PlayFrameworks BaseController/ AbstractController and InjectedController

    Definition Classes
    AclSecurity
  2. abstract def configuration: Configuration

    configuration object of the PlayFramework which contains the configuration of the session key for the username

    configuration object of the PlayFramework which contains the configuration of the session key for the username

    Definition Classes
    AclSecurity
  3. abstract def guestRole: Role

    will return a Role which represent the guest role

    will return a Role which represent the guest role

    Definition Classes
    AclSecurity
  4. abstract def guestUser: I

    will return a Identity which represents a guest user

    will return a Identity which represents a guest user

    Definition Classes
    AclSecurity
  5. abstract def onUnauthenticated(request: RequestHeader): Result

    method, what happens when a user is not authenticated or the ACL declines the user to access

    method, what happens when a user is not authenticated or the ACL declines the user to access

    request

    the given requets

    Definition Classes
    AclSecurity
  6. abstract def onUnauthorized(request: RequestHeader): Result

    method, which is called, when a user are not allowed to see this page

    method, which is called, when a user are not allowed to see this page

    request

    the given request

    Definition Classes
    AclSecurity
  7. abstract def roles: List[Role]

    will return a list of defined Roles

    will return a list of defined Roles

    Definition Classes
    AclSecurity
  8. abstract def userByUsername(username: String)(implicit request: RequestHeader): Option[I]

    will return a Option[Identity]

    will return a Option[Identity]

    Definition Classes
    AclSecurity

Concrete 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 equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. def onUnauthorizedAsync(request: RequestHeader): Future[Result]

    method, which is called, when a user are not allowed to see this page

    method, which is called, when a user are not allowed to see this page

    request

    the given requets

  16. lazy val sessionUsernameKey: String

    name of the user name key in the session which is configured in the configurations

    name of the user name key in the session which is configured in the configurations

    Definition Classes
    AclSecurity
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def username(request: RequestHeader): Option[String]

    will return the username / email from the session

    will return the username / email from the session

    Definition Classes
    AclSecurity
  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( ... )
  23. def withAcl(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.

    this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.

    def myAction = withAcl { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

    Definition Classes
    AclSecurity
  24. def withAclAsync(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.

    this method will return the logged in user or a guest user instance and applies an instance of Acl to the action.

    def myAction = withAcl { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

  25. def withAuth(f: ⇒ (String) ⇒ (Request[AnyContent]) ⇒ Result): EssentialAction

    this method will check if a user is authenticated and applies it's username/email to the action.

    this method will check if a user is authenticated and applies it's username/email to the action. If the user is not authenticated the result of "onUnauthenticated" is returned

    def myAction = withAuth { username ⇒ implicit request // Ok(username) }

    Definition Classes
    AclSecurity
  26. def withAuthAsync(f: ⇒ (String) ⇒ (Request[AnyContent]) ⇒ Future[Result]): EssentialAction

    this method will check if a user is authenticated and applies it's username/email to the action.

    this method will check if a user is authenticated and applies it's username/email to the action. If the user is not authenticated the result of "onUnauthenticated" is returned

    def myAction = withAuth { username ⇒ implicit request // Ok(username) }

  27. def withProtected[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

    Definition Classes
    AclSecurity
  28. def withProtected[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

    Definition Classes
    AclSecurity
  29. def withProtected(resource: Resource, privilege: Privilege)(action: (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

    Definition Classes
    AclSecurity
  30. def withProtectedAcl[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege, acl: Acl => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

    Definition Classes
    AclSecurity
  31. def withProtectedAcl[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege, () => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

    Definition Classes
    AclSecurity
  32. def withProtectedAcl(resource: Resource, privilege: Privilege)(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action.

    this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

    Definition Classes
    AclSecurity
  33. def withProtectedAclAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege, Acl => MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

  34. def withProtectedAclAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(f: (Option[O]) ⇒ (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action.

    this method will check if the user is allowed for resource and privilege on specific object and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege, () = MyObject) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

  35. def withProtectedAclAsync(resource: Resource, privilege: Privilege)(action: (Acl) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action.

    this method will check if the user is allowed for given resource and privilege and applies an instance of Acl to the action. If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtectedAcl(myResource, myPrivilege) { Acl: Acl[I] ⇒ implicit request // Ok(Acl.observerIdentity.roles.toString) }

  36. def withProtectedAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: (Acl) ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

  37. def withProtectedAsync[O <: AclObject](resource: Resource, privilege: Privilege, objectToCheck: () ⇒ Option[O])(action: (Option[O]) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege on specific object If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

  38. def withProtectedAsync(resource: Resource, privilege: Privilege)(action: (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned

    This method will check if the user is allowed for given resource and privilege If the Acl check will fail the result of "onUnauthorized" is returned

    def myAction = withProtected(myResource, myPrivilege) {implicit request // Ok("done") }

  39. def withUser(f: (I) ⇒ (Request[AnyContent]) ⇒ Result): Action[AnyContent]

    this method will check if the user is authenticated and applies the instance of Identity to the action.

    this method will check if the user is authenticated and applies the instance of Identity to the action. If the user is not authenticated the guest user will be returned

    def myAction = withUser { user: I ⇒ implicit request // Ok(user.roles.toString) }

    Definition Classes
    AclSecurity
  40. def withUserAsync(f: (I) ⇒ (Request[AnyContent]) ⇒ Future[Result]): Action[AnyContent]

    this method will check if the user is authenticated and applies the instance of Identity to the action.

    this method will check if the user is authenticated and applies the instance of Identity to the action. If the user is not authenticated the guest user will be returned

    def myAction = withUser { user: I ⇒ implicit request // Ok(user.roles.toString) }

Inherited from AclSecurity[I]

Inherited from AnyRef

Inherited from Any

Ungrouped