public class DocumentImpl extends ClientImpl implements BaseDocument, Serializable
| Constructor and Description |
|---|
DocumentImpl(String host)
DocumentImpl
|
getClient, getClient, resource, resourcepublic DocumentImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Document createDocument(String uuid, File file) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
createDocument in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic Document createDocument(String uuid, String name, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
createDocument in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic void deleteDocument(String uuid) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException
public Document getDocumentProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentProperties in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContent(String uuid) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContent in interface BaseDocumentRepositoryExceptionIOExceptionPathNotFoundExceptionAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContentByVersion(String uuid, String versionName) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContentByVersion in interface BaseDocumentRepositoryExceptionIOExceptionPathNotFoundExceptionAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Document> getDocumentChildren(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentChildren in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Document renameDocument(String uuid, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, AutomationException, UnknowException, WebserviceException
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, UnknowException, WebserviceException
public void setLanguage(String uuid, String lang) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknowException, WebserviceException
public void setDocumentTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknowException, WebserviceException
public void setDocumentNodeClass(String uuid, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknowException, WebserviceException
public void checkout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
checkout in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void cancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
cancelCheckout in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void forceCancelCheckout(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
public boolean isCheckedOut(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isCheckedOut in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Version checkin(String uuid, InputStream is, String comment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
checkin in interface BaseDocumentFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic Version checkin(String uuid, InputStream is, String comment, int increment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
checkin in interface BaseDocumentFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic LockInfo lockDocument(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
lockDocument in interface BaseDocumentLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void unlockDocument(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
unlockDocument in interface BaseDocumentLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void forceUnlockDocument(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
public boolean isLocked(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
isLocked in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic LockInfo getLockInfo(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
getLockInfo in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void purgeDocument(String uuid) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException
public void moveDocument(String uuid, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, PromotedAsRecordLockException, AutomationException, FilePlanCatalogManagerException, VersionException, UnknowException, WebserviceException
moveDocument in interface BaseDocumentLockExceptionPathNotFoundExceptionItemExistsExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionPromotedAsRecordLockExceptionAutomationExceptionFilePlanCatalogManagerExceptionVersionExceptionUnknowExceptionWebserviceExceptionpublic Document copyDocument(String uuid, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, UserQuotaExceededException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
copyDocument in interface BaseDocumentItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionUserQuotaExceededExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic long getVersionHistorySize(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getVersionHistorySize in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic boolean isValidDocument(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isValidDocument in interface BaseDocumentPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic String getDocumentPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getDocumentPath in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<String> getDetectedLanguages() throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getDetectedLanguages in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Document extendedDocumentCopy(String uuid, String dstId, String name, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
public String getExtractedText(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, IOException, DatabaseException, UnknowException, WebserviceException
getExtractedText in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionIOExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getThumbnail(String uuid, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, IOException, UnknowException, WebserviceException
public Document createDocumentFromTemplate(String uuid, String dstPath, String language, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, DocumentException, TemplateException, DocumentTemplateException, ConversionException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknowException, WebserviceException
createDocumentFromTemplate in interface BaseDocumentPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionAutomationExceptionFilePlanExceptionPromotedAsRecordLockExceptionParseExceptionNoSuchGroupExceptionNoSuchPropertyExceptionLockExceptionValidationFormExceptionClassNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void updateDocumentFromTemplate(String uuid, String dstId, Map<String,String> properties) throws DocumentException, TemplateException, DocumentTemplateException, ConversionException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, ParseException, AccessDeniedException, RepositoryException, IOException, DatabaseException, AutomationException, PromotedAsRecordLockException, NoSuchGroupException, NoSuchPropertyException, ValidationFormException, ClassNotFoundException, UnknowException, WebserviceException
updateDocumentFromTemplate in interface BaseDocumentDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionAutomationExceptionPromotedAsRecordLockExceptionNoSuchGroupExceptionNoSuchPropertyExceptionValidationFormExceptionClassNotFoundExceptionUnknowExceptionWebserviceExceptionpublic String getAnnotations(String uuid, String versionName) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getAnnotations in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getDifferences(String uuid, String versionName1, String versionName2) throws IOException, RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, AutomationException, ConversionException, TemplateException, InterruptedException, WebserviceException, UnknowException
public List<Document> getCheckedOut() throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, WebserviceException, UnknowException
getCheckedOut in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionpublic void setDocumentDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknowException
setDocumentDispositionStage in interface BaseDocumentPathNotFoundExceptionAccessDeniedExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionpublic void setDocumentDescription(String uuid, String description) throws LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, WebserviceException, UnknowException
public WizardNode createWizardDocument(String uuid, String name, long nodeClass, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
createWizardDocument in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionPromotedAsRecordLockExceptionUnknowExceptionWebserviceExceptionpublic boolean isOCRDataCaptureSupported(String uuid) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
isOCRDataCaptureSupported in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic OCRRecognise recognize(String uuid) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
recognize in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic void captureData(String uuid, long templateId) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
captureData in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic int getNumberOfPages(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, PrincipalAdapterException
getNumberOfPages in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionPrincipalAdapterExceptionpublic String getPageAsImage(String uuid, int pageNumber, int maxWidth, int maxHeight) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, PrincipalAdapterException
getPageAsImage in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionPrincipalAdapterExceptionpublic void mergePdf(String destinationUuid, String docName, List<String> uuids) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, PrincipalAdapterException
mergePdf in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionPrincipalAdapterExceptionpublic List<String> getLiveEditRestrictedMimeTypes() throws WebserviceException, UnknowException
getLiveEditRestrictedMimeTypes in interface BaseDocumentWebserviceExceptionUnknowExceptionpublic void liveEditCheckin(String uuid, String comment, int increment) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, IOException, DatabaseException, AutomationException, PromotedAsRecordLockException, UnknowException, WebserviceException
public void liveEditSetContent(String uuid, InputStream is) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException, IOException
Copyright © 2020 Open Knowledge Management System S.L.. All Rights Reserved.