Package io.jmix.webdav.service.impl
Class WebdavDocumentVersionsManagementServiceImpl
java.lang.Object
io.jmix.webdav.service.impl.WebdavDocumentVersionsManagementServiceImpl
- All Implemented Interfaces:
WebdavDocumentVersionsManagementService
@Component("webdav_WebdavVersionsManagementService")
public class WebdavDocumentVersionsManagementServiceImpl
extends Object
implements WebdavDocumentVersionsManagementService
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected EntityStates
protected FetchPlanRepository
protected FileStorageLocator
protected Metadata
static final String
static final String
static final String
static final String
static final String
static final String
protected WebdavPreconditions
protected WebdavTools
-
Constructor Summary
ConstructorDescriptionWebdavDocumentVersionsManagementServiceImpl
(Metadata metadata, DataManager dataManager, FetchPlanRepository fetchPlanRepository, WebdavPreconditions webdavPreconditions, EntityStates entityStates, WebdavTools webdavTools, FileStorageLocator fileStorageLocator) -
Method Summary
Modifier and TypeMethodDescriptioncreateVersionBasedOnDocumentAndNaturalVersionId
(WebdavDocument document, Long naturalIdentifier) Creates a document version by a file descriptor in base version.createVersionBasedOnDocumentIdAndNaturalVersionId
(UUID documentId, Long naturalIdentifier) Creates a document version by a file descriptor in base version.createVersionBasedOnVersion
(WebdavDocumentVersion documentVersion) Creates document version by a file reference in base version.createVersionBasedOnVersionId
(UUID documentVersionId) Creates a document version by a file descriptor in base version.createVersionByFileRef
(FileRef fileRef) Creates a document version by a file reference.protected List<WebdavDocumentVersion>
internalRetrieveAllVersionsByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) protected WebdavDocumentVersion
internalRetrieveConcreteVersionByWebdavDocumentIdAndNaturalId
(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) protected WebdavDocumentVersion
internalRetrieveFirstVersionByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) protected WebdavDocumentVersion
internalRetrieveLastVersionByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) protected boolean
isWebdavDocumentLoaded
(WebdavDocumentVersion documentVersion) Returns all document versions.retrieveAllVersionsByWebdavDocument
(WebdavDocument document, FetchPlan fetchPlan) Returns all document versions.retrieveAllVersionsByWebdavDocument
(WebdavDocument document, String fetchPlanName) Returns all document versions.retrieveAllVersionsByWebdavDocumentId
(UUID documentId) Returns all document versions.retrieveAllVersionsByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) Returns all document versions.retrieveAllVersionsByWebdavDocumentId
(UUID documentId, String fetchPlanName) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion, String fetchPlanName) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersionId
(UUID documentVersionId) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersionId
(UUID documentVersionId, FetchPlan fetchPlan) Returns all document versions.retrieveAllVersionsByWebdavDocumentVersionId
(UUID documentVersionId, String fetchPlanName) Returns all document versions.retrieveConcreteVersionByWebdavDocumentAndNaturalId
(WebdavDocument document, Long naturalIdentifier) Returns a concrete version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentAndNaturalId
(WebdavDocument document, Long naturalIdentifier, FetchPlan fetchPlan) Returns a concrete document version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentAndNaturalId
(WebdavDocument document, Long naturalIdentifier, String fetchPlanName) Returns a concrete document version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
(WebdavDocument document, Long naturalIdentifier) Returns a concrete document version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
(WebdavDocument document, Long naturalIdentifier, FetchPlan fetchPlan) Returns a concrete document version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
(WebdavDocument document, Long naturalIdentifier, String fetchPlanName) Returns a concrete document version by a document and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
(UUID documentId, Long naturalIdentifier) Returns a concrete version by document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) Returns a concrete version by a document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
(UUID documentId, Long naturalIdentifier, String fetchPlanName) Returns a concrete version by document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
(UUID documentId, Long naturalIdentifier) Returns a concrete version by document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) Returns a concrete version by a document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
(UUID documentId, Long naturalIdentifier, String fetchPlanName) Returns a concrete version by a document id and natural version identifier.retrieveConcreteVersionByWebdavDocumentVersionId
(UUID documentVersionId) Returns concrete document version.retrieveConcreteVersionByWebdavDocumentVersionId
(UUID documentVersionId, FetchPlan fetchPlan) Returns a concrete version.retrieveConcreteVersionByWebdavDocumentVersionId
(UUID documentVersionId, String fetchPlanName) Returns a concrete document version.retrieveConcreteVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId) Returns a concrete document version.retrieveConcreteVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId, FetchPlan fetchPlan) Returns a concrete version.retrieveConcreteVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId, String fetchPlanName) Returns a concrete document version.Returns the first document version.retrieveFirstVersionByWebdavDocument
(WebdavDocument document, FetchPlan fetchPlan) Returns the first document version.retrieveFirstVersionByWebdavDocument
(WebdavDocument document, String fetchPlanName) Returns the first document version.retrieveFirstVersionByWebdavDocumentId
(UUID documentId) Returns the first document version.retrieveFirstVersionByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) Returns the first document version.retrieveFirstVersionByWebdavDocumentId
(UUID documentId, String fetchPlanName) Returns the first document version.retrieveFirstVersionByWebdavDocumentIdNN
(UUID documentId) Returns the first document version.retrieveFirstVersionByWebdavDocumentIdNN
(UUID documentId, FetchPlan fetchPlan) Returns the first document version.retrieveFirstVersionByWebdavDocumentIdNN
(UUID documentId, String fetchPlanName) Returns the first document version.Returns the first document version.retrieveFirstVersionByWebdavDocumentNN
(WebdavDocument document, FetchPlan fetchPlan) Returns the first document version.retrieveFirstVersionByWebdavDocumentNN
(WebdavDocument document, String fetchPlanName) Returns the first document version.Returns the last document version.retrieveLastVersionByWebdavDocument
(WebdavDocument document, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocument
(WebdavDocument document, String fetchPlanName) Returns the last document version.retrieveLastVersionByWebdavDocumentId
(UUID documentId) Returns the last document version.retrieveLastVersionByWebdavDocumentId
(UUID documentId, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentId
(UUID documentId, String fetchPlanName) Returns the last document version.retrieveLastVersionByWebdavDocumentIdNN
(UUID documentId) Returns the last document version.retrieveLastVersionByWebdavDocumentIdNN
(UUID documentId, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentIdNN
(UUID documentId, String fetchPlanName) Returns the last document version.Returns the last document version.retrieveLastVersionByWebdavDocumentNN
(WebdavDocument document, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentNN
(WebdavDocument document, String fetchPlanName) Returns the last document version.retrieveLastVersionByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion) Returns the last document version.retrieveLastVersionByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion, String fetchPlanName) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionId
(UUID documentVersionId) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionId
(UUID documentVersionId, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionId
(UUID documentVersionId, String fetchPlanName) Method can be optimized by subselectretrieveLastVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionIdNN
(UUID documentVersionId, String fetchPlanName) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionNN
(WebdavDocumentVersion documentVersion) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionNN
(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Returns the last document version.retrieveLastVersionByWebdavDocumentVersionNN
(WebdavDocumentVersion documentVersion, String fetchPlanName) Returns the last document version.retrieveVersionsFollowingByWebdavDocumentVersion
(UUID documentId, Long version) Returns document versions following the specific version number.retrieveVersionsFollowingByWebdavDocumentVersion
(UUID documentId, Long version, FetchPlan fetchPlan) Returns document versions following the specific version number.retrieveVersionsFollowingByWebdavDocumentVersion
(UUID documentId, Long version, String fetchPlanName) Returns document versions following the specific version number.
-
Field Details
-
RETRIEVE_LAST_VERSION_BY_WEBDAV_DOCUMENT_ID
- See Also:
-
RETRIEVE_CONCRETE_VERSION_BY_WEBDAV_DOCUMENT_ID_AND_NATURAL_ID
- See Also:
-
RETRIEVE_ALL_VERSIONS_BY_WEBDAV_DOCUMENT_ID
- See Also:
-
RETRIEVE_ALL_VERSIONS_BY_WEBDAV_DOCUMENT_VERSION_ID
- See Also:
-
RETRIEVE_FIRST_VERSION_BY_WEBDAV_DOCUMENT_ID
- See Also:
-
RETRIEVE_VERSIONS_AFTER_VERSION_ID
- See Also:
-
metadata
-
dataManager
-
fetchPlanRepository
-
webdavPreconditions
-
entityStates
-
webdavTools
-
fileStorageLocator
-
-
Constructor Details
-
WebdavDocumentVersionsManagementServiceImpl
public WebdavDocumentVersionsManagementServiceImpl(Metadata metadata, DataManager dataManager, FetchPlanRepository fetchPlanRepository, WebdavPreconditions webdavPreconditions, EntityStates entityStates, WebdavTools webdavTools, FileStorageLocator fileStorageLocator)
-
-
Method Details
-
retrieveFirstVersionByWebdavDocumentId
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentIdNN
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveFirstVersionByWebdavDocumentId
@Nullable public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentId(UUID documentId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentIdNN
public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentIdNN(UUID documentId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveFirstVersionByWebdavDocumentId
@Nullable public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentIdNN
public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentIdNN(UUID documentId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveFirstVersionByWebdavDocument
@Nullable public WebdavDocumentVersion retrieveFirstVersionByWebdavDocument(WebdavDocument document) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentNN
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveFirstVersionByWebdavDocument
@Nullable public WebdavDocumentVersion retrieveFirstVersionByWebdavDocument(WebdavDocument document, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentNN
public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentNN(WebdavDocument document, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveFirstVersionByWebdavDocument
@Nullable public WebdavDocumentVersion retrieveFirstVersionByWebdavDocument(WebdavDocument document, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveFirstVersionByWebdavDocumentNN
public WebdavDocumentVersion retrieveFirstVersionByWebdavDocumentNN(WebdavDocument document, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the first document version.- Specified by:
retrieveFirstVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
internalRetrieveFirstVersionByWebdavDocumentId
@Nullable protected WebdavDocumentVersion internalRetrieveFirstVersionByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) -
retrieveLastVersionByWebdavDocumentId
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- document version with LOCAL fetch plan or null if document version not found
-
retrieveLastVersionByWebdavDocumentIdNN
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveLastVersionByWebdavDocumentId
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentId(UUID documentId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentIdNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentIdNN(UUID documentId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveLastVersionByWebdavDocumentId
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentIdNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentIdNN(UUID documentId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
internalRetrieveLastVersionByWebdavDocumentId
@Nullable protected WebdavDocumentVersion internalRetrieveLastVersionByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) -
retrieveLastVersionByWebdavDocument
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentNN
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveLastVersionByWebdavDocument
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocument(WebdavDocument document, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentNN(WebdavDocument document, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveLastVersionByWebdavDocument
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocument(WebdavDocument document, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentNN(WebdavDocument document, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version.- Specified by:
retrieveLastVersionByWebdavDocumentNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveLastVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionId(UUID documentVersionId) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentVersionIdNN
Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveLastVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionId(UUID documentVersionId, String fetchPlanName) Method can be optimized by subselect- Specified by:
retrieveLastVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
- Parameters:
documentVersionId
-fetchPlanName
-- Returns:
- null if user hasn't permission to read document or version of document. Also if version with documentVersionId have not been found in db, method will return null
-
retrieveLastVersionByWebdavDocumentVersionIdNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionIdNN(UUID documentVersionId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document version
-
retrieveLastVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionId(UUID documentVersionId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentVersionIdNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionIdNN(UUID documentVersionId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveLastVersionByWebdavDocumentVersion
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentVersionNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionNN(WebdavDocumentVersion documentVersion) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveLastVersionByWebdavDocumentVersion
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersion(WebdavDocumentVersion documentVersion, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveLastVersionByWebdavDocumentVersionNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionNN(WebdavDocumentVersion documentVersion, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveLastVersionByWebdavDocumentVersion
@Nullable public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersion(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
isWebdavDocumentLoaded
-
retrieveLastVersionByWebdavDocumentVersionNN
public WebdavDocumentVersion retrieveLastVersionByWebdavDocumentVersionNN(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns the last document version. It finds related document and gets last version for it.- Specified by:
retrieveLastVersionByWebdavDocumentVersionNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveConcreteVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionId(UUID documentVersionId) Description copied from interface:WebdavDocumentVersionsManagementService
Returns concrete document version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentVersionIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionIdNN(UUID documentVersionId) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveConcreteVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionId(UUID documentVersionId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a reloaded document fetch plan- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentVersionIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionIdNN(UUID documentVersionId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveConcreteVersionByWebdavDocumentVersionId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionId(UUID documentVersionId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version not found
-
retrieveConcreteVersionByWebdavDocumentVersionIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentVersionIdNN(UUID documentVersionId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version.- Specified by:
retrieveConcreteVersionByWebdavDocumentVersionIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalId(UUID documentId, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN(UUID documentId, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalId(UUID documentId, Long naturalIdentifier, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN(UUID documentId, Long naturalIdentifier, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by a document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalId(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by a document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
internalRetrieveConcreteVersionByWebdavDocumentIdAndNaturalId
protected WebdavDocumentVersion internalRetrieveConcreteVersionByWebdavDocumentIdAndNaturalId(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) -
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN(UUID documentId, Long naturalIdentifier, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by a document id and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentIdAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalId(WebdavDocument document, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version us not found
-
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN(WebdavDocument document, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveConcreteVersionByWebdavDocumentAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalId(WebdavDocument document, Long naturalIdentifier, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN(WebdavDocument document, Long naturalIdentifier, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveConcreteVersionByWebdavDocumentAndNaturalId
@Nullable public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalId(WebdavDocument document, Long naturalIdentifier, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- null if a document version is not found
-
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
public WebdavDocumentVersion retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN(WebdavDocument document, Long naturalIdentifier, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns a concrete document version by a document and natural version identifier.- Specified by:
retrieveConcreteVersionByWebdavDocumentAndNaturalIdNN
in interfaceWebdavDocumentVersionsManagementService
-
retrieveAllVersionsByWebdavDocumentId
Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
-
retrieveAllVersionsByWebdavDocumentId
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentId(UUID documentId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocumentId
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocumentId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
internalRetrieveAllVersionsByWebdavDocumentId
protected List<WebdavDocumentVersion> internalRetrieveAllVersionsByWebdavDocumentId(UUID documentId, FetchPlan fetchPlan) -
retrieveAllVersionsByWebdavDocument
Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
-
retrieveAllVersionsByWebdavDocument
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocument(WebdavDocument document, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocument
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocument(WebdavDocument document, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions.- Specified by:
retrieveAllVersionsByWebdavDocument
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocumentVersionId
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersionId(UUID documentVersionId) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
-
retrieveAllVersionsByWebdavDocumentVersionId
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersionId(UUID documentVersionId, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocumentVersionId
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersionId(UUID documentVersionId, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersionId
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
-
retrieveAllVersionsByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersion(WebdavDocumentVersion documentVersion, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveAllVersionsByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveAllVersionsByWebdavDocumentVersion(WebdavDocumentVersion documentVersion, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns all document versions. It finds related document and gets list of versions for it.- Specified by:
retrieveAllVersionsByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-
createVersionByFileRef
Description copied from interface:WebdavDocumentVersionsManagementService
Creates a document version by a file reference.- Specified by:
createVersionByFileRef
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- a new document version without document and natural version identifier
-
createVersionBasedOnVersionId
Description copied from interface:WebdavDocumentVersionsManagementService
Creates a document version by a file descriptor in base version. The base version is found by id.- Specified by:
createVersionBasedOnVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- a new document version without document and natural version identifier
-
createVersionBasedOnVersion
Description copied from interface:WebdavDocumentVersionsManagementService
Creates document version by a file reference in base version. The base version is found by version instance.- Specified by:
createVersionBasedOnVersion
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- a new document version without document and natural version identifier
-
createVersionBasedOnDocumentIdAndNaturalVersionId
public WebdavDocumentVersion createVersionBasedOnDocumentIdAndNaturalVersionId(UUID documentId, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Creates a document version by a file descriptor in base version. The base version is found by document id and natural version identifier.- Specified by:
createVersionBasedOnDocumentIdAndNaturalVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- a new document version without document and natural version identifier
-
createVersionBasedOnDocumentAndNaturalVersionId
public WebdavDocumentVersion createVersionBasedOnDocumentAndNaturalVersionId(WebdavDocument document, Long naturalIdentifier) Description copied from interface:WebdavDocumentVersionsManagementService
Creates a document version by a file descriptor in base version. The base version is found by document and natural version identifier.- Specified by:
createVersionBasedOnDocumentAndNaturalVersionId
in interfaceWebdavDocumentVersionsManagementService
- Returns:
- a new document version without document and natural version identifier
-
retrieveVersionsFollowingByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveVersionsFollowingByWebdavDocumentVersion(UUID documentId, Long version) Description copied from interface:WebdavDocumentVersionsManagementService
Returns document versions following the specific version number.- Specified by:
retrieveVersionsFollowingByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
-
retrieveVersionsFollowingByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveVersionsFollowingByWebdavDocumentVersion(UUID documentId, Long version, String fetchPlanName) Description copied from interface:WebdavDocumentVersionsManagementService
Returns document versions following the specific version number.- Specified by:
retrieveVersionsFollowingByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlanName
- a returned document fetch plan
-
retrieveVersionsFollowingByWebdavDocumentVersion
public List<WebdavDocumentVersion> retrieveVersionsFollowingByWebdavDocumentVersion(UUID documentId, Long version, FetchPlan fetchPlan) Description copied from interface:WebdavDocumentVersionsManagementService
Returns document versions following the specific version number.- Specified by:
retrieveVersionsFollowingByWebdavDocumentVersion
in interfaceWebdavDocumentVersionsManagementService
fetchPlan
- a returned document fetch plan
-