Package com.openkm.sdk4j.definition
Interface BaseNode
- All Known Implementing Classes:
NodeImpl
public interface BaseNode
BaseNode
- Author:
- sochoa
-
Method Summary
Modifier and TypeMethodDescriptionvoiddegradeRecord(String uuid) Degrade record.voiddeleteVersion(String uuid, String versionName) Delete version.evaluateDownloadZip(List<String> uuids) Evaluate download zip zip download evaluation result.Export zip input stream.Force lock node lock info.voidforceUnlock(String uuid) Force unlock node.generateDownloadToken(String uuid, boolean preview, boolean oneTimeUse, Calendar validUntil) Generate download token string.getBreadcrumb(String uuid) Gets breadcrumb.getChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes) Gets children nodes by category paginated.getChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName) Gets children nodes by category paginated.getChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes) Gets children nodes paginated.getChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName) Gets children nodes paginated.Gets electronic record in path.getLockInfo(String uuid) Gets lock info.getNodeByUuid(String uuid) Gets node by uuid.getNodesFiltered(List<String> uuids) Gets nodes filtered.getVersionHistory(String uuid) Gets version history.booleanHas nodes locked by other user boolean.voidimportZip(String uuid, InputStream is) Import zip.booleanisElectronicRecordPath(String uuid) Is electronic record path boolean.booleanIs locked boolean.Lock node lock info.mayBePromotedAsRecord(String uuid, boolean fullEvaluation) May be promoted as record promote as record evaluation.voidpromoteAsRecord(String uuid) Promote as record.voidpurgeVersionHistory(String uuid) Purge version history.voidrenameVersion(String uuid, String versionName, String newName) Rename version.Restore node.voidrestoreVersion(String uuid, String versionName) Restore version.voidsetComment(String uuid, String versionName, String comment) Sets comment.voidSubscribe.voidUnlock node.voidunsubscribe(String uuid) Unsubscribe.voidUn zip.
-
Method Details
-
getNodeByUuid
Node getNodeByUuid(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Gets node by uuid.- Parameters:
uuid- the uuid- Returns:
- the node by uuid
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getVersionHistory
List<Version> getVersionHistory(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Gets version history.- Parameters:
uuid- the uuid- Returns:
- the version history
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
restoreVersion
void restoreVersion(String uuid, String versionName) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException Restore version.- Parameters:
uuid- the uuidversionName- the version name- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
renameVersion
void renameVersion(String uuid, String versionName, String newName) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException Rename version.- Parameters:
uuid- the uuidversionName- the version namenewName- the new name- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
deleteVersion
void deleteVersion(String uuid, String versionName) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException Delete version.- Parameters:
uuid- the uuidversionName- the version name- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
purgeVersionHistory
void purgeVersionHistory(String uuid) throws AccessDeniedException, PathNotFoundException, LockException, RepositoryException, DatabaseException, ExtensionException, UnknownException, WebserviceException Purge version history.- Parameters:
uuid- the uuid- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
mayBePromotedAsRecord
PromoteAsRecordEvaluation mayBePromotedAsRecord(String uuid, boolean fullEvaluation) throws AccessDeniedException, PathNotFoundException, DatabaseException, FilePlanRecordManagerException, UnknownException, WebserviceException May be promoted as record promote as record evaluation.- Parameters:
uuid- the uuidfullEvaluation- the full evaluation- Returns:
- the promote as record evaluation
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionFilePlanRecordManagerException- the file plan record manager exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
promoteAsRecord
void promoteAsRecord(String uuid) throws PathNotFoundException, DatabaseException, FilePlanRecordManagerException, PromoteAsRecordException, UnknownException, WebserviceException Promote as record.- Parameters:
uuid- the uuid- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionFilePlanRecordManagerException- the file plan record manager exceptionPromoteAsRecordException- the promote as record exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
degradeRecord
void degradeRecord(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, LockException, UnknownException, WebserviceException Degrade record.- Parameters:
uuid- the uuid- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionLockException- the lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isElectronicRecordPath
boolean isElectronicRecordPath(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException Is electronic record path boolean.- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getElectronicRecordInPath
Record getElectronicRecordInPath(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, RepositoryException, WebserviceException, UnknownException Gets electronic record in path.- Parameters:
uuid- the uuid- Returns:
- the electronic record in path
- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getChildrenNodesPaginated
SimpleNodeBaseList getChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Gets children nodes paginated.- Parameters:
uuid- the uuidoffset- the offsetlimit- the limitfilter- the filterorderByField- the order by fieldorderAsc- the order ascfilteredTypes- the filtered types- Returns:
- the children nodes paginated
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildrenNodesPaginated
SimpleNodeBaseList getChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Gets children nodes paginated.- Parameters:
uuid- the uuidoffset- the offsetlimit- the limitfilter- the filterorderByField- the order by fieldorderAsc- the order ascfilteredTypes- the filtered typespluginName- the plugin name- Returns:
- the children nodes paginated
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildrenNodesByCategoryPaginated
SimpleNodeBaseList getChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Gets children nodes by category paginated.- Parameters:
uuid- the uuidoffset- the offsetlimit- the limitfilter- the filterorderByField- the order by fieldorderAsc- the order ascfilteredTypes- the filtered types- Returns:
- the children nodes by category paginated
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildrenNodesByCategoryPaginated
SimpleNodeBaseList getChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Gets children nodes by category paginated.- Parameters:
uuid- the uuidoffset- the offsetlimit- the limitfilter- the filterorderByField- the order by fieldorderAsc- the order ascfilteredTypes- the filtered typespluginName- the plugin name- Returns:
- the children nodes by category paginated
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getBreadcrumb
List<BreadCrumbItem> getBreadcrumb(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, RepositoryException, WebserviceException, UnknownException Gets breadcrumb.- Parameters:
uuid- the uuid- Returns:
- the breadcrumb
- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
subscribe
void subscribe(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, RepositoryException, WebserviceException, UnknownException, LockException Subscribe.- Parameters:
uuid- the uuid- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionLockException- the lock exception
-
unsubscribe
void unsubscribe(String uuid) throws PathNotFoundException, DatabaseException, AccessDeniedException, RepositoryException, WebserviceException, UnknownException, LockException Unsubscribe.- Parameters:
uuid- the uuid- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionLockException- the lock exception
-
importZip
void importZip(String uuid, InputStream is) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException Import zip.- Parameters:
uuid- the uuidis- the is- Throws:
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 exception
-
unZip
void unZip(String uuid, String dstId) throws UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException Un zip.- Parameters:
uuid- the uuiddstId- the dst id- Throws:
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 exception
-
exportZip
InputStream exportZip(List<String> uuids, boolean withPath, boolean background) throws PathNotFoundException, DatabaseException, AccessDeniedException, RepositoryException, WebserviceException, UnknownException, LockException, ConversionException Export zip input stream.- Parameters:
uuids- the uuidswithPath- the withPathbackground- the background- Returns:
- the input stream
- Throws:
PathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionLockException- the lock exceptionConversionException- the conversion exception
-
getNodesFiltered
List<Node> getNodesFiltered(List<String> uuids) throws WebserviceException, UnsupportedEncodingException, UnknownException Gets nodes filtered.- Parameters:
uuids- the uuids- Returns:
- the nodes filtered
- Throws:
WebserviceException- the webservice exceptionUnsupportedEncodingException- the unsupported encoding exceptionUnknownException- the unknown exception
-
evaluateDownloadZip
ZipDownloadEvaluationResult evaluateDownloadZip(List<String> uuids) throws WebserviceException, UnsupportedEncodingException, UnknownException Evaluate download zip zip download evaluation result.- Parameters:
uuids- the uuids- Returns:
- the zip download evaluation result
- Throws:
WebserviceException- the webservice exceptionUnsupportedEncodingException- the unsupported encoding exceptionUnknownException- the unknown exception
-
generateDownloadToken
String generateDownloadToken(String uuid, boolean preview, boolean oneTimeUse, Calendar validUntil) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Generate download token string.- Parameters:
uuid- the uuidpreview- the previewoneTimeUse- when true the token can only be used one timevalidUntil- when set the token will be valid until this date- Returns:
- the string
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
restore
Node restore(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Restore node.- Parameters:
uuid- the uuid- Returns:
- the node
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
hasNodesLockedByOtherUser
boolean hasNodesLockedByOtherUser(String uuid) throws WebserviceException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException Has nodes locked by other user boolean.- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
WebserviceException- the webservice exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
lock
LockInfo lock(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Lock node lock info.- Parameters:
uuid- the uuid- Returns:
- the lock info
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
forceLock
LockInfo forceLock(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Force lock node lock info.- Parameters:
uuid- the uuid- Returns:
- the lock info
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
unlock
void unlock(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Unlock node.- Parameters:
uuid- the uuid- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
forceUnlock
void forceUnlock(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Force unlock node.- Parameters:
uuid- the uuid- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isLocked
boolean isLocked(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Is locked boolean.- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getLockInfo
LockInfo getLockInfo(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, UnknownException, WebserviceException Gets lock info.- Parameters:
uuid- the uuid- Returns:
- the lock info
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionLockException- the lock exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setComment
void setComment(String uuid, String versionName, String comment) throws VersionException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException, PathNotFoundException Sets comment.- Parameters:
uuid- the uuidversionName- the version namecomment- the comment- Throws:
VersionException- the version exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPathNotFoundException- the path not found exception
-