Package com.priint.pubserverapi.document
Interface CheckedOutDocumentsServiceLocal
public interface CheckedOutDocumentsServiceLocal
Interface for a service managing checked-out documents.
Provides methods for creating queries, retrieving specific checked-out documents, and unlocking documents. This interface is designed for local usage within the application.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newCheckedOutDocumentsQueryinstance for querying checked-out documents.getCheckedOutDocumentById(CheckedOutDocumentId checkedOutDocumentId) Retrieves a checked-out document by its unique identifier.unLock(DocumentId documentId) Unlocks a document that has been checked out, making it available for editing or other operations.
-
Method Details
-
createCheckedOutDocumentQuery
CheckedOutDocumentsQuery createCheckedOutDocumentQuery()Creates a newCheckedOutDocumentsQueryinstance for querying checked-out documents.- Returns:
- a new
CheckedOutDocumentsQueryinstance
-
getCheckedOutDocumentById
Retrieves a checked-out document by its unique identifier.- Parameters:
checkedOutDocumentId- the unique identifier of the checked-out document- Returns:
- an
Optionalcontaining theCheckedOutDocumentif found, or an emptyOptionalif no document is found with the given ID
-
unLock
Unlocks a document that has been checked out, making it available for editing or other operations.- Parameters:
documentId- the unique identifier of the document to unlock- Returns:
- the
UnlockStatusindicating the result of the unlock operation
-