Class DocumentClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.document.DocumentClientImpl
- All Implemented Interfaces:
- DocumentClient
This is the default implementation of 
DocumentClient.- Author:
- jschwarz
- 
Constructor SummaryConstructorsConstructorDescriptionDocumentClientImpl(com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.document.DocumentReferenceType reference) 
- 
Method SummaryModifier and TypeMethodDescriptionList<com.lexmark.saperion.administration.AclReferenceType>getACLs()This method loads the ACLs set on the current revision of the specified document.getRevision(com.lexmark.saperion.document.DocumentRevisionReferenceType id) This method returns a document revision client bound to the given revision of the given document.List<com.lexmark.saperion.document.DocumentRevisionType>This method returns the revision history of a given document.This method returns a document revision client bound to the newest revision of the given document.voidlock()This method locks the document.voidunlock()This method unlocks the document.
- 
Constructor Details- 
DocumentClientImplpublic DocumentClientImpl(com.lexmark.saperion.document.DocumentService documentService, com.lexmark.saperion.document.DocumentReferenceType reference) 
 
- 
- 
Method Details- 
latestRevisionDescription copied from interface:DocumentClientThis method returns a document revision client bound to the newest revision of the given document. Note that using it may result in write-read, read-write and write-write conflicts.- Specified by:
- latestRevisionin interface- DocumentClient
- Returns:
- a document revision client bound to the newest revision of the given document
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
- 
getRevisionpublic DocumentRevisionClient getRevision(com.lexmark.saperion.document.DocumentRevisionReferenceType id) Description copied from interface:DocumentClientThis method returns a document revision client bound to the given revision of the given document.- Specified by:
- getRevisionin interface- DocumentClient
- Parameters:
- id- the document revision id
- Returns:
- the document revision client for the given document id
 
- 
lockpublic void lock() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:DocumentClientThis method locks the document.- Specified by:
- lockin interface- DocumentClient
- Throws:
- com.lexmark.saperion.exceptions.EcmException- when locking the document failed
 
- 
unlockpublic void unlock() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:DocumentClientThis method unlocks the document.- Specified by:
- unlockin interface- DocumentClient
- Throws:
- com.lexmark.saperion.exceptions.EcmException- when unlocking the document failed
 
- 
getACLspublic List<com.lexmark.saperion.administration.AclReferenceType> getACLs() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:DocumentClientThis method loads the ACLs set on the current revision of the specified document.- Specified by:
- getACLsin interface- DocumentClient
- Returns:
- the ACLs currently set
- Throws:
- com.lexmark.saperion.exceptions.EcmException- when loading the ACLs failed
 
- 
getRevisionHistorypublic List<com.lexmark.saperion.document.DocumentRevisionType> getRevisionHistory() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:DocumentClientThis method returns the revision history of a given document.- Specified by:
- getRevisionHistoryin interface- DocumentClient
- Returns:
- a list of revision metadata for all the previous revisions
- Throws:
- com.lexmark.saperion.exceptions.EcmException- when loading revision metadata failed
 
 
-