public class DocumentImpl extends Object implements BaseDocument
| Constructor and Description |
|---|
DocumentImpl(String host,
String user,
String password)
DocumentImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCheckout(String docId)
cancelCheckout
|
Version |
checkin(String docId,
InputStream is,
String comment)
checkin
|
void |
checkout(String docId)
checkout
|
void |
copyDocument(String docId,
String dstId)
copy
|
Document |
createDocument(Document document,
InputStream is)
create
|
Document |
createDocumentSimple(String docPath,
InputStream is)
createSimple
|
void |
deleteDocument(String docId)
delete
|
void |
forceCancelCheckout(String docId)
forceCancelCheckout
|
void |
forceUnlock(String docId)
forceUnlock
|
InputStream |
getContent(String docId)
getContent
|
InputStream |
getContentByVersion(String docId,
String versionId)
getContentByVersion
|
List<String> |
getDetectedLanguages()
getDetectedLanguages
|
List<Document> |
getDocumentChildren(String fldId)
getChildren
|
String |
getDocumentPath(String uuid)
getPath
|
Document |
getDocumentProperties(String docId)
getProperties
|
LockInfo |
getLockInfo(String docId)
getLockInfo
|
List<Version> |
getVersionHistory(String docId)
getVersionHistory
|
long |
getVersionHistorySize(String docId)
getVersionHistorySize
|
boolean |
isCheckedOut(String docId)
isCheckedOut
|
boolean |
isLocked(String docId)
isLocked
|
boolean |
isValidDocument(String docId)
isValid
|
LockInfo |
lock(String docId)
lock
|
void |
moveDocument(String docId,
String dstId)
move
|
void |
purgeDocument(String docId)
purge
|
void |
purgeVersionHistory(String docId)
purgeVersionHistory
|
void |
renameDocument(String docId,
String newName)
rename
|
void |
restoreVersion(String docId,
String versionId)
restoreVersion
|
void |
setDocumentNodeClass(String docId,
long ncId)
setNodeClass
|
void |
setLanguage(String docId,
String lang)
setLanguage
|
void |
setProperties(Document document)
setProperties
|
void |
setTitle(String docId,
String title)
setTitle
|
void |
unlock(String docId)
unlock
|
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 AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, UnknowException, WebserviceException
deleteDocument in interface BaseDocumentAccessDeniedExceptionRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionExtensionExceptionUnknowExceptionWebserviceExceptionpublic Document getDocumentProperties(String docId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentProperties in interface BaseDocumentRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContent(String docId) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContent in interface BaseDocumentRepositoryExceptionIOExceptionPathNotFoundExceptionAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic InputStream getContentByVersion(String docId, String versionId) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContentByVersion in interface BaseDocumentRepositoryExceptionIOExceptionPathNotFoundExceptionAccessDeniedExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Document> getDocumentChildren(String fldId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentChildren in interface BaseDocumentRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void renameDocument(String docId, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, LockException, DatabaseException, 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 setTitle(String docId, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
setTitle in interface BaseDocumentVersionExceptionLockExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void setDocumentNodeClass(String docId, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
setDocumentNodeClass 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 PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isCheckedOut in interface BaseDocumentPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic 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 List<Version> getVersionHistory(String docId) throws PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getVersionHistory in interface BaseDocumentPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic 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 RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
isLocked in interface BaseDocumentRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic LockInfo getLockInfo(String docId) throws RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
getLockInfo in interface BaseDocumentRepositoryExceptionPathNotFoundExceptionLockExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic 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) 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, UnknowException, WebserviceException
restoreVersion in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionLockExceptionRepositoryExceptionDatabaseExceptionExtensionExceptionUnknowExceptionWebserviceExceptionpublic void purgeVersionHistory(String docId) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, UnknowException, WebserviceException
purgeVersionHistory in interface BaseDocumentAccessDeniedExceptionPathNotFoundExceptionLockExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic long getVersionHistorySize(String docId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getVersionHistorySize in interface BaseDocumentRepositoryExceptionPathNotFoundExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic boolean isValidDocument(String docId) 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 RepositoryException, DatabaseException, UnknowException, WebserviceException
getDetectedLanguages in interface BaseDocumentRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionCopyright © 2015 Open Knowledge Management System S.L.. All rights reserved.