public class DocumentImpl extends ClientImpl implements BaseDocument
| Constructor and Description |
|---|
DocumentImpl(String host,
String user,
String password,
BeanHelper beanHelper)
DocumentImpl
|
getClientpublic DocumentImpl(String host, String user, String password, BeanHelper beanHelper)
public Document createDocument(Document document, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
createDocument in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic Document createDocumentSimple(String docPath, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
createDocumentSimple in interface BaseDocumentIOExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic void deleteDocument(String docId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, UnknowException, WebserviceException
public Document getDocumentProperties(String docId) throws RepositoryException, AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentProperties in interface BaseDocumentRepositoryExceptionAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContent(String docId) throws RepositoryException, AccessDeniedException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContent in interface BaseDocumentRepositoryExceptionAccessDeniedExceptionIOExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContentByVersion(String docId, String versionId) throws RepositoryException, AccessDeniedException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContentByVersion in interface BaseDocumentRepositoryExceptionAccessDeniedExceptionIOExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Document> getDocumentChildren(String fldId) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentChildren in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Document renameDocument(String docId, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, LockException, DatabaseException, AutomationException, ExtensionException, UnknowException, WebserviceException
public void setProperties(Document document) throws AccessDeniedException, RepositoryException, PathNotFoundException, VersionException, LockException, DatabaseException, UnknowException, WebserviceException
setProperties in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionVersionExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void setLanguage(String docId, String lang) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
setLanguage in interface BaseDocumentVersionExceptionLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void setDocumentTitle(String docId, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
setDocumentTitle in interface BaseDocumentVersionExceptionLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void checkout(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
checkout in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void cancelCheckout(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
cancelCheckout in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void forceCancelCheckout(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
public boolean isCheckedOut(String docId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isCheckedOut in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Version checkin(String docId, InputStream is, String comment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
checkin in interface BaseDocumentFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic Version checkin(String docId, InputStream is, String comment, int increment) throws FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
checkin in interface BaseDocumentFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionExtensionExceptionAutomationExceptionUnknowExceptionWebserviceExceptionpublic List<Version> getVersionHistory(String docId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getVersionHistory in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic LockInfo lock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
lock in interface BaseDocumentLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void unlock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
unlock in interface BaseDocumentLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void forceUnlock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
forceUnlock in interface BaseDocumentLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic boolean isLocked(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
isLocked in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic LockInfo getLockInfo(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
getLockInfo in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void purgeDocument(String docId) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, UnknowException, WebserviceException
purgeDocument in interface BaseDocumentLockExceptionAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionExtensionExceptionUnknowExceptionWebserviceExceptionpublic void moveDocument(String docId, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
public void copyDocument(String docId, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, UserQuotaExceededException, ExtensionException, AutomationException, UnknowException, WebserviceException
public void restoreVersion(String docId, String versionId) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
public void purgeVersionHistory(String docId) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, UnknowException, WebserviceException
purgeVersionHistory in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionLockExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic long getVersionHistorySize(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getVersionHistorySize in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic boolean isValidDocument(String docId) throws AccessDeniedException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isValidDocument in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic 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 void extendedDocumentCopy(String docId, String dstId, String name, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, UserQuotaExceededException, AutomationException, UnknowException, WebserviceException
public String getExtractedText(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, IOException, DatabaseException, UnknowException, WebserviceException
getExtractedText in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionIOExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getThumbnail(String docId, ThumbnailType type) throws PathNotFoundException, AccessDeniedException, ConversionException, AutomationException, RepositoryException, DatabaseException, IOException, UnknowException, WebserviceException
public Document createFromTemplate(String docId, String dstPath, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki, List<FormElement> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, IOException, DatabaseException, DocumentException, TemplateException, DocumentTemplateException, ConversionException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, AutomationException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, UnknowException, WebserviceException
createFromTemplate in interface BaseDocumentPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionAutomationExceptionParseExceptionNoSuchGroupExceptionNoSuchPropertyExceptionLockExceptionUnknowExceptionWebserviceExceptionpublic Document createFromTemplateSimple(String docId, 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, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, UnknowException, WebserviceException
createFromTemplateSimple in interface BaseDocumentPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionUnsupportedMimeTypeExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionItemExistsExceptionAutomationExceptionParseExceptionNoSuchGroupExceptionNoSuchPropertyExceptionLockExceptionUnknowExceptionWebserviceExceptionpublic Document updateFromTemplate(String docId, String dstId, List<FormElement> properties) throws DocumentException, TemplateException, DocumentTemplateException, ConversionException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, ParseException, AccessDeniedException, RepositoryException, IOException, DatabaseException, AutomationException, NoSuchGroupException, NoSuchPropertyException, UnknowException, WebserviceException
updateFromTemplate in interface BaseDocumentDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionIOExceptionDatabaseExceptionAutomationExceptionNoSuchGroupExceptionNoSuchPropertyExceptionUnknowExceptionWebserviceExceptionpublic Document updateFromTemplateSimple(String docId, String dstId, Map<String,String> properties) throws AccessDeniedException, DocumentException, TemplateException, DocumentTemplateException, ConversionException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, LockException, VersionException, PathNotFoundException, ParseException, AccessDeniedException, RepositoryException, IOException, DatabaseException, AutomationException, NoSuchGroupException, NoSuchPropertyException, UnknowException, WebserviceException
updateFromTemplateSimple in interface BaseDocumentAccessDeniedExceptionDocumentExceptionTemplateExceptionDocumentTemplateExceptionConversionExceptionFileSizeExceededExceptionUserQuotaExceededExceptionVirusDetectedExceptionLockExceptionVersionExceptionPathNotFoundExceptionParseExceptionRepositoryExceptionIOExceptionDatabaseExceptionAutomationExceptionNoSuchGroupExceptionNoSuchPropertyExceptionUnknowExceptionWebserviceExceptionpublic String getAnnotations(String docId, String verName) throws AccessDeniedException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getAnnotations in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getDifferences(String docId, String v1, String v2) 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 BaseDocumentAccessDeniedExceptionPathNotFoundExceptionRepositoryExceptionDatabaseExceptionWebserviceExceptionUnknowExceptionCopyright © 2018 Open Knowledge Management System S.L.. All Rights Reserved.