public class WebDavTestImpl extends WebDavFileHostingService implements IFileHostingService
WebDavFileHostingService.ConnectionContext
logger
Constructor and Description |
---|
WebDavTestImpl() |
Modifier and Type | Method and Description |
---|---|
protected WebDavFileHostingService.ConnectionContext |
getConnectionContext(SecurityContext context) |
FileHostingInfo |
info(SecurityContext context)
Retrieves informations about the filehosting implementation
|
FileHostingPublicLink |
share(SecurityContext context,
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 |
unShare(SecurityContext context,
java.lang.String url)
Remove a public link
|
createUri, delete, exists, find, get, getComplete, getSharedFile, list, store, supports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, exists, find, get, getComplete, getSharedFile, isDefaultImplementation, list, store, supports
protected WebDavFileHostingService.ConnectionContext getConnectionContext(SecurityContext context)
getConnectionContext
in class WebDavFileHostingService
public FileHostingInfo info(SecurityContext context)
IFileHostingService
info
in interface IFileHostingService
info
in class WebDavFileHostingService
public FileHostingPublicLink share(SecurityContext context, java.lang.String path, java.lang.Integer downloadLimit, java.lang.String expirationDate) throws ServerFault
IFileHostingService
share
in interface IFileHostingService
share
in class WebDavFileHostingService
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
public void unShare(SecurityContext context, java.lang.String url) throws ServerFault
IFileHostingService
unShare
in interface IFileHostingService
unShare
in class WebDavFileHostingService
context
- the securityContexturl
- the share urlServerFault
Copyright © 2021. All Rights Reserved.