@Path(value="/filehosting/{domainUid}")
public interface IFileHosting
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String path)
Deletes a document
|
boolean |
exists(java.lang.String path)
Checks if a file exists
|
java.util.List<FileHostingItem> |
find(java.lang.String query)
Finds items in the file hosting repository
|
Stream |
get(java.lang.String path)
Retrieves a document from the file hosting repository
|
FileHostingItem |
getComplete(java.lang.String uid)
Retrieves an entity from the file hosting repository
|
Configuration |
getConfiguration()
Retrieves the configuration
|
Stream |
getSharedFile(java.lang.String uid)
Retrieves a document from the file hosting repository by its public uid
|
FileHostingInfo |
info()
Retrieves informations about the filehosting implementation
|
java.util.List<FileHostingItem> |
list(java.lang.String path)
Lists files and folders.
|
FileHostingPublicLink |
share(java.lang.String path,
java.lang.Integer downloadLimit,
java.lang.String expirationDate)
Retrieves a public URL to the document in the file hosting repository
|
void |
store(java.lang.String path,
Stream document)
Update/insert a document
|
void |
unShare(java.lang.String url)
Remove a public link
|
@GET @Path(value="_config") Configuration getConfiguration() throws ServerFault
ServerFault
- common error object@GET @Path(value="_list") java.util.List<FileHostingItem> list(@QueryParam(value="path") java.lang.String path) throws ServerFault
path
- the folder pathServerFault
- common error object@GET @Path(value="_find") java.util.List<FileHostingItem> find(@QueryParam(value="query") java.lang.String query) throws ServerFault
query
- the query. The format of the query is repository dependentServerFault
- common error object@GET @Path(value="{path}/_exists") boolean exists(@PathParam(value="path") java.lang.String path) throws ServerFault
path
- the relative path to the documentServerFault
- common error object@GET @Path(value="{path}/_content") Stream get(@PathParam(value="path") java.lang.String path) throws ServerFault
path
- the relative path to the documentServerFault
- common error object@GET @Path(value="_share") FileHostingPublicLink share(@QueryParam(value="path") java.lang.String path, @QueryParam(value="downloadLimit") java.lang.Integer downloadLimit, @QueryParam(value="expirationDate") java.lang.String expirationDate) throws ServerFault
path
- the relative path to the documentdownloadLimit
- the number of times the file can be downloaded, <= 0 if
unlimitedexpirationDate
- a ISO-8601 compliant date, null otherwiseServerFault
- common error object@DELETE @Path(value="{url}/unshare") void unShare(@PathParam(value="url") java.lang.String url) throws ServerFault
url
- the share urlServerFault
- common error object@PUT @Path(value="{path}") void store(@PathParam(value="path") java.lang.String path, Stream document) throws ServerFault
path
- the relative path in the file hosting repositorydocument
- the document dataServerFault
- common error object@DELETE @Path(value="{path}") void delete(@PathParam(value="path") java.lang.String path) throws ServerFault
path
- the relative path in the file hosting repositoryServerFault
- common error object@GET @Path(value="_info") FileHostingInfo info() throws ServerFault
ServerFault
- common error object@GET @Path(value="{uid}/_complete") FileHostingItem getComplete(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- the entity uidServerFault
- common error object@GET @Path(value="{uid}/_public") Stream getSharedFile(@PathParam(value="uid") java.lang.String uid) throws ServerFault
uid
- the document uidServerFault
- common error objectCopyright © 2021. All Rights Reserved.