Package com.openkm.sdk4j.definition
Interface BaseNode
-
- All Known Implementing Classes:
NodeImpl
public interface BaseNodeBaseNode- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddegradeRecord(String uuid)Degrade record.voiddeleteVersion(String uuid, String versionName)Delete version.ZipDownloadEvaluationResultevaluateDownloadZip(List<String> uuids)Evaluate download zip zip download evaluation result.InputStreamexportZip(List<String> uuids, boolean withPath, boolean background)Export zip input stream.LockInfoforceLock(String uuid)Force lock node lock info.voidforceUnlock(String uuid)Force unlock node.StringgenerateDownloadToken(String uuid, boolean preview, boolean oneTimeUse, Calendar validUntil)Generate download token string.List<BreadCrumbItem>getBreadcrumb(String uuid)Gets breadcrumb.SimpleNodeBaseListgetChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes)Gets children nodes by category paginated.SimpleNodeBaseListgetChildrenNodesByCategoryPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName)Gets children nodes by category paginated.SimpleNodeBaseListgetChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes)Gets children nodes paginated.SimpleNodeBaseListgetChildrenNodesPaginated(String uuid, int offset, int limit, String filter, String orderByField, boolean orderAsc, List<Integer> filteredTypes, String pluginName)Gets children nodes paginated.RecordgetElectronicRecordInPath(String uuid)Gets electronic record in path.LockInfogetLockInfo(String uuid)Gets lock info.NodegetNodeByUuid(String uuid)Gets node by uuid.List<Node>getNodesFiltered(List<String> uuids)Gets nodes filtered.List<Version>getVersionHistory(String uuid)Gets version history.booleanhasNodesLockedByOtherUser(String uuid)Has nodes locked by other user boolean.voidimportZip(String uuid, InputStream is)Import zip.booleanisElectronicRecordPath(String uuid)Is electronic record path boolean.booleanisLocked(String uuid)Is locked boolean.LockInfolock(String uuid)Lock node lock info.PromoteAsRecordEvaluationmayBePromotedAsRecord(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.Noderestore(String uuid)Restore node.voidrestoreVersion(String uuid, String versionName)Restore version.voidsetComment(String uuid, String versionName, String comment)Sets comment.voidsubscribe(String uuid)Subscribe.voidunlock(String uuid)Unlock node.voidunsubscribe(String uuid)Unsubscribe.voidunZip(String uuid, String dstId)Un zip.
-
-
-
Method Detail
-
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
-
-