Package com.openkm.sdk4j.impl
Class DocumentImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.DocumentImpl
-
- All Implemented Interfaces:
BaseDocument,Serializable
public class DocumentImpl extends ClientImpl implements BaseDocument, Serializable
DocumentImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentImpl(String host)DocumentImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancelCheckout(String uuid)Cancel a previous checked out state in a document.voidcaptureData(String uuid, long templateId)Proceed to the OCR data capture using OCR template identified by templateId.Versioncheckin(String uuid, InputStream is, String comment)Check in the document to create a new version.Versioncheckin(String uuid, InputStream is, String comment, int increment)Check in the document to create a new version.voidcheckout(String uuid)Checkout the document to edit it.Documentcopy(String uuid, String dstId, String newName)Copy a document to another location in the repository.Documentcreate(String uuid, File file)Creates a new documentDocumentcreate(String uuid, String name, InputStream is)Creates a new documentDocumentcreate(String uuid, String name, InputStream is, long nodeClass)Creates a new documentDocumentcreateFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, boolean security, Map<String,String> properties)Create from template document.DocumentcreateFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, Map<String,String> properties)Deprecated.As of sdk4j 4.3, replaced bycreateFromTemplate(String, String, boolean, boolean, boolean, boolean, Map)WizardNodecreateWizard(String uuid, String name, long nodeClass, InputStream is)Create a new document with wizard.voiddelete(String uuid)Deletes a document from the repository.DocumentextendedCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security)Copy a document to another location in the repository.voidforceCancelCheckout(String uuid)Force to cancel a previous checked out state in a document.StringgetAnnotations(String uuid, String versionName)Get annotations for documentList<Document>getCheckedOut()Get checked out documentsList<Document>getChildren(String uuid)Gets children.InputStreamgetContent(String uuid)Obtain document content from the repository.InputStreamgetContentByVersion(String uuid, String versionName)Obtain document content from the repository.List<String>getDetectedLanguages()Retrieve a list of language.InputStreamgetDifferences(String uuid, String versionName1, String versionName2)Get differences between two document versions.StringgetExtractedText(String uuid)Obtain the document extracted text.List<String>getLiveEditRestrictedMimeTypes()Get mimetypes what can not be used with liveedit feature.intgetNumberOfPages(String uuid)Get the number of pages of a document.StringgetPageAsImage(String uuid, int pageNumber, int maxWidth, int maxHeight)Get page as image.StringgetPath(String uuid)Get the document path from a UUIDInputStreamgetPdf(String uuid)PDF of the document.DocumentgetProperties(String uuid)Obtain document properties from the repository.InputStreamgetThumbnail(String uuid, ThumbnailType type)Returns thumbnail image data.longgetVersionHistorySize(String uuid)Get the versions size of a Document.List<XRef>getXrefs(String uuid)Returns a list of the document references of a Autocad documentbooleanisAttachment(String uuid)Indicates if the node is a mail attachment or not.booleanisCheckedOut(String uuid)Test if a node has been already checked out.booleanisConvertibleToPDF(String uuid)Is convertible to pdfbooleanisOCRDataCaptureSupported(String uuid)Check if the node supports an OCR data capture.booleanisValid(String uuid)Test if a document path exists and is readable.voidliveEditCancelCheckout(String uuid)Live edit cancel checkout.voidliveEditCheckin(String uuid, String comment, int increment)It does a live edit checkin.voidliveEditForceCancelCheckout(String uuid)Live edit force cancel checkout.voidliveEditSetContent(String uuid, InputStream is)Update the content of the document edited with live edit feature.StringmergePdf(String dstId, String docName, List<String> uuids)Merge PDF documents.voidmove(String uuid, String dstId)Move a document to another location in the repository.voidpurge(String uuid)Deletes definitively a document from the repository.OCRRecogniserecognize(String uuid)Recognizevoidrefresh(String uuid)Refresh references of an Autocad documentDocumentrename(String uuid, String newName)Rename a document in the repository.DocumentsaveAsPdf(String uuid, String newName, boolean propertyGroups, boolean security)Save the document as PDF in the OpenKM repository.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenvoidsetDescription(String uuid, String description)Set document description.voidsetDispositionStage(String uuid, long stage)Set disposition stagevoidsetExtractedText(String uuid, InputStream is)Sets extracted text.voidsetIndexable(String uuid, boolean enabled)Sets indexable.voidsetLanguage(String uuid, String lang)Set document language.voidsetNodeClass(String uuid, long nodeClass)Set document node classvoidsetProperties(String uuid, String title, String description, String lang, List<String> keywords, List<String> categories)Set document properties in the repository.voidsetTitle(String uuid, String title)Set document title.voidstamp(String uuid, int type, long stampId)Stamp.voidupdateFromTemplate(String uuid, String dstId, Map<String,String> properties)Update from templatevoidwebPageImport(String uuid, String url)Web page import.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
DocumentImpl
public DocumentImpl(String host)
DocumentImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
create
public Document create(String uuid, File file) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCreates a new document- Specified by:
createin interfaceBaseDocument- Parameters:
uuid- Node uuid.file- The document content in bytes.- Returns:
- Document Return an object Document with the properties of the created document.
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
create
public Document create(String uuid, String name, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCreates a new document- Specified by:
createin interfaceBaseDocument- Parameters:
uuid- Node uuid.name- The nane documentis- The document content in bytes.- Returns:
- Document Return an object Document with the properties of the created document.
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
create
public Document create(String uuid, String name, InputStream is, long nodeClass) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCreates a new document- Specified by:
createin interfaceBaseDocument- Parameters:
uuid- Node uuid.name- The name documentis- The document content in bytes.nodeClass- the node class- Returns:
- Document Return an object Document with the properties of the created document.
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
delete
public void delete(String uuid) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentDeletes a document from the repository. It is a logical delete, so really is moved to the user trash and can be restored.- Specified by:
deletein interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
AutomationException- the automation exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProperties
public Document getProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentObtain document properties from the repository.- Specified by:
getPropertiesin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Document The document properties.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getContent
public InputStream getContent(String uuid) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentObtain document content from the repository.- Specified by:
getContentin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- InputStream The content of the document file.
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getContentByVersion
public InputStream getContentByVersion(String uuid, String versionName) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentObtain document content from the repository.- Specified by:
getContentByVersionin interfaceBaseDocument- Parameters:
uuid- Node uuidversionName- The name of the version to get the content from.- Returns:
- InputStream The content of the document file.
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getExtractedText
public String getExtractedText(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentObtain the document extracted text.- Specified by:
getExtractedTextin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Returns the text of the document.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setExtractedText
public void setExtractedText(String uuid, InputStream is) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSets extracted text.- Specified by:
setExtractedTextin interfaceBaseDocument- Parameters:
uuid- the uuidis- the is- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getThumbnail
public InputStream getThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentReturns thumbnail image data.- Specified by:
getThumbnailin interfaceBaseDocument- Parameters:
uuid- Node uuidtype-ThumbnailType- Returns:
- Returns thumbnail image data.
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionConversionException- the conversion exceptionAutomationException- the automation exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildren
public List<Document> getChildren(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentGets children.- Specified by:
getChildrenin interfaceBaseDocument- Parameters:
uuid- the uuid- Returns:
- the children
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
rename
public Document rename(String uuid, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentRename a document in the repository.- Specified by:
renamein interfaceBaseDocument- Parameters:
uuid- Node uuidnewName- The new document name.- Returns:
- Document An document object with the new document properties.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionLockException- the lock exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionPromotedAsRecordLockException- the promoted as record lock exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setProperties
public void setProperties(String uuid, String title, String description, String lang, List<String> keywords, List<String> categories) throws AccessDeniedException, RepositoryException, PathNotFoundException, VersionException, LockException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSet document properties in the repository.- Specified by:
setPropertiesin interfaceBaseDocument- Parameters:
uuid- Node uuidtitle- the titledescription- the descriptionlang- the langkeywords- the keywordscategories- the categories- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionVersionException- the version exceptionLockException- the lock exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setLanguage
public void setLanguage(String uuid, String lang) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSet document language.- Specified by:
setLanguagein interfaceBaseDocument- Parameters:
uuid- Node uuidlang- The language- Throws:
VersionException- the version exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setTitle
public void setTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSet document title.- Specified by:
setTitlein interfaceBaseDocument- Parameters:
uuid- Node uuidtitle- The title- Throws:
VersionException- the version exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setNodeClass
public void setNodeClass(String uuid, long nodeClass) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSet document node class- Specified by:
setNodeClassin interfaceBaseDocument- Parameters:
uuid- Node uuidnodeClass- The nodeClass id- Throws:
VersionException- the version exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setDispositionStage
public void setDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseDocumentSet disposition stage- Specified by:
setDispositionStagein interfaceBaseDocument- Parameters:
uuid- Node uuidstage- the stage- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
checkout
public void checkout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCheckout the document to edit it. The document can't be edited by another user until it is checked in o the checkout is canceled.- Specified by:
checkoutin interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
cancelCheckout
public void cancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCancel a previous checked out state in a document.- Specified by:
cancelCheckoutin interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
forceCancelCheckout
public void forceCancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PrincipalAdapterException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentForce to cancel a previous checked out state in a document.- Specified by:
forceCancelCheckoutin interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionPrincipalAdapterException- the principal adapter exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isCheckedOut
public boolean isCheckedOut(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentTest if a node has been already checked out.- Specified by:
isCheckedOutin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- true if the document is in checked out state, or false if not.
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
checkin
public Version checkin(String uuid, InputStream is, String comment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCheck in the document to create a new version.- Specified by:
checkinin interfaceBaseDocument- Parameters:
uuid- Node uuidis- The document content in bytes.comment- A comment for this checkin.- Returns:
- Version A version object with the properties of the new generated version.
- Throws:
FileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
checkin
public Version checkin(String uuid, InputStream is, String comment, int increment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCheck in the document to create a new version.- Specified by:
checkinin interfaceBaseDocument- Parameters:
uuid- Node uuidis- The document content in bytes.comment- A comment for this checkin.increment- Which increment should be increased.- Returns:
- Version A version object with the properties of the new generated version.
- Throws:
FileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
purge
public void purge(String uuid) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentDeletes definitively a document from the repository. It is a physical delete, so the document can't be restored.- Specified by:
purgein interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
LockException- the lock exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
move
public void move(String uuid, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, FilePlanCatalogManagerException, VersionException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentMove a document to another location in the repository.- Specified by:
movein interfaceBaseDocument- Parameters:
uuid- Node uuiddstId- The destination folder path or its UUID.- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionFilePlanCatalogManagerException- the file plan catalog manager exceptionVersionException- the version exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
copy
public Document copy(String uuid, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCopy a document to another location in the repository.- Specified by:
copyin interfaceBaseDocument- Parameters:
uuid- Node uuiddstId- The destination folder path or its UUID.newName- The new name to the document- Returns:
- Document An object document
- Throws:
ItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUserQuotaExceededException- the user quota exceeded exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getVersionHistorySize
public long getVersionHistorySize(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentGet the versions size of a Document.- Specified by:
getVersionHistorySizein interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- long The version size of a Document.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isValid
public boolean isValid(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentTest if a document path exists and is readable.- Specified by:
isValidin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- True if is a valid document path, otherwise false.
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPath
public String getPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentGet the document path from a UUID- Specified by:
getPathin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- The document path
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getDetectedLanguages
public List<String> getDetectedLanguages() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentRetrieve a list of language.- Specified by:
getDetectedLanguagesin interfaceBaseDocument- Returns:
- List
The list detected languages - Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
extendedCopy
public Document extendedCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCopy a document to another location in the repository.- Specified by:
extendedCopyin interfaceBaseDocument- Parameters:
uuid- Node uuid.dstId- The destination folder path or its UUID.newName- The new document name.categories- The categorieskeywords- The keywordspropertyGroups- The propertyGroupsnotes- The notessecurity- The security- Returns:
- An object document
- Throws:
ItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUserQuotaExceededException- the user quota exceeded exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createFromTemplate
public Document createFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, boolean security, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, DocumentException, TemplateException, DocumentTemplateException, ConversionException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCreate from template document.- Specified by:
createFromTemplatein interfaceBaseDocument- Parameters:
uuid- the uuiddstPath- the dst pathcategories- the categorieskeywords- the keywordsnotes- the notessecurity- the securityproperties- the properties- Returns:
- the document
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionDocumentException- the document exceptionTemplateException- the template exceptionDocumentTemplateException- the document template exceptionConversionException- the conversion exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionAutomationException- the automation exceptionFilePlanException- the file plan exceptionPromotedAsRecordLockException- the promoted as record lock exceptionParseException- the parse exceptionNoSuchGroupException- the no such group exceptionNoSuchPropertyException- the no such property exceptionLockException- the lock exceptionValidationFormException- the validation form exceptionClassNotFoundException- the class not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createFromTemplate
@Deprecated public Document createFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, DocumentException, TemplateException, DocumentTemplateException, ConversionException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
Deprecated.As of sdk4j 4.3, replaced bycreateFromTemplate(String, String, boolean, boolean, boolean, boolean, Map)Create from template- Specified by:
createFromTemplatein interfaceBaseDocument- Parameters:
uuid- Node uuiddstPath- The destination folder pathcategories- The categorieskeywords- The keywordsnotes- The notesproperties- The property values.- Returns:
- An object Document
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionDocumentException- the document exceptionTemplateException- the template exceptionDocumentTemplateException- the document template exceptionConversionException- the conversion exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionAutomationException- the automation exceptionFilePlanException- the file plan exceptionPromotedAsRecordLockException- the promoted as record lock exceptionParseException- the parse exceptionNoSuchGroupException- the no such group exceptionNoSuchPropertyException- the no such property exceptionLockException- the lock exceptionValidationFormException- the validation form exceptionClassNotFoundException- the class not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception- See Also:
createFromTemplate(String, String, boolean, boolean, boolean, boolean, Map)
-
updateFromTemplate
public void updateFromTemplate(String uuid, String dstId, Map<String,String> properties) throws DocumentException, TemplateException, DocumentTemplateException, ConversionException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, PathNotFoundException, ParseException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException, PromotedAsRecordLockException, NoSuchGroupException, NoSuchPropertyException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentUpdate from template- Specified by:
updateFromTemplatein interfaceBaseDocument- Parameters:
uuid- Node uuiddstId- The destination folder pathproperties- The property values.- Throws:
DocumentException- the document exceptionTemplateException- the template exceptionDocumentTemplateException- the document template exceptionConversionException- the conversion exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionParseException- the parse exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionNoSuchGroupException- the no such group exceptionNoSuchPropertyException- the no such property exceptionValidationFormException- the validation form exceptionClassNotFoundException- the class not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAnnotations
public String getAnnotations(String uuid, String versionName) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentGet annotations for document- Specified by:
getAnnotationsin interfaceBaseDocument- Parameters:
uuid- Node uuidversionName- The name of the version- Returns:
- Returns annotations
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getDifferences
public InputStream getDifferences(String uuid, String versionName1, String versionName2) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, AutomationException, ConversionException, TemplateException, InterruptedException, WebserviceException, UnknownException
Description copied from interface:BaseDocumentGet differences between two document versions.- Specified by:
getDifferencesin interfaceBaseDocument- Parameters:
uuid- Node uuidversionName1- The name of the versionversionName2- The name of the version- Returns:
- Return a PDF document with the differences between two document versions.
- Throws:
RepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAutomationException- the automation exceptionConversionException- the conversion exceptionTemplateException- the template exceptionInterruptedException- the interrupted exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getCheckedOut
public List<Document> getCheckedOut() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseDocumentGet checked out documents- Specified by:
getCheckedOutin interfaceBaseDocument- Returns:
- The list of checked out documents.
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
stamp
public void stamp(String uuid, int type, long stampId) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, AutomationException, UnsupportedMimeTypeException, PromotedAsRecordLockException, LockException, DocumentException, NumberFormatException, PrincipalAdapterException, WebserviceException, UnknownException
Description copied from interface:BaseDocumentStamp.- Specified by:
stampin interfaceBaseDocument- Parameters:
uuid- the uuidtype- the typestampId- the stamp id- Throws:
RepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAutomationException- the automation exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionPromotedAsRecordLockException- the promoted as record lock exceptionLockException- the lock exceptionDocumentException- the document exceptionNumberFormatException- the number format exceptionPrincipalAdapterException- the principal adapter exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
setDescription
public void setDescription(String uuid, String description) throws LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, WebserviceException, UnknownException
Description copied from interface:BaseDocumentSet document description.- Specified by:
setDescriptionin interfaceBaseDocument- Parameters:
uuid- Node uuiddescription- The description- Throws:
LockException- the lock exceptionVersionException- the version exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
createWizard
public WizardNode createWizard(String uuid, String name, long nodeClass, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCreate a new document with wizard.- Specified by:
createWizardin interfaceBaseDocument- Parameters:
uuid- Node uuidname- The document name.nodeClass- The nodeClassis- The document content in bytes.- Returns:
- An object WizardName
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isOCRDataCaptureSupported
public boolean isOCRDataCaptureSupported(String uuid) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentCheck if the node supports an OCR data capture.- Specified by:
isOCRDataCaptureSupportedin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- true if have OCR data capture supported, or false if not.
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
recognize
public OCRRecognise recognize(String uuid) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentRecognize- Specified by:
recognizein interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Return an OCRRecognise object.
- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
captureData
public void captureData(String uuid, long templateId) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentProceed to the OCR data capture using OCR template identified by templateId.- Specified by:
captureDatain interfaceBaseDocument- Parameters:
uuid- Node uuidtemplateId- The template id- Throws:
UnsupportedMimeTypeException- the unsupported mime type exceptionFileSizeExceededException- the file size exceeded exceptionUserQuotaExceededException- the user quota exceeded exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getNumberOfPages
public int getNumberOfPages(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
Description copied from interface:BaseDocumentGet the number of pages of a document.- Specified by:
getNumberOfPagesin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Returns the number of pages of a document
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
getPageAsImage
public String getPageAsImage(String uuid, int pageNumber, int maxWidth, int maxHeight) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
Description copied from interface:BaseDocumentGet page as image.- Specified by:
getPageAsImagein interfaceBaseDocument- Parameters:
uuid- Node uuidpageNumber- The page numbermaxWidth- The maximum widthmaxHeight- The maximum height- Returns:
- Return specific page as an image encoded as a String in b64.
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
mergePdf
public String mergePdf(String dstId, String docName, List<String> uuids) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
Description copied from interface:BaseDocumentMerge PDF documents.- Specified by:
mergePdfin interfaceBaseDocument- Parameters:
dstId- the destination uuiddocName- the doc nameuuids- the uuids- Returns:
- the uuid of the PDF
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
getPdf
public InputStream getPdf(String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentPDF of the document.- Specified by:
getPdfin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Returns a PDF of the document.
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionConversionException- the conversion exceptionAutomationException- the automation exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
saveAsPdf
public Document saveAsPdf(String uuid, String newName, boolean propertyGroups, boolean security) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, ConversionException, UnsupportedMimeTypeException, VirusDetectedException, ItemExistsException, AutomationException, PromotedAsRecordLockException, PrincipalAdapterException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSave the document as PDF in the OpenKM repository.- Specified by:
saveAsPdfin interfaceBaseDocument- Parameters:
uuid- Node uuidnewName- The new name to the documentpropertyGroups- the property groupssecurity- the security- Returns:
- An object document
- Throws:
RepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionConversionException- the conversion exceptionUnsupportedMimeTypeException- the unsupported mime type exceptionVirusDetectedException- the virus detected exceptionItemExistsException- the item exists exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionPrincipalAdapterException- the principal adapter exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getLiveEditRestrictedMimeTypes
public List<String> getLiveEditRestrictedMimeTypes() throws WebserviceException, UnknownException
Description copied from interface:BaseDocumentGet mimetypes what can not be used with liveedit feature.- Specified by:
getLiveEditRestrictedMimeTypesin interfaceBaseDocument- Returns:
- Return a list of mimetypes what can not be used with liveedit feature.
- Throws:
WebserviceException- the webservice exceptionUnknownException- the unknown exception
-
liveEditCheckin
public void liveEditCheckin(String uuid, String comment, int increment) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentIt does a live edit checkin.- Specified by:
liveEditCheckinin interfaceBaseDocument- Parameters:
uuid- Node uuidcomment- A comment for this checkin.increment- Which increment should be increased.- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
liveEditCancelCheckout
public void liveEditCancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentLive edit cancel checkout.- Specified by:
liveEditCancelCheckoutin interfaceBaseDocument- Parameters:
uuid- the uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
liveEditForceCancelCheckout
public void liveEditForceCancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentLive edit force cancel checkout.- Specified by:
liveEditForceCancelCheckoutin interfaceBaseDocument- Parameters:
uuid- the uuid- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
liveEditSetContent
public void liveEditSetContent(String uuid, InputStream is) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentUpdate the content of the document edited with live edit feature.- Specified by:
liveEditSetContentin interfaceBaseDocument- Parameters:
uuid- Node uuidis- The document content in bytes.- Throws:
AutomationException- the automation exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isAttachment
public boolean isAttachment(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentIndicates if the node is a mail attachment or not.- Specified by:
isAttachmentin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Returns a boolean that indicates if the node is a mail attachment or not.
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isConvertibleToPDF
public boolean isConvertibleToPDF(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentIs convertible to pdf- Specified by:
isConvertibleToPDFin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- Returns a boolean that indicates if the node is convertible to PDF or not.
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
webPageImport
public void webPageImport(String uuid, String url) throws ConversionException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentWeb page import.- Specified by:
webPageImportin interfaceBaseDocument- Parameters:
uuid- the uuidurl- the url- Throws:
ConversionException- the conversion exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setIndexable
public void setIndexable(String uuid, boolean enabled) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentSets indexable.- Specified by:
setIndexablein interfaceBaseDocument- Parameters:
uuid- the uuidenabled- the enabled- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getXrefs
public List<XRef> getXrefs(String uuid) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentReturns a list of the document references of a Autocad document- Specified by:
getXrefsin interfaceBaseDocument- Parameters:
uuid- Node uuid- Returns:
- List
xrefs - Throws:
RepositoryException- the repository exceptionAccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
refresh
public void refresh(String uuid) throws DatabaseException, PathNotFoundException, AccessDeniedException, RepositoryException, ParseException, UnknownException, WebserviceException
Description copied from interface:BaseDocumentRefresh references of an Autocad document- Specified by:
refreshin interfaceBaseDocument- Parameters:
uuid- Node uuid- Throws:
DatabaseException- the database exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionParseException- the parse exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-