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 checkSectionOwnership(user: Option[Identity], resource: UUID): Boolean

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

    Check to see if the user is the owner of the section pointed to by the resource. Works by checking the ownership of the file the section belongs to.

  13. def checkSpaceOwnership(user: Option[Identity], resource: UUID): Boolean

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

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

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

  15. def clone(): AnyRef

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

  17. val datasets: DatasetService

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

    Definition Classes
    AnyRef
  19. val files: FileService

  20. def finalize(): Unit

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

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

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

  24. def isAuthorized(user: Identity): Boolean

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

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

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

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

    Definition Classes
    AnyRef
  29. val permission: Permission

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

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

  31. 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.

  32. val sections: SectionService

  33. val spaces: SpaceService

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

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

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

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