Package io.jmix.webdav.service
Interface WebdavUrlManagementService
- All Known Implementing Classes:
- WebdavUrlManagementServiceImpl
public interface WebdavUrlManagementService
Service for getting non-persisted links.
The links store information about the opening application/access mode/filename/document version.
The link opens the app for the file stored in the WebdavDocument/WebdavDocumentVersion entity or downloads it.
 
For example: ms-word:ofv|u|http://localhost:8080/app/webdav/document/0e68df0e-8395-4d25-a230-3eb89e6b2674/example.docx
String value of link is encapsulated by field
 
Links are not stored in database and generated on the fly.
 
Note: recommend to use persistent links from
The links store information about the opening application/access mode/filename/document version.
The link opens the app for the file stored in the WebdavDocument/WebdavDocumentVersion entity or downloads it.
For example: ms-word:ofv|u|http://localhost:8080/app/webdav/document/0e68df0e-8395-4d25-a230-3eb89e6b2674/example.docx
String value of link is encapsulated by field
WebdavUrl.url of WebdavUrlLinks are not stored in database and generated on the fly.
Note: recommend to use persistent links from
WebdavRawLinksManagementService- 
Method SummaryModifier and TypeMethodDescriptionresolveEffectiveApplication(WebdavDocumentVersion version, ApplicationProtocolType protocolType) Returns an application for document version with specificApplicationProtocolType.retrieveConcreteVersionUrlByWebdavDocumentAndNaturalVersion(WebdavDocument document, Long naturalVersionId) Returns a link to the concrete document version with read-only access mode.retrieveConcreteVersionUrlByWebdavDocumentIdAndNaturalVersion(UUID documentId, Long naturalVersionId) Returns a link to the concrete document version with read-only access mode.retrieveConcreteVersionUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the concrete document version with read-only access mode.retrieveConcreteVersionUrlByWebdavDocumentVersionId(UUID documentVersionId) Returns a link to the concrete document version with read-only access mode.Returns a link to the last document version with full access mode.retrieveDocumentUrlByWebdavDocumentId(UUID documentId) Returns a link to the last document version with full access mode.retrieveDocumentUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the last document version with full access mode.retrieveDocumentUrlByWebdavDocumentVersionId(UUID documentVersionId) Returns a link to the last document version with full access mode.Returns a link to the last document version with read-only access mode.retrieveLastVersionUrlByWebdavDocumentId(UUID documentId) Returns a link to the last document version with read-only access mode.retrieveLastVersionUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the last document version with read-only access mode.retrieveLastVersionUrlByWebdavDocumentVersionId(UUID documentVersionId) Returns a link to the last document version with read-only access mode.
- 
Method Details- 
retrieveDocumentUrlByWebdavDocumentIdReturns a link to the last document version with full access mode.- Returns:
- Returns a link to last version of file with full access mode. Returns a read-only link if user don't have rights to update document. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document not found.
 
- 
retrieveDocumentUrlByWebdavDocumentReturns a link to the last document version with full access mode.- Returns:
- Returns a link to last version of file with full access mode. Returns a read-only link if user don't have rights to update document. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document not found.
 
- 
retrieveDocumentUrlByWebdavDocumentVersionIdReturns a link to the last document version with full access mode. It finds the related document and gets last version for it.- Returns:
- Returns a link to last version of file with full access mode. Returns a read-only link if user don't have rights to update document. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document not found.
 
- 
retrieveDocumentUrlByWebdavDocumentVersion@Nullable WebdavUrl retrieveDocumentUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the last document version with full access mode. It finds related document and gets last version for it.- Returns:
- Returns a link to last version of file with full access mode. Returns a read-only link if user don't have rights to update document. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document not found.
 
- 
retrieveConcreteVersionUrlByWebdavDocumentVersionIdReturns a link to the concrete document version with read-only access mode.- Returns:
- Returns a read-only link to the concrete version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveConcreteVersionUrlByWebdavDocumentVersion@Nullable WebdavUrl retrieveConcreteVersionUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the concrete document version with read-only access mode.- Returns:
- Returns a read-only link to the concrete version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveConcreteVersionUrlByWebdavDocumentIdAndNaturalVersion@Nullable WebdavUrl retrieveConcreteVersionUrlByWebdavDocumentIdAndNaturalVersion(UUID documentId, Long naturalVersionId) Returns a link to the concrete document version with read-only access mode.- Returns:
- Returns a read-only link to the concrete version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveConcreteVersionUrlByWebdavDocumentAndNaturalVersion@Nullable WebdavUrl retrieveConcreteVersionUrlByWebdavDocumentAndNaturalVersion(WebdavDocument document, Long naturalVersionId) Returns a link to the concrete document version with read-only access mode.- Returns:
- Returns a read-only link to the concrete version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveLastVersionUrlByWebdavDocumentIdReturns a link to the last document version with read-only access mode.- Returns:
- Returns a read-only link to the last version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveLastVersionUrlByWebdavDocumentReturns a link to the last document version with read-only access mode.- Returns:
- Returns a read-only link to the last version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveLastVersionUrlByWebdavDocumentVersionIdReturns a link to the last document version with read-only access mode.- Returns:
- Returns a read-only link to the last version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
retrieveLastVersionUrlByWebdavDocumentVersion@Nullable WebdavUrl retrieveLastVersionUrlByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Returns a link to the last document version with read-only access mode.- Returns:
- Returns a read-only link to the last version of file. Returns a link for downloading of file if there is no applications for this type of file. Returns null if document version not found.
 
- 
resolveEffectiveApplicationApplication resolveEffectiveApplication(WebdavDocumentVersion version, ApplicationProtocolType protocolType) Returns an application for document version with specificApplicationProtocolType.- Returns:
- Application information
 
 
-