public class RecordImpl extends ClientImpl implements BaseRecord, Serializable
Constructor and Description |
---|
RecordImpl(String host)
RecordImpl
|
Modifier and Type | Method and Description |
---|---|
Record |
copyRecord(String uuid,
String dstId,
String newName)
Copy record record.
|
Record |
createRecord(String uuid,
String name,
String title,
long nodeClass)
Create record record.
|
Record |
createRecordFromTemplate(String uuid,
String dstPath,
boolean categories,
boolean keywords,
boolean notes,
Map<String,String> properties)
Create record from template record.
|
Record |
createRecordFromTemplate(String uuid,
String dstPath,
String language,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean wiki,
Map<String,String> properties)
Deprecated.
As of sdk4j 3.16, replaced by
createRecordFromTemplate(String, String, boolean, boolean, boolean, Map) |
WizardNode |
createWizardRecord(String uuid,
String name,
String title,
long nodeClass)
Create wizard record wizard node.
|
void |
deleteRecord(String uuid)
Delete record.
|
Record |
extendedRecordCopy(String uuid,
String dstId,
String newName,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean security)
Extended record copy record.
|
Record |
extendedRecordCopy(String uuid,
String dstId,
String newName,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean wiki,
boolean security)
Deprecated.
As of sdk4j 3.13, replaced by
extendedRecordCopy(String, String, String, boolean, boolean, boolean, boolean, boolean) |
LockInfo |
forceLockRecord(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.forceLockNode(String) |
void |
forceUnlockRecord(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.forceUnlockNode(String) |
List<Record> |
getRecordChildren(String uuid)
Gets record children.
|
String |
getRecordPath(String uuid)
Gets record path.
|
Record |
getRecordProperties(String uuid)
Gets record properties.
|
boolean |
isValidRecord(String uuid)
Is valid record boolean.
|
LockInfo |
lockRecord(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.lockNode(String) |
void |
moveRecord(String uuid,
String dstId)
Move record.
|
void |
purgeRecord(String uuid)
Purge record.
|
Record |
renameRecord(String uuid,
String newName)
Rename record record.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setRecordDescription(String uuid,
String description)
Sets record description.
|
void |
setRecordDispositionStage(String uuid,
long stage)
Sets record disposition stage.
|
void |
setRecordNodeClass(String uuid,
long ncId)
Sets record node class.
|
void |
setRecordTitle(String uuid,
String title)
Sets record title.
|
void |
unlockRecord(String uuid)
Deprecated.
As of sdk4j 3.11, replaced by
NodeImpl.unlockNode(String) |
getClient, resource, resource
public RecordImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Record createRecord(String uuid, String name, String title, long nodeClass) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
createRecord
in interface BaseRecord
uuid
- the uuidname
- the nametitle
- the titlenodeClass
- the node classAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Record getRecordProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseRecord
getRecordProperties
in interface BaseRecord
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void deleteRecord(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
deleteRecord
in interface BaseRecord
uuid
- the uuidAutomationException
- the automation exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void purgeRecord(String uuid) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
purgeRecord
in interface BaseRecord
uuid
- the uuidLockException
- the lock exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Record renameRecord(String uuid, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
renameRecord
in interface BaseRecord
uuid
- the uuidnewName
- the new nameAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void moveRecord(String uuid, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, PromotedAsRecordLockException, FilePlanCatalogManagerException, AutomationException, VersionException, UnknownException, WebserviceException
BaseRecord
moveRecord
in interface BaseRecord
uuid
- the uuiddstId
- the dst idLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionFilePlanCatalogManagerException
- the file plan catalog manager exceptionAutomationException
- the automation exceptionVersionException
- the version exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Record copyRecord(String uuid, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
copyRecord
in interface BaseRecord
uuid
- the uuiddstId
- the dst idnewName
- the new nameItemExistsException
- 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 exceptionpublic boolean isValidRecord(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseRecord
isValidRecord
in interface BaseRecord
uuid
- the uuidPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<Record> getRecordChildren(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseRecord
getRecordChildren
in interface BaseRecord
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exception@Deprecated public LockInfo lockRecord(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
NodeImpl.lockNode(String)
lockRecord
in interface BaseRecord
uuid
- the uuidLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionNodeImpl.lockNode(String)
@Deprecated public LockInfo forceLockRecord(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
NodeImpl.forceLockNode(String)
forceLockRecord
in interface BaseRecord
uuid
- the uuidLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionNodeImpl.forceLockNode(String)
@Deprecated public void unlockRecord(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
NodeImpl.unlockNode(String)
unlockRecord
in interface BaseRecord
uuid
- the uuidLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionNodeImpl.unlockNode(String)
@Deprecated public void forceUnlockRecord(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
NodeImpl.forceUnlockNode(String)
forceUnlockRecord
in interface BaseRecord
uuid
- the uuidLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionNodeImpl.forceUnlockNode(String)
public void setRecordTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
setRecordTitle
in interface BaseRecord
uuid
- the uuidtitle
- the titleVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void setRecordNodeClass(String uuid, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
setRecordNodeClass
in interface BaseRecord
uuid
- the uuidncId
- the nc idVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic String getRecordPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseRecord
getRecordPath
in interface BaseRecord
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void setRecordDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
BaseRecord
setRecordDispositionStage
in interface BaseRecord
uuid
- the uuidstage
- the stagePathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic void setRecordDescription(String uuid, String description) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, WebserviceException, UnknownException
BaseRecord
setRecordDescription
in interface BaseRecord
uuid
- the uuiddescription
- the descriptionVersionException
- the version exceptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic WizardNode createWizardRecord(String uuid, String name, String title, long nodeClass) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException, PromotedAsRecordLockException, WebserviceException, ExtensionException, UnknownException
BaseRecord
createWizardRecord
in interface BaseRecord
uuid
- the uuidname
- the nametitle
- the titlenodeClass
- the node classItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionWebserviceException
- the webservice exceptionExtensionException
- the extension exceptionUnknownException
- the unknown exceptionpublic Record extendedRecordCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseRecord
extendedRecordCopy
in interface BaseRecord
uuid
- the uuiddstId
- the dst idnewName
- the new namecategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the notessecurity
- the securityItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exception@Deprecated public Record extendedRecordCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki, boolean security) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UserQuotaExceededException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
extendedRecordCopy(String, String, String, boolean, boolean, boolean, boolean, boolean)
extendedRecordCopy
in interface BaseRecord
uuid
- the uuiddstId
- the dst idnewName
- the new namecategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the noteswiki
- the wikisecurity
- the securityItemExistsException
- the item exists exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUserQuotaExceededException
- the user quota exceeded exceptionAutomationException
- the automation exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionextendedRecordCopy(String, String, String, boolean, boolean, boolean, boolean, boolean)
public Record createRecordFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, TemplateException, DocumentTemplateException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
BaseRecord
createRecordFromTemplate
in interface BaseRecord
uuid
- the uuiddstPath
- the dst pathcategories
- the categorieskeywords
- the keywordsnotes
- the notesproperties
- the propertiesPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionTemplateException
- the template exceptionDocumentTemplateException
- the document template exceptionItemExistsException
- the item exists exceptionAutomationException
- the automation exceptionFilePlanException
- the file plan exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionParseException
- the parse exceptionNoSuchGroupException
- the no such group exceptionNoSuchPropertyException
- the no such property exceptionLockException
- the lock exceptionValidationFormException
- the validation form exceptionClassNotFoundException
- the class not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exception@Deprecated public Record createRecordFromTemplate(String uuid, String dstPath, String language, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean wiki, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, TemplateException, DocumentTemplateException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
createRecordFromTemplate(String, String, boolean, boolean, boolean, Map)
createRecordFromTemplate
in interface BaseRecord
uuid
- the uuiddstPath
- the dst pathlanguage
- the languagecategories
- the categorieskeywords
- the keywordspropertyGroups
- the property groupsnotes
- the noteswiki
- the wikiproperties
- the propertiesPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionTemplateException
- the template exceptionDocumentTemplateException
- the document template exceptionItemExistsException
- the item exists exceptionAutomationException
- the automation exceptionFilePlanException
- the file plan exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionParseException
- the parse exceptionNoSuchGroupException
- the no such group exceptionNoSuchPropertyException
- the no such property exceptionLockException
- the lock exceptionValidationFormException
- the validation form exceptionClassNotFoundException
- the class not found exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptioncreateRecordFromTemplate(String, String, boolean, boolean, boolean, Map)
Copyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.