api

WithPermission

case class WithPermission(permission: Permission) extends Authorization with Product with Serializable

Specific implementation of an Authorization

Linear Supertypes
Serializable, Serializable, Product, Equals, Authorization, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WithPermission
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Authorization
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WithPermission(permission: Permission)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def adminPermission(user: Option[Identity], permission: Permission, resource: Option[UUID]): Boolean

    All actions require a login, admin actions require user to be in admin list.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def checkCollectionOwnership(user: Option[Identity], resource: UUID): Boolean

    Check to see if the user is the owner of the collection pointed to by the resource.

  9. def checkDatasetOwnership(user: Option[Identity], resource: UUID): Boolean

    Check to see if the user is the owner of the dataset pointed to by the resource.

  10. def checkFileOwnership(user: Option[Identity], resource: UUID): Boolean

    Check to see if the user is the owner of the file pointed to by the resource.

  11. def checkResourceOwnership(user: Option[Identity], permission: Permission, resource: Option[UUID]): Option[Boolean]

    If only owners can modify an object, check to see if the user logged in is the owner of the resource.

    If only owners can modify an object, check to see if the user logged in is the owner of the resource. This will return None if no check was done or true/false if the user can or can not access the resource.

  12. def checkUserAdmin(user: Option[Identity]): Boolean

    Check to see if the user is logged in and is an admin.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val collections: CollectionService

  15. val datasets: DatasetService

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. val files: FileService

  18. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  20. def isAuthorized(user: Option[Identity], resource: Option[UUID] = None): Boolean

  21. def isAuthorized(user: Identity, resource: Option[UUID]): Boolean

  22. def isAuthorized(user: Identity): Boolean

    Definition Classes
    WithPermission → Authorization
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. val permission: Permission

  28. def privatePermission(user: Option[Identity], permission: Permission, resource: Option[UUID]): Boolean

    All actions require a login, once logged in all users have all permission.

  29. def publicPermission(user: Option[Identity], permission: Permission, resource: Option[UUID]): Boolean

    All read-only actions are public, writes and admin require a login.

    All read-only actions are public, writes and admin require a login. This is the most open configuration.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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 Authorization

Inherited from AnyRef

Inherited from Any

Ungrouped