api

Files

class Files extends ApiController

Json API for files.

Linear Supertypes
ApiController, Controller, Rendering, RequestExtractors, AcceptExtractors, ContentTypes, HeaderNames, play.api.http.Status, HttpProtocol, BodyParsers, Results, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Files
  2. ApiController
  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 Files(files: FileService, datasets: DatasetService, collections: CollectionService, queries: MultimediaQueryService, tags: TagService, sections_service: SectionService, comments: CommentService, extractions: ExtractionService, dtsrequests: ExtractionRequestsService, previews: PreviewService, threeD: ThreeDService, sqarql: RdfSPARQLService, metadataService: MetadataService, contextService: ContextLDService, thumbnails: ThumbnailService, events: EventService, folders: FolderService, spaces: SpaceService, userService: UserService, routing: ExtractorRoutingService, appConfig: AppConfigurationService, esqueue: ElasticsearchQueue, 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. def AuthenticatedAction: ActionBuilder[UserRequest]

    call code iff user is logged in

    call code iff user is logged in

    Definition Classes
    ApiController
  25. val BAD_GATEWAY: Int

    Definition Classes
    Status
  26. val BAD_REQUEST: Int

    Definition Classes
    Status
  27. val BINARY: String

    Definition Classes
    ContentTypes
  28. val BadGateway: Status

    Definition Classes
    Results
  29. val BadRequest: Status

    Definition Classes
    Results
  30. val CACHE_CONTROL: String

    Definition Classes
    HeaderNames
  31. val CHUNKED: String

    Definition Classes
    HttpProtocol
  32. val CONFLICT: Int

    Definition Classes
    Status
  33. val CONNECTION: String

    Definition Classes
    HeaderNames
  34. val CONTENT_DISPOSITION: String

    Definition Classes
    HeaderNames
  35. val CONTENT_ENCODING: String

    Definition Classes
    HeaderNames
  36. val CONTENT_LANGUAGE: String

    Definition Classes
    HeaderNames
  37. val CONTENT_LENGTH: String

    Definition Classes
    HeaderNames
  38. val CONTENT_LOCATION: String

    Definition Classes
    HeaderNames
  39. val CONTENT_MD5: String

    Definition Classes
    HeaderNames
  40. val CONTENT_RANGE: String

    Definition Classes
    HeaderNames
  41. val CONTENT_TRANSFER_ENCODING: String

    Definition Classes
    HeaderNames
  42. val CONTENT_TYPE: String

    Definition Classes
    HeaderNames
  43. val CONTINUE: Int

    Definition Classes
    Status
  44. val COOKIE: String

    Definition Classes
    HeaderNames
  45. val CREATED: Int

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

    Definition Classes
    ContentTypes
  47. val Conflict: Status

    Definition Classes
    Results
  48. val Created: Status

    Definition Classes
    Results
  49. val DATE: String

    Definition Classes
    HeaderNames
  50. 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
    ApiController
  51. val ETAG: String

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

    Definition Classes
    ContentTypes
  53. val EXPECT: String

    Definition Classes
    HeaderNames
  54. val EXPECTATION_FAILED: Int

    Definition Classes
    Status
  55. val EXPIRES: String

    Definition Classes
    HeaderNames
  56. val EntityTooLarge: Status

    Definition Classes
    Results
  57. val ExpectationFailed: Status

    Definition Classes
    Results
  58. val FAILED_DEPENDENCY: Int

    Definition Classes
    Status
  59. val FORBIDDEN: Int

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

    Definition Classes
    ContentTypes
  61. val FOUND: Int

    Definition Classes
    Status
  62. val FROM: String

    Definition Classes
    HeaderNames
  63. val FailedDependency: Status

    Definition Classes
    Results
  64. val Forbidden: Status

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

    Definition Classes
    Results
  66. val GATEWAY_TIMEOUT: Int

    Definition Classes
    Status
  67. val GONE: Int

    Definition Classes
    Status
  68. val GatewayTimeout: Status

    Definition Classes
    Results
  69. val Gone: Status

    Definition Classes
    Results
  70. val HOST: String

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

    Definition Classes
    ContentTypes
  72. val HTTP_1_0: String

    Definition Classes
    HttpProtocol
  73. val HTTP_1_1: String

    Definition Classes
    HttpProtocol
  74. val HTTP_VERSION_NOT_SUPPORTED: Int

    Definition Classes
    Status
  75. val HttpVersionNotSupported: Status

    Definition Classes
    Results
  76. val IF_MATCH: String

    Definition Classes
    HeaderNames
  77. val IF_MODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  78. val IF_NONE_MATCH: String

    Definition Classes
    HeaderNames
  79. val IF_RANGE: String

    Definition Classes
    HeaderNames
  80. val IF_UNMODIFIED_SINCE: String

    Definition Classes
    HeaderNames
  81. val INSUFFICIENT_STORAGE: Int

    Definition Classes
    Status
  82. val INTERNAL_SERVER_ERROR: Int

    Definition Classes
    Status
  83. val InsufficientStorage: Status

    Definition Classes
    Results
  84. val InternalServerError: Status

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

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

    Definition Classes
    ContentTypes
  87. val LAST_MODIFIED: String

    Definition Classes
    HeaderNames
  88. val LENGTH_REQUIRED: Int

    Definition Classes
    Status
  89. val LOCATION: String

    Definition Classes
    HeaderNames
  90. val LOCKED: Int

    Definition Classes
    Status
  91. val Locked: Status

    Definition Classes
    Results
  92. val MAX_FORWARDS: String

    Definition Classes
    HeaderNames
  93. val METHOD_NOT_ALLOWED: Int

    Definition Classes
    Status
  94. val MOVED_PERMANENTLY: Int

    Definition Classes
    Status
  95. val MULTIPLE_CHOICES: Int

    Definition Classes
    Status
  96. val MULTI_STATUS: Int

    Definition Classes
    Status
  97. val MethodNotAllowed: Status

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

    Definition Classes
    Results
  99. val MultiStatus: Status

    Definition Classes
    Results
  100. val NON_AUTHORITATIVE_INFORMATION: Int

    Definition Classes
    Status
  101. val NOT_ACCEPTABLE: Int

    Definition Classes
    Status
  102. val NOT_FOUND: Int

    Definition Classes
    Status
  103. val NOT_IMPLEMENTED: Int

    Definition Classes
    Status
  104. val NOT_MODIFIED: Int

    Definition Classes
    Status
  105. val NO_CONTENT: Int

    Definition Classes
    Status
  106. val NoContent: SimpleResult

    Definition Classes
    Results
  107. val NonAuthoritativeInformation: Status

    Definition Classes
    Results
  108. val NotAcceptable: Status

    Definition Classes
    Results
  109. val NotFound: Status

    Definition Classes
    Results
  110. val NotImplemented: Status

    Definition Classes
    Results
  111. val NotModified: SimpleResult

    Definition Classes
    Results
  112. val OK: Int

    Definition Classes
    Status
  113. val ORIGIN: String

    Definition Classes
    HeaderNames
  114. val Ok: Status

    Definition Classes
    Results
  115. val PARTIAL_CONTENT: Int

    Definition Classes
    Status
  116. val PAYMENT_REQUIRED: Int

    Definition Classes
    Status
  117. val PRAGMA: String

    Definition Classes
    HeaderNames
  118. val PRECONDITION_FAILED: Int

    Definition Classes
    Status
  119. val PROXY_AUTHENTICATE: String

    Definition Classes
    HeaderNames
  120. val PROXY_AUTHENTICATION_REQUIRED: Int

    Definition Classes
    Status
  121. val PROXY_AUTHORIZATION: String

    Definition Classes
    HeaderNames
  122. val PartialContent: Status

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

    call code iff user has right permission for resource

    call code iff user has right permission for resource

    Definition Classes
    ApiController
  124. val PreconditionFailed: Status

    Definition Classes
    Results
  125. 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
    ApiController
  126. val RANGE: String

    Definition Classes
    HeaderNames
  127. val REFERER: String

    Definition Classes
    HeaderNames
  128. val REQUESTED_RANGE_NOT_SATISFIABLE: Int

    Definition Classes
    Status
  129. val REQUEST_ENTITY_TOO_LARGE: Int

    Definition Classes
    Status
  130. val REQUEST_TIMEOUT: Int

    Definition Classes
    Status
  131. val REQUEST_URI_TOO_LONG: Int

    Definition Classes
    Status
  132. val RESET_CONTENT: Int

    Definition Classes
    Status
  133. val RETRY_AFTER: String

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

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

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

    Definition Classes
    Results
  137. val RequestTimeout: Status

    Definition Classes
    Results
  138. val ResetContent: SimpleResult

    Definition Classes
    Results
  139. val SEE_OTHER: Int

    Definition Classes
    Status
  140. val SERVER: String

    Definition Classes
    HeaderNames
  141. val SERVICE_UNAVAILABLE: Int

    Definition Classes
    Status
  142. val SET_COOKIE: String

    Definition Classes
    HeaderNames
  143. val SET_COOKIE2: String

    Definition Classes
    HeaderNames
  144. val SWITCHING_PROTOCOLS: Int

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

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

    call code iff user is a server admin

    call code iff user is a server admin

    Definition Classes
    ApiController
  147. val ServiceUnavailable: Status

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

    Definition Classes
    Results
  149. val TE: String

    Definition Classes
    HeaderNames
  150. val TEMPORARY_REDIRECT: Int

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

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

    Definition Classes
    Controller
  153. val TOO_MANY_REQUEST: Int

    Definition Classes
    Status
  154. val TRAILER: String

    Definition Classes
    HeaderNames
  155. val TRANSFER_ENCODING: String

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

    Definition Classes
    Results
  157. val TooManyRequest: Status

    Definition Classes
    Results
  158. val UNAUTHORIZED: Int

    Definition Classes
    Status
  159. val UNPROCESSABLE_ENTITY: Int

    Definition Classes
    Status
  160. val UNSUPPORTED_MEDIA_TYPE: Int

    Definition Classes
    Status
  161. val UPGRADE: String

    Definition Classes
    HeaderNames
  162. val USER_AGENT: String

    Definition Classes
    HeaderNames
  163. val USE_PROXY: Int

    Definition Classes
    Status
  164. val Unauthorized: Status

    Definition Classes
    Results
  165. val UnprocessableEntity: Status

    Definition Classes
    Results
  166. val UnsupportedMediaType: Status

    Definition Classes
    Results
  167. val UriTooLong: Status

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

    get user if logged in

    get user if logged in

    Definition Classes
    ApiController
  169. val VARY: String

    Definition Classes
    HeaderNames
  170. val VIA: String

    Definition Classes
    HeaderNames
  171. val WARNING: String

    Definition Classes
    HeaderNames
  172. val WWW_AUTHENTICATE: String

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

    Definition Classes
    ContentTypes
  174. val X_FORWARDED_FOR: String

    Definition Classes
    HeaderNames
  175. val X_FORWARDED_HOST: String

    Definition Classes
    HeaderNames
  176. val X_FORWARDED_PORT: String

    Definition Classes
    HeaderNames
  177. val X_FORWARDED_PROTO: String

    Definition Classes
    HeaderNames
  178. def addBatchMetadataJsonLD(): Action[JsValue]

  179. def addMetadata(id: UUID): Action[JsValue]

    Add metadata to file.

  180. def addMetadataJsonLD(id: UUID): Action[JsValue]

    Add metadata in JSON-LD format.

  181. def addTags(id: UUID): Action[JsValue]

    REST endpoint: POST: Adds tags to a file.

    REST endpoint: POST: Adds tags to a file. Tag's (name, userId, extractor_id) tuple is used as a unique key. In other words, the same tag names but diff userId or extractor_id are considered as diff tags, so will be added.

  182. def addTagsHelper(obj_type: TagCheckObjType, id: UUID, request: UserRequest[JsValue]): SimpleResult

  183. def addUserMetadata(id: UUID): Action[JsValue]

  184. def addVersusMetadata(id: UUID): Action[JsValue]

    Add Versus metadata to file: use by Versus Extractor REST enpoint:POST api/files/:id/versus_metadata

  185. def archive(id: UUID): Action[AnyContent]

  186. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  187. def attachGeometry(file_id: UUID, geometry_id: UUID): Action[JsValue]

    Add 3D geometry file to file.

  188. def attachPreview(file_id: UUID, preview_id: UUID): Action[JsValue]

    Add preview to file.

  189. def attachQueryThumbnail(query_id: UUID, thumbnail_id: UUID): Action[AnyContent]

    Add thumbnail to query file.

  190. def attachTexture(file_id: UUID, texture_id: UUID): Action[JsValue]

    Add 3D texture to file.

  191. def attachThumbnail(file_id: UUID, thumbnail_id: UUID): Action[AnyContent]

    Add thumbnail to file.

  192. def bulkDeleteFiles(): Action[JsValue]

  193. def chunk(trailers: Option[Iteratee[Array[Byte], Seq[(String, String)]]]): Enumeratee[Array[Byte], Array[Byte]]

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

    Definition Classes
    Results
  195. lazy val chunksize: Integer

  196. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  197. def comment(id: UUID): Action[JsValue]

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

    Definition Classes
    Results
  199. def download(id: UUID, tracking: Boolean): Action[AnyContent]

    Download file using http://en.

    Download file using http://en.wikipedia.org/wiki/Chunked_transfer_encoding

  200. def downloadByDatasetAndFilename(datasetId: UUID, filename: String, preview_id: UUID): Action[AnyContent]

  201. def downloadquery(id: UUID): Action[AnyContent]

    Download query used by Versus

  202. def dumpFilesMetadata: Action[AnyContent]

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

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

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

  206. def filePreviewsList(id: UUID): Action[AnyContent]

  207. def finalize(): Unit

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

    Definition Classes
    Controller
  209. final def folderPath(folder: Folder, path: List[String]): List[String]

    get the hierarchical path from dataset to the given folder.

    get the hierarchical path from dataset to the given folder.

    folder

    a Folder object

    path

    a list name of folder/dataset

    returns

    the list of names on the hierarchical path from dataset to the given folder

    Annotations
    @tailrec()
  210. def follow(id: UUID): Action[AnyContent]

  211. def get(id: UUID): Action[AnyContent]

  212. def getBatchMetadataJsonLD(): Action[AnyContent]

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

    Definition Classes
    AnyRef → Any
  214. def getFilenameOrEmpty(preview: Preview): String

  215. def getGeometry(three_d_file_id: UUID, filename: String): Action[AnyContent]

    Find geometry file for given 3D file and geometry filename.

  216. def getMetadataDefinitions(id: UUID, space: Option[String]): Action[AnyContent]

  217. def getMetadataJsonLD(id: UUID, extFilter: Option[String]): Action[AnyContent]

  218. def getPreviews(id: UUID): Action[AnyContent]

  219. def getRDFURLsForFile(id: UUID): Action[AnyContent]

  220. def getRDFUserMetadata(id: UUID, mappingNumber: String = "1"): Action[AnyContent]

  221. def getTags(id: UUID): Action[AnyContent]

    REST endpoint: GET: gets the tag data associated with this file.

  222. def getTechnicalMetadataJSON(id: UUID): Action[AnyContent]

  223. def getTexture(three_d_file_id: UUID, filename: String): Action[AnyContent]

    Find texture file for given 3D file and texture filename.

  224. def getTopRecommendations(followeeUUID: UUID, follower: User): List[MiniEntity]

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

    Return user based on request object

    Return user based on request object

    Definition Classes
    ApiController
  226. def getUserMetadataJSON(id: UUID): Action[AnyContent]

  227. def getVersusMetadataJSON(id: UUID): Action[AnyContent]

  228. def getXMLMetadataJSON(id: UUID): Action[AnyContent]

  229. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  230. def index(id: UUID): Unit

  231. def isBeingProcessed(id: UUID): Action[AnyContent]

    Return whether a file is currently being processed.

  232. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  233. def jsonFile(file: File, serverAdmin: Boolean = false): JsValue

  234. def jsonFileWithThumbnail(file: File): JsValue

  235. def jsonPreview(pvId: UUID, pId: String, pPath: String, pMain: String, pvRoute: String, pvContentType: String, pvLength: Long): JsValue

  236. def jsonPreview(preview: Preview): JsValue

  237. def jsonPreviews(prvFile: File, prvs: List[(String, String, String, String, String, String, Long)]): JsValue

  238. def jsonPreviewsFiles(filesList: List[(File, List[(String, String, String, String, String, String, Long)])]): JsValue

  239. implicit def lang(implicit request: RequestHeader): Lang

    Definition Classes
    Controller
  240. def list: Action[AnyContent]

    List all files.

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

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

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

    Definition Classes
    AnyRef
  244. object parse

    Definition Classes
    BodyParsers
  245. def paths(id: UUID): Action[AnyContent]

    Rest endpoint, given a file id, get a list of traversing path from datasets to the parent folder containing this file.

    Rest endpoint, given a file id, get a list of traversing path from datasets to the parent folder containing this file.

    id

    a file id in dataset.

    returns

    a list of paths

  246. def reindex(id: UUID): Action[AnyContent]

    Reindex a file.

  247. def removeAllTags(id: UUID): Action[AnyContent]

    REST endpoint: POST: removes all tags of a file.

    REST endpoint: POST: removes all tags of a file. This is a big hammer -- it does not check the userId or extractor_id and forcefully remove all tags for this id. It is mainly intended for testing.

  248. def removeFile(id: UUID): Action[AnyContent]

  249. def removeMetadataJsonLD(id: UUID, extractorId: Option[String]): Action[AnyContent]

  250. def removeTags(id: UUID): Action[JsValue]

    REST endpoint: POST: removes tags.

    REST endpoint: POST: removes tags. Tag's (name, userId, extractor_id) tuple is used as a unique key. In other words, the same tag names but diff userId or extractor_id are considered as diff tags. Current implementation enforces the restriction which only allows the tags to be removed by the same user or extractor.

  251. def removeTagsHelper(obj_type: TagCheckObjType, id: UUID, request: UserRequest[JsValue]): SimpleResult

  252. def searchFilesGeneralMetadata: Action[JsValue]

    List datasets satisfying a general metadata search tree.

  253. def searchFilesUserMetadata: Action[JsValue]

    List datasets satisfying a user metadata search tree.

  254. def sections(id: UUID): Action[AnyContent]

  255. def sendArchiveRequest(id: UUID): Action[JsValue]

  256. def sendJob(file_id: UUID, fileType: String): Action[AnyContent]

    Send job for file preview(s) generation at a later time.

  257. def sendUnarchiveRequest(id: UUID): Action[JsValue]

  258. implicit def session(implicit request: RequestHeader): Session

    Definition Classes
    Controller
  259. def submitArchivalOperation(file: File, id: UUID, host: String, parameters: JsObject, apiKey: Option[String], user: Option[User]): Unit

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

    Definition Classes
    AnyRef
  261. def toDBObject(fields: Seq[(String, JsValue)]): com.mongodb.casbah.Imports.DBObject

  262. def toString(): String

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

  264. def unfollow(id: UUID): Action[AnyContent]

  265. def updateDescription(id: UUID): Action[JsValue]

  266. def updateFileName(id: UUID): Action[JsValue]

    REST endpoint: PUT: update or change the filename args id: the UUID associated with this file data name: String

  267. def updateLicense(id: UUID): Action[JsValue]

    REST endpoint: POST: update the license data associated with a specific File

    REST endpoint: POST: update the license data associated with a specific File

    Takes one arg, id:

    id, the UUID associated with this file

    The data contained in the request body will be containe the following key-value pairs:

    licenseType, currently: license1 - corresponds to Limited license2 - corresponds to Creative Commons license3 - corresponds to Public Domain

    rightsHolder, currently only required if licenseType is license1. Reflects the specific name of the organization or person that holds the rights

    licenseText, currently tied to the licenseType license1 - Free text that a user can enter to describe the license license2 - 1 of 6 options (or their abbreviations) that reflects the specific set of options associated with the Creative Commons license, these are: Attribution-NonCommercial-NoDerivs (by-nc-nd) Attribution-NoDerivs (by-nd) Attribution-NonCommercial (by-nc) Attribution-NonCommercial-ShareAlike (by-nc-sa) Attribution-ShareAlike (by-sa) Attribution (by) license3 - Public Domain Dedication

    licenseUrl, free text that a user can enter to go with the licenseText in the case of license1. Fixed URL's for the other 2 cases.

    allowDownload, true or false, whether the file or dataset can be downloaded. Only relevant for license1 type.

  268. def updateMetadata(id: UUID, extractor_id: String = ""): Action[JsValue]

    Update technical metadata of a file.

  269. def uploadIntermediate(originalIdAndFlags: String): Action[MultipartFormData[TemporaryFile]]

    Upload intermediate file of extraction chain using multipart form enconding and continue chaining.

  270. def uploadToDataset(dataset_id: UUID, showPreviews: String = "DatasetLevel", originalZipFile: String = "", flagsFromPrevious: String = "", extract: Boolean = true, folder_id: Option[String]): Action[MultipartFormData[TemporaryFile]]

    Upload a file to a specific dataset

  271. def users(id: UUID): Action[AnyContent]

  272. val userservice: UserService

    Definition Classes
    ApiController
  273. final def wait(): Unit

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

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

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

  2. def upload(showPreviews: String = "DatasetLevel", originalZipFile: String = "", flagsFromPrevious: String = ""): Action[MultipartFormData[TemporaryFile]]

    Upload file using multipart form enconding.

    Upload file using multipart form enconding.

    Annotations
    @deprecated
    Deprecated

Inherited from ApiController

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