public class DocumentImpl extends ClientImpl 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
|
getClient
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 BaseDocument
IOException
UnsupportedMimeTypeException
FileSizeExceededException
UserQuotaExceededException
VirusDetectedException
ItemExistsException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
ExtensionException
AutomationException
UnknowException
WebserviceException
public Document createDocumentSimple(String docPath, InputStream is) throws IOException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknowException, WebserviceException
createDocumentSimple
in interface BaseDocument
IOException
UnsupportedMimeTypeException
FileSizeExceededException
UserQuotaExceededException
VirusDetectedException
ItemExistsException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
ExtensionException
AutomationException
UnknowException
WebserviceException
public void deleteDocument(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, UnknowException, WebserviceException
deleteDocument
in interface BaseDocument
AccessDeniedException
RepositoryException
PathNotFoundException
LockException
DatabaseException
ExtensionException
UnknowException
WebserviceException
public Document getDocumentProperties(String docId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentProperties
in interface BaseDocument
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public InputStream getContent(String docId) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContent
in interface BaseDocument
RepositoryException
IOException
PathNotFoundException
AccessDeniedException
DatabaseException
UnknowException
WebserviceException
public InputStream getContentByVersion(String docId, String versionId) throws RepositoryException, IOException, PathNotFoundException, AccessDeniedException, DatabaseException, UnknowException, WebserviceException
getContentByVersion
in interface BaseDocument
RepositoryException
IOException
PathNotFoundException
AccessDeniedException
DatabaseException
UnknowException
WebserviceException
public List<Document> getDocumentChildren(String fldId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getDocumentChildren
in interface BaseDocument
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public 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 BaseDocument
AccessDeniedException
RepositoryException
PathNotFoundException
VersionException
LockException
DatabaseException
UnknowException
WebserviceException
public void setLanguage(String docId, String lang) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
public void setTitle(String docId, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
public void setDocumentNodeClass(String docId, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
public void checkout(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
checkout
in interface BaseDocument
AccessDeniedException
RepositoryException
PathNotFoundException
LockException
DatabaseException
UnknowException
WebserviceException
public void cancelCheckout(String docId) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
cancelCheckout
in interface BaseDocument
AccessDeniedException
RepositoryException
PathNotFoundException
LockException
DatabaseException
UnknowException
WebserviceException
public 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 BaseDocument
PathNotFoundException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public 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 BaseDocument
FileSizeExceededException
UserQuotaExceededException
VirusDetectedException
LockException
VersionException
PathNotFoundException
AccessDeniedException
RepositoryException
IOException
DatabaseException
ExtensionException
AutomationException
UnknowException
WebserviceException
public List<Version> getVersionHistory(String docId) throws PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getVersionHistory
in interface BaseDocument
PathNotFoundException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public LockInfo lock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
lock
in interface BaseDocument
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void unlock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
unlock
in interface BaseDocument
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public void forceUnlock(String docId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
forceUnlock
in interface BaseDocument
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
PrincipalAdapterException
UnknowException
WebserviceException
public boolean isLocked(String docId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
isLocked
in interface BaseDocument
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public LockInfo getLockInfo(String docId) throws RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknowException, WebserviceException
getLockInfo
in interface BaseDocument
RepositoryException
PathNotFoundException
LockException
DatabaseException
UnknowException
WebserviceException
public void purgeDocument(String docId) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, UnknowException, WebserviceException
purgeDocument
in interface BaseDocument
LockException
AccessDeniedException
RepositoryException
PathNotFoundException
DatabaseException
ExtensionException
UnknowException
WebserviceException
public 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 BaseDocument
AccessDeniedException
PathNotFoundException
LockException
RepositoryException
DatabaseException
ExtensionException
UnknowException
WebserviceException
public void purgeVersionHistory(String docId) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, UnknowException, WebserviceException
purgeVersionHistory
in interface BaseDocument
AccessDeniedException
PathNotFoundException
LockException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public long getVersionHistorySize(String docId) throws RepositoryException, PathNotFoundException, DatabaseException, UnknowException, WebserviceException
getVersionHistorySize
in interface BaseDocument
RepositoryException
PathNotFoundException
DatabaseException
UnknowException
WebserviceException
public boolean isValidDocument(String docId) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
isValidDocument
in interface BaseDocument
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public String getDocumentPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getDocumentPath
in interface BaseDocument
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public List<String> getDetectedLanguages() throws RepositoryException, DatabaseException, UnknowException, WebserviceException
Copyright © 2015. All rights reserved.