controllers

Datasets

class Datasets extends SecuredController

A dataset is a collection of files and streams.

Linear Supertypes
SecuredController, Controller, Rendering, RequestExtractors, AcceptExtractors, ContentTypes, HeaderNames, play.api.http.Status, HttpProtocol, BodyParsers, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Datasets
  2. SecuredController
  3. Controller
  4. Rendering
  5. RequestExtractors
  6. AcceptExtractors
  7. ContentTypes
  8. HeaderNames
  9. Status
  10. HttpProtocol
  11. BodyParsers
  12. Results
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Datasets(datasets: DatasetService, files: FileService, collections: CollectionService, comments: CommentService, sections: SectionService, extractions: ExtractionService, dtsrequests: ExtractionRequestsService, sparql: RdfSPARQLService, users: UserService, previewService: PreviewService, spaceService: SpaceService, curationService: CurationService, relations: RelationService, folders: FolderService, metadata: MetadataService, events: EventService, selections: SelectionService, sinkService: EventSinkService)

    Annotations
    @Inject()

Type Members

  1. class Status extends SimpleResult

    Definition Classes
    Results

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. val ACCEPT: String

    Definition Classes
    HeaderNames
  7. val ACCEPTED: Int

    Definition Classes
    Status
  8. val ACCEPT_CHARSET: String

    Definition Classes
    HeaderNames
  9. val ACCEPT_ENCODING: String

    Definition Classes
    HeaderNames
  10. val ACCEPT_LANGUAGE: String

    Definition Classes
    HeaderNames
  11. val ACCEPT_RANGES: String

    Definition Classes
    HeaderNames
  12. val ACCESS_CONTROL_ALLOW_CREDENTIALS: String

    Definition Classes
    HeaderNames
  13. val ACCESS_CONTROL_ALLOW_HEADERS: String

    Definition Classes
    HeaderNames
  14. val ACCESS_CONTROL_ALLOW_METHODS: String

    Definition Classes
    HeaderNames
  15. val ACCESS_CONTROL_ALLOW_ORIGIN: String

    Definition Classes
    HeaderNames
  16. val ACCESS_CONTROL_EXPOSE_HEADERS: String

    Definition Classes
    HeaderNames
  17. val ACCESS_CONTROL_MAX_AGE: String

    Definition Classes
    HeaderNames
  18. val ACCESS_CONTROL_REQUEST_HEADERS: String

    Definition Classes
    HeaderNames
  19. val ACCESS_CONTROL_REQUEST_METHOD: String

    Definition Classes
    HeaderNames
  20. val AGE: String

    Definition Classes
    HeaderNames
  21. val ALLOW: String

    Definition Classes
    HeaderNames
  22. val AUTHORIZATION: String

    Definition Classes
    HeaderNames
  23. val Accepted: Status

    Definition Classes
    Results
  24. object ActivityFound extends Exception

  25. def AuthenticatedAction: ActionBuilder[UserRequest]

    call code iff user is logged in

    call code iff user is logged in

    Definition Classes
    SecuredController
  26. val BAD_GATEWAY: Int

    Definition Classes
    Status
  27. val BAD_REQUEST: Int

    Definition Classes
    Status
  28. val BINARY: String

    Definition Classes
    ContentTypes
  29. val BadGateway: Status

    Definition Classes
    Results
  30. val BadRequest: Status

    Definition Classes
    Results
  31. val CACHE_CONTROL: String

    Definition Classes
    HeaderNames
  32. val CHUNKED: String

    Definition Classes
    HttpProtocol
  33. val CONFLICT: Int

    Definition Classes
    Status
  34. val CONNECTION: String

    Definition Classes
    HeaderNames
  35. val CONTENT_DISPOSITION: String

    Definition Classes
    HeaderNames
  36. val CONTENT_ENCODING: String

    Definition Classes
    HeaderNames
  37. val CONTENT_LANGUAGE: String

    Definition Classes
    HeaderNames
  38. val CONTENT_LENGTH: String

    Definition Classes
    HeaderNames
  39. val CONTENT_LOCATION: String

    Definition Classes
    HeaderNames
  40. val CONTENT_MD5: String

    Definition Classes
    HeaderNames
  41. val CONTENT_RANGE: String

    Definition Classes
    HeaderNames
  42. val CONTENT_TRANSFER_ENCODING: String

    Definition Classes
    HeaderNames
  43. val CONTENT_TYPE: String

    Definition Classes
    HeaderNames
  44. val CONTINUE: Int

    Definition Classes
    Status
  45. val COOKIE: String

    Definition Classes
    HeaderNames
  46. val CREATED: Int

    Definition Classes
    Status
  47. def CSS(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  48. val Conflict: Status

    Definition Classes
    Results
  49. val Created: Status

    Definition Classes
    Results
  50. val DATE: String

    Definition Classes
    HeaderNames
  51. def DisabledAction: ActionBuilder[UserRequest]

    Disable a route without having to comment out the entry in the routes file.

    Disable a route without having to comment out the entry in the routes file. Useful for when we want to keep the code around but we don't want users to have access to it.

    Definition Classes
    SecuredController
  52. val ETAG: String

    Definition Classes
    HeaderNames
  53. def EVENT_STREAM(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  54. val EXPECT: String

    Definition Classes
    HeaderNames
  55. val EXPECTATION_FAILED: Int

    Definition Classes
    Status
  56. val EXPIRES: String

    Definition Classes
    HeaderNames
  57. val EntityTooLarge: Status

    Definition Classes
    Results
  58. val ExpectationFailed: Status

    Definition Classes
    Results
  59. val FAILED_DEPENDENCY: Int

    Definition Classes
    Status
  60. val FORBIDDEN: Int

    Definition Classes
    Status
  61. def FORM(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  62. val FOUND: Int

    Definition Classes
    Status
  63. val FROM: String

    Definition Classes
    HeaderNames
  64. val FailedDependency: Status

    Definition Classes
    Results
  65. val Forbidden: Status

    Definition Classes
    Results
  66. def Found(url: String): SimpleResult

    Definition Classes
    Results
  67. val GATEWAY_TIMEOUT: Int

    Definition Classes
    Status
  68. val GONE: Int

    Definition Classes
    Status
  69. val GatewayTimeout: Status

    Definition Classes
    Results
  70. val Gone: Status

    Definition Classes
    Results
  71. val HOST: String

    Definition Classes
    HeaderNames
  72. def HTML(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  73. val HTTP_1_0: String

    Definition Classes
    HttpProtocol
  74. val HTTP_1_1: String

    Definition Classes
    HttpProtocol
  75. val HTTP_VERSION_NOT_SUPPORTED: Int

    Definition Classes
    Status
  76. val HttpVersionNotSupported: Status

    Definition Classes
    Results
  77. val IF_MATCH: String

    Definition Classes
    HeaderNames
  78. val IF_MODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  79. val IF_NONE_MATCH: String

    Definition Classes
    HeaderNames
  80. val IF_RANGE: String

    Definition Classes
    HeaderNames
  81. val IF_UNMODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  82. val INSUFFICIENT_STORAGE: Int

    Definition Classes
    Status
  83. val INTERNAL_SERVER_ERROR: Int

    Definition Classes
    Status
  84. val InsufficientStorage: Status

    Definition Classes
    Results
  85. val InternalServerError: Status

    Definition Classes
    Results
  86. def JAVASCRIPT(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  87. def JSON(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  88. val LAST_MODIFIED: String

    Definition Classes
    HeaderNames
  89. val LENGTH_REQUIRED: Int

    Definition Classes
    Status
  90. val LOCATION: String

    Definition Classes
    HeaderNames
  91. val LOCKED: Int

    Definition Classes
    Status
  92. val Locked: Status

    Definition Classes
    Results
  93. val MAX_FORWARDS: String

    Definition Classes
    HeaderNames
  94. val METHOD_NOT_ALLOWED: Int

    Definition Classes
    Status
  95. val MOVED_PERMANENTLY: Int

    Definition Classes
    Status
  96. val MULTIPLE_CHOICES: Int

    Definition Classes
    Status
  97. val MULTI_STATUS: Int

    Definition Classes
    Status
  98. val MethodNotAllowed: Status

    Definition Classes
    Results
  99. def MovedPermanently(url: String): SimpleResult

    Definition Classes
    Results
  100. val MultiStatus: Status

    Definition Classes
    Results
  101. val NON_AUTHORITATIVE_INFORMATION: Int

    Definition Classes
    Status
  102. val NOT_ACCEPTABLE: Int

    Definition Classes
    Status
  103. val NOT_FOUND: Int

    Definition Classes
    Status
  104. val NOT_IMPLEMENTED: Int

    Definition Classes
    Status
  105. val NOT_MODIFIED: Int

    Definition Classes
    Status
  106. val NO_CONTENT: Int

    Definition Classes
    Status
  107. val NoContent: SimpleResult

    Definition Classes
    Results
  108. val NonAuthoritativeInformation: Status

    Definition Classes
    Results
  109. val NotAcceptable: Status

    Definition Classes
    Results
  110. val NotFound: Status

    Definition Classes
    Results
  111. val NotImplemented: Status

    Definition Classes
    Results
  112. val NotModified: SimpleResult

    Definition Classes
    Results
  113. val OK: Int

    Definition Classes
    Status
  114. val ORIGIN: String

    Definition Classes
    HeaderNames
  115. val Ok: Status

    Definition Classes
    Results
  116. val PARTIAL_CONTENT: Int

    Definition Classes
    Status
  117. val PAYMENT_REQUIRED: Int

    Definition Classes
    Status
  118. val PRAGMA: String

    Definition Classes
    HeaderNames
  119. val PRECONDITION_FAILED: Int

    Definition Classes
    Status
  120. val PROXY_AUTHENTICATE: String

    Definition Classes
    HeaderNames
  121. val PROXY_AUTHENTICATION_REQUIRED: Int

    Definition Classes
    Status
  122. val PROXY_AUTHORIZATION: String

    Definition Classes
    HeaderNames
  123. val PartialContent: Status

    Definition Classes
    Results
  124. def PermissionAction(permission: Permission, resourceRef: Option[ResourceRef] = None): ActionBuilder[UserRequest]

    call code if user has right permission for resource

    call code if user has right permission for resource

    Definition Classes
    SecuredController
  125. val PreconditionFailed: Status

    Definition Classes
    Results
  126. def PrivateServerAction: ActionBuilder[UserRequest]

    Use when you want to require the user to be logged in on a private server or the server is public.

    Use when you want to require the user to be logged in on a private server or the server is public.

    Definition Classes
    SecuredController
  127. val RANGE: String

    Definition Classes
    HeaderNames
  128. val REFERER: String

    Definition Classes
    HeaderNames
  129. val REQUESTED_RANGE_NOT_SATISFIABLE: Int

    Definition Classes
    Status
  130. val REQUEST_ENTITY_TOO_LARGE: Int

    Definition Classes
    Status
  131. val REQUEST_TIMEOUT: Int

    Definition Classes
    Status
  132. val REQUEST_URI_TOO_LONG: Int

    Definition Classes
    Status
  133. val RESET_CONTENT: Int

    Definition Classes
    Status
  134. val RETRY_AFTER: String

    Definition Classes
    HeaderNames
  135. def Redirect(call: Call): SimpleResult

    Definition Classes
    Results
  136. def Redirect(url: String, queryString: Map[String, Seq[String]], status: Int): SimpleResult

    Definition Classes
    Results
  137. def Redirect(url: String, status: Int): SimpleResult

    Definition Classes
    Results
  138. val RequestTimeout: Status

    Definition Classes
    Results
  139. val ResetContent: SimpleResult

    Definition Classes
    Results
  140. val SEE_OTHER: Int

    Definition Classes
    Status
  141. val SERVER: String

    Definition Classes
    HeaderNames
  142. val SERVICE_UNAVAILABLE: Int

    Definition Classes
    Status
  143. val SET_COOKIE: String

    Definition Classes
    HeaderNames
  144. val SET_COOKIE2: String

    Definition Classes
    HeaderNames
  145. val SWITCHING_PROTOCOLS: Int

    Definition Classes
    Status
  146. def SeeOther(url: String): SimpleResult

    Definition Classes
    Results
  147. def ServerAdminAction: ActionBuilder[UserRequest]

    call code if user is a server admin

    call code if user is a server admin

    Definition Classes
    SecuredController
  148. val ServiceUnavailable: Status

    Definition Classes
    Results
  149. def Status(code: Int): Status

    Definition Classes
    Results
  150. val TE: String

    Definition Classes
    HeaderNames
  151. val TEMPORARY_REDIRECT: Int

    Definition Classes
    Status
  152. def TEXT(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  153. val TODO: Action[AnyContent]

    Definition Classes
    Controller
  154. val TOO_MANY_REQUEST: Int

    Definition Classes
    Status
  155. val TRAILER: String

    Definition Classes
    HeaderNames
  156. val TRANSFER_ENCODING: String

    Definition Classes
    HeaderNames
  157. def TemporaryRedirect(url: String): SimpleResult

    Definition Classes
    Results
  158. val TooManyRequest: Status

    Definition Classes
    Results
  159. val UNAUTHORIZED: Int

    Definition Classes
    Status
  160. val UNPROCESSABLE_ENTITY: Int

    Definition Classes
    Status
  161. val UNSUPPORTED_MEDIA_TYPE: Int

    Definition Classes
    Status
  162. val UPGRADE: String

    Definition Classes
    HeaderNames
  163. val USER_AGENT: String

    Definition Classes
    HeaderNames
  164. val USE_PROXY: Int

    Definition Classes
    Status
  165. val Unauthorized: Status

    Definition Classes
    Results
  166. val UnprocessableEntity: Status

    Definition Classes
    Results
  167. val UnsupportedMediaType: Status

    Definition Classes
    Results
  168. val UriTooLong: Status

    Definition Classes
    Results
  169. def UserAction(needActive: Boolean): ActionBuilder[UserRequest]

    get user if logged in

    get user if logged in

    Definition Classes
    SecuredController
  170. val VARY: String

    Definition Classes
    HeaderNames
  171. val VIA: String

    Definition Classes
    HeaderNames
  172. val WARNING: String

    Definition Classes
    HeaderNames
  173. val WWW_AUTHENTICATE: String

    Definition Classes
    HeaderNames
  174. def XML(implicit codec: Codec): String

    Definition Classes
    ContentTypes
  175. val X_FORWARDED_FOR: String

    Definition Classes
    HeaderNames
  176. val X_FORWARDED_HOST: String

    Definition Classes
    HeaderNames
  177. val X_FORWARDED_PORT: String

    Definition Classes
    HeaderNames
  178. val X_FORWARDED_PROTO: String

    Definition Classes
    HeaderNames
  179. def addFiles(id: UUID): Action[AnyContent]

  180. def addViewer(id: UUID, user: Option[User]): NotNull

  181. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  182. def chunk(trailers: Option[Iteratee[Array[Byte], Seq[(String, String)]]]): Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  183. def chunk: Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  184. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  185. def createStep2(id: UUID): Action[AnyContent]

  186. def dataset(id: UUID, currentSpace: Option[String], limit: Int, filter: Option[String]): Action[AnyContent]

    Dataset.

  187. def datasetBySection(section_id: UUID): Action[AnyContent]

    Dataset by section.

  188. def dechunk: Enumeratee[Array[Byte], Array[Byte]]

    Definition Classes
    Results
  189. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  190. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  191. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  192. implicit def flash(implicit request: RequestHeader): Flash

    Definition Classes
    Controller
  193. def followingDatasets(index: Int, limit: Int, mode: String): Action[AnyContent]

  194. def generalMetadataSearch(): Action[AnyContent]

  195. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  196. def getUpdatedFilesAndFolders(datasetId: UUID, limit: Int, pageIndex: Int, space: Option[String], filter: Option[String]): Action[JsValue]

  197. def getUser[A](request: Request[A]): UserRequest[A]

    Return user based on request object

    Return user based on request object

    Definition Classes
    SecuredController
  198. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  199. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  200. implicit def lang(implicit request: RequestHeader): Lang

    Definition Classes
    Controller
  201. def list(when: String, date: String, limit: Int, space: Option[String], status: Option[String], mode: String, owner: Option[String], showPublic: Boolean, showOnlyShared: Boolean, showTrash: Boolean): Action[AnyContent]

    List datasets.

  202. def metadataSearch(): Action[AnyContent]

  203. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  204. def newDataset(space: Option[String], collection: Option[String]): Action[AnyContent]

    Display the page that allows users to create new datasets

  205. final def notify(): Unit

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

    Definition Classes
    AnyRef
  207. object parse

    Definition Classes
    BodyParsers
  208. implicit def session(implicit request: RequestHeader): Session

    Definition Classes
    Controller
  209. def sortedListInSpace(space: String, offset: Int, size: Int, showPublic: Boolean): Action[AnyContent]

    Sorted List of datasets within a space Since this only works within a space right now, it just checks to see if the user has permission to view the space (which takes into account the public settings) and, if so, calls the method to list all datasets in the space, regardless of status/public view flags, etc.

    Sorted List of datasets within a space Since this only works within a space right now, it just checks to see if the user has permission to view the space (which takes into account the public settings) and, if so, calls the method to list all datasets in the space, regardless of status/public view flags, etc. To generalize for sorting of other lists, the permission checks will need to be in the dataset query (as in the list method).

  210. val spaceTitle: String

    String name of the Space such as 'Project space' etc.

    String name of the Space such as 'Project space' etc., from conf/messages

  211. def submit(folderId: Option[String]): Action[MultipartFormData[TemporaryFile]]

    Controller flow that handles the new multi file uploader workflow for creating a new dataset.

    Controller flow that handles the new multi file uploader workflow for creating a new dataset. Requires name, description, and id for the dataset. The interface should validate to ensure that these are present before reaching this point, but the checks are made here as well.

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

    Definition Classes
    AnyRef
  213. def toString(): String

    Definition Classes
    AnyRef → Any
  214. def users(id: UUID): Action[AnyContent]

  215. val userservice: UserService

    Definition Classes
    SecuredController
  216. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  219. def withCharset(mimeType: String)(implicit codec: Codec): String

    Definition Classes
    ContentTypes

Deprecated Value Members

  1. def Async(promise: Future[Result]): AsyncResult

    Definition Classes
    Results
    Annotations
    @deprecated
    Deprecated

    (Since version 2.2.0) Use Action.async to build async actions instead

Inherited from SecuredController

Inherited from Controller

Inherited from Rendering

Inherited from RequestExtractors

Inherited from AcceptExtractors

Inherited from ContentTypes

Inherited from HeaderNames

Inherited from play.api.http.Status

Inherited from HttpProtocol

Inherited from BodyParsers

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped