@Service public class ContentServiceImpl extends Object implements ContentService
| Constructor and Description |
|---|
ContentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
DownloadToken |
checkToken(String docUuid,
String token)
Check if the token given in url is valid
|
DownloadUrlResponse |
download(DownloadForm dlForm)
Download document (ask for a token url)
|
TribuApiResponse |
search(SearchForm search)
Search documents
|
BinaryContent |
startDownload(String uuid,
String userId) |
public TribuApiResponse search(SearchForm search) throws RepositoryException, ContentServiceException, UserNotFoundException
ContentServicesearch in interface ContentServiceUserNotFoundExceptionRepositoryExceptionContentServiceExceptionpublic DownloadUrlResponse download(DownloadForm dlForm) throws RepositoryException, ContentServiceException, UserNotFoundException
ContentServicedownload in interface ContentServiceRepositoryExceptionContentServiceExceptionUserNotFoundExceptionpublic DownloadToken checkToken(String docUuid, String token)
ContentServicecheckToken in interface ContentServicepublic BinaryContent startDownload(String uuid, String userId) throws RepositoryException, UserNotFoundException
startDownload in interface ContentServiceUserNotFoundExceptionRepositoryExceptionCopyright © 2022. All rights reserved.