public class DocumentImpl extends ClientImpl implements BaseDocument, Serializable
| Constructor and Description |
|---|
DocumentImpl(String host)
DocumentImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCheckout(String uuid)
Cancel a previous checked out state in a document.
|
Version |
checkin(String uuid,
InputStream is,
String comment)
Check in the document to create a new version.
|
Version |
checkin(String uuid,
InputStream is,
String comment,
int increment)
Check in the document to create a new version.
|
void |
checkout(String uuid)
Checkout the document to edit it.
|
Document |
copyDocument(String uuid,
String dstId,
String newName)
Copy a document to another location in the repository.
|
Document |
createDocument(String uuid,
File file)
Creates a new document
|
Document |
createDocument(String uuid,
String name,
InputStream is)
Creates a new document
|
Document |
createDocument(String uuid,
String name,
InputStream is,
long nodeClass)
Creates a new document
|
Document |
createDocumentFromTemplate(String uuid,
String dstPath,
boolean categories,
boolean keywords,
boolean notes,
boolean security,
Map<String,String> properties)
Create document from template document.
|
WizardNode |
createWizardDocument(String uuid,
String name,
long nodeClass,
InputStream is)
Create a new document with wizard.
|
void |
deleteDocument(String uuid)
Deletes a document from the repository.
|
Document |
extendedDocumentCopy(String uuid,
String dstId,
String name,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean security)
Copy a document to another location in the repository.
|
void |
forceCancelCheckout(String uuid)
Force to cancel a previous checked out state in a document.
|
List<Document> |
getCheckedOut()
Get checked out documents
|
InputStream |
getContent(String uuid)
Obtain document content from the repository.
|
InputStream |
getContentByVersion(String uuid,
String versionName)
Obtain document content from the repository.
|
List<String> |
getDetectedLanguages()
Retrieve a list of language.
|
List<Document> |
getDocumentChildren(String uuid)
Retrieve a list of children documents from an existing folder.
|
String |
getDocumentPath(String uuid)
Get the document path from a UUID
|
InputStream |
getDocumentPdf(String uuid)
PDF of the document.
|
Document |
getDocumentProperties(String uuid)
Obtain document properties from the repository.
|
String |
getExtractedText(String uuid)
Obtain the document extracted text.
|
LockInfo |
getLockInfo(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.getLockInfo(String) |
int |
getNumberOfPages(String uuid)
Get the number of pages of a document.
|
String |
getPageAsImage(String uuid,
int pageNumber,
int maxWidth,
int maxHeight)
Get page as image.
|
InputStream |
getThumbnail(String uuid,
ThumbnailType type)
Returns thumbnail image data.
|
long |
getVersionHistorySize(String uuid)
Get the versions size of a Document.
|
boolean |
isAttachment(String uuid)
Indicates if the node is a mail attachment or not.
|
boolean |
isCheckedOut(String uuid)
Test if a node has been already checked out.
|
boolean |
isLocked(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.isLocked(String) |
boolean |
isValidDocument(String uuid)
Test if a document path exists and is readable.
|
void |
moveDocument(String uuid,
String dstId)
Move a document to another location in the repository.
|
void |
purgeDocument(String uuid)
Deletes definitively a document from the repository.
|
Document |
renameDocument(String uuid,
String newName)
Rename a document in the repository.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setDocumentDescription(String uuid,
String description)
Set document description.
|
void |
setDocumentTitle(String uuid,
String title)
Set document title.
|
void |
setExtractedText(String uuid,
InputStream is)
Sets extracted text.
|
void |
setLanguage(String uuid,
String lang)
Set document language.
|
void |
setProperties(String uuid,
String title,
String description,
String lang,
List<String> keywords,
List<String> categories)
Set document properties in the repository.
|
void |
updateDocumentFromTemplate(String uuid,
String dstId,
Map<String,String> properties)
Update from template
|
getClient, resource, resource, resourcepublic DocumentImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Document createDocument(String uuid, File file) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcreateDocument in interface BaseDocumentuuid - Node uuid.file - The document content in bytes.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 exceptionpublic Document createDocument(String uuid, String name, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcreateDocument in interface BaseDocumentuuid - Node uuid.name - The nane documentis - The document content in bytes.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 exceptionpublic Document createDocument(String uuid, String name, InputStream is, long nodeClass) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcreateDocument in interface BaseDocumentuuid - Node uuid.name - The name documentis - The document content in bytes.nodeClass - the node classUnsupportedMimeTypeException - 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 exceptionpublic void deleteDocument(String uuid) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentdeleteDocument in interface BaseDocumentuuid - Node uuidAutomationException - 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 exceptionpublic Document getDocumentProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetDocumentProperties in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic InputStream getContent(String uuid) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetContent in interface BaseDocumentuuid - Node uuidRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic InputStream getContentByVersion(String uuid, String versionName) throws RepositoryException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetContentByVersion in interface BaseDocumentuuid - Node uuidversionName - The name of the version to get the content from.RepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<Document> getDocumentChildren(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetDocumentChildren in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic Document renameDocument(String uuid, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, AutomationException, UnknownException, WebserviceException
BaseDocumentrenameDocument in interface BaseDocumentuuid - Node uuidnewName - The new document name.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 exceptionpublic 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
BaseDocumentsetProperties in interface BaseDocumentuuid - Node uuidtitle - the titledescription - the descriptionlang - the langkeywords - the keywordscategories - the categoriesAccessDeniedException - 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 exceptionpublic void setLanguage(String uuid, String lang) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentsetLanguage in interface BaseDocumentuuid - Node uuidlang - The languageVersionException - 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 exceptionpublic void setDocumentTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentsetDocumentTitle in interface BaseDocumentuuid - Node uuidtitle - The titleVersionException - 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 exceptionpublic void checkout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
BaseDocumentcheckout in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionLockException - the lock exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void cancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
BaseDocumentcancelCheckout in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionLockException - the lock exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void forceCancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PrincipalAdapterException, UnknownException, WebserviceException
BaseDocumentforceCancelCheckout in interface BaseDocumentuuid - Node uuidAccessDeniedException - 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 exceptionpublic boolean isCheckedOut(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentisCheckedOut in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic Version checkin(String uuid, InputStream is, String comment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcheckin in interface BaseDocumentuuid - Node uuidis - The document content in bytes.comment - A comment for this checkin.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 exceptionpublic Version checkin(String uuid, InputStream is, String comment, int increment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcheckin in interface BaseDocumentuuid - Node uuidis - The document content in bytes.comment - A comment for this checkin.increment - Which increment should be increased.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@Deprecated public boolean isLocked(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
NodeImpl.isLocked(String)isLocked in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionNodeImpl.isLocked(String)@Deprecated public LockInfo getLockInfo(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException
NodeImpl.getLockInfo(String)getLockInfo in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionLockException - the lock exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionNodeImpl.getLockInfo(String)public void purgeDocument(String uuid) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentpurgeDocument in interface BaseDocumentuuid - Node uuidLockException - 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 exceptionpublic void moveDocument(String uuid, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, PromotedAsRecordLockException, AutomationException, FilePlanCatalogManagerException, VersionException, UnknownException, WebserviceException
BaseDocumentmoveDocument in interface BaseDocumentuuid - Node uuiddstId - The destination folder path or its UUID.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 exceptionPromotedAsRecordLockException - the promoted as record lock exceptionAutomationException - the automation exceptionFilePlanCatalogManagerException - the file plan catalog manager exceptionVersionException - the version exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic Document copyDocument(String uuid, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcopyDocument in interface BaseDocumentuuid - Node uuiddstId - The destination folder path or its UUID.newName - The new name to the documentItemExistsException - 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 exceptionpublic long getVersionHistorySize(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetVersionHistorySize in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic boolean isValidDocument(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentisValidDocument in interface BaseDocumentuuid - Node uuidPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic String getDocumentPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetDocumentPath in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<String> getDetectedLanguages() throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetDetectedLanguages in interface BaseDocumentAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic Document extendedDocumentCopy(String uuid, String dstId, String name, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentextendedDocumentCopy in interface BaseDocumentuuid - Node uuid.dstId - The destination folder path or its UUID.name - The new document name.categories - The categorieskeywords - The keywordspropertyGroups - The propertyGroupsnotes - The notessecurity - The securityItemExistsException - 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 exceptionpublic String getExtractedText(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetExtractedText in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void setExtractedText(String uuid, InputStream is) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseDocumentsetExtractedText in interface BaseDocumentuuid - the uuidis - the isAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic InputStream getThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetThumbnail in interface BaseDocumentuuid - Node uuidtype - ThumbnailTypePathNotFoundException - 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 exceptionpublic Document createDocumentFromTemplate(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
BaseDocumentcreateDocumentFromTemplate in interface BaseDocumentuuid - the uuiddstPath - the dst pathcategories - the categorieskeywords - the keywordsnotes - the notessecurity - the securityproperties - the propertiesPathNotFoundException - 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 exceptionpublic void updateDocumentFromTemplate(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
BaseDocumentupdateDocumentFromTemplate in interface BaseDocumentuuid - Node uuiddstId - The destination folder pathproperties - The property values.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 exceptionpublic List<Document> getCheckedOut() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseDocumentgetCheckedOut in interface BaseDocumentAccessDeniedException - the access denied exceptionPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionpublic void setDocumentDescription(String uuid, String description) throws LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, WebserviceException, UnknownException
BaseDocumentsetDocumentDescription in interface BaseDocumentuuid - Node uuiddescription - The descriptionLockException - 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 exceptionpublic WizardNode createWizardDocument(String uuid, String name, long nodeClass, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseDocumentcreateWizardDocument in interface BaseDocumentuuid - Node uuidname - The document name.nodeClass - The nodeClassis - The document content in bytes.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 exceptionpublic int getNumberOfPages(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseDocumentgetNumberOfPages in interface BaseDocumentuuid - Node uuidAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionPrincipalAdapterException - the principal adapter exceptionpublic String getPageAsImage(String uuid, int pageNumber, int maxWidth, int maxHeight) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseDocumentgetPageAsImage in interface BaseDocumentuuid - Node uuidpageNumber - The page numbermaxWidth - The maximum widthmaxHeight - The maximum heightAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionPrincipalAdapterException - the principal adapter exceptionpublic InputStream getDocumentPdf(String uuid) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentgetDocumentPdf in interface BaseDocumentuuid - Node uuidPathNotFoundException - 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 exceptionpublic boolean isAttachment(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseDocumentisAttachment in interface BaseDocumentuuid - Node uuidPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionCopyright © 2025 Open Knowledge Management System S.L.. All Rights Reserved.