Package com.openkm.sdk4j.impl
Class RecordImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.RecordImpl
-
- All Implemented Interfaces:
BaseRecord,Serializable
public class RecordImpl extends ClientImpl implements BaseRecord, Serializable
RecordImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordImpl(String host)RecordImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Recordcopy(String uuid, String dstId, String newName)Copy record record.Recordcreate(String uuid, String name, String title, long nodeClass)Create record record.RecordcreateFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, boolean propertyGroups, boolean security, Map<String,String> properties)Create from template record.RecordcreateFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, Map<String,String> properties)Deprecated.As of sdk4j 4.3, replaced bycreateFromTemplate(String, String, boolean, boolean, boolean, boolean, boolean, Map)voidcreateMissingRecords(String recPath)Create missing records.WizardNodecreateWizard(String uuid, String name, String title, long nodeClass)Create wizard record wizard node.voiddelete(String uuid)Delete record.RecordextendedCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security)Extended record copy record.List<Record>getChildren(String uuid)Gets record children.StringgetPath(String uuid)Gets record path.RecordgetProperties(String uuid)Gets record properties.booleanisValid(String uuid)Is valid record boolean.voidmove(String uuid, String dstId)Move record.voidpurge(String uuid)Purge record.Recordrename(String uuid, String newName)Rename record.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenvoidsetDescription(String uuid, String description)Sets record description.voidsetDispositionStage(String uuid, long stage)Sets record disposition stage.voidsetNodeClass(String uuid, long ncId)Sets record node class.voidsetTitle(String uuid, String title)Sets record title.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
RecordImpl
public RecordImpl(String host)
RecordImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
create
public Record create(String uuid, String name, String title, long nodeClass) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordCreate record record.- Specified by:
createin interfaceBaseRecord- Parameters:
uuid- the uuidname- the nametitle- the titlenodeClass- the node class- Returns:
- the record
- Throws:
AccessDeniedException- 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 exception
-
getProperties
public Record getProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseRecordGets record properties.- Specified by:
getPropertiesin interfaceBaseRecord- Parameters:
uuid- the uuid- Returns:
- the record properties
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
delete
public void delete(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordDelete record.- Specified by:
deletein interfaceBaseRecord- Parameters:
uuid- the uuid- Throws:
AutomationException- 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 exception
-
purge
public void purge(String uuid) throws LockException, AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordPurge record.- Specified by:
purgein interfaceBaseRecord- Parameters:
uuid- the uuid- Throws:
LockException- 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 exception
-
rename
public Record rename(String uuid, String newName) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordRename record.- Specified by:
renamein interfaceBaseRecord- Parameters:
uuid- the uuidnewName- the new name- Returns:
- the record
- Throws:
AccessDeniedException- 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 exception
-
move
public void move(String uuid, String dstId) throws LockException, PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, PromotedAsRecordLockException, FilePlanCatalogManagerException, AutomationException, VersionException, UnknownException, WebserviceException
Description copied from interface:BaseRecordMove record.- Specified by:
movein interfaceBaseRecord- Parameters:
uuid- the uuiddstId- the dst id- Throws:
LockException- 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 exception
-
copy
public Record copy(String uuid, String dstId, String newName) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordCopy record record.- Specified by:
copyin interfaceBaseRecord- Parameters:
uuid- the uuiddstId- the dst idnewName- the new name- Returns:
- the record
- Throws:
ItemExistsException- 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
-
isValid
public boolean isValid(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseRecordIs valid record boolean.- Specified by:
isValidin interfaceBaseRecord- Parameters:
uuid- the uuid- Returns:
- the boolean
- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildren
public List<Record> getChildren(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseRecordGets record children.- Specified by:
getChildrenin interfaceBaseRecord- Parameters:
uuid- the uuid- Returns:
- the record children
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setTitle
public void setTitle(String uuid, String title) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordSets record title.- Specified by:
setTitlein interfaceBaseRecord- Parameters:
uuid- the uuidtitle- the title- Throws:
VersionException- 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 exception
-
setNodeClass
public void setNodeClass(String uuid, long ncId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordSets record node class.- Specified by:
setNodeClassin interfaceBaseRecord- Parameters:
uuid- the uuidncId- the nc id- Throws:
VersionException- 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 exception
-
setDispositionStage
public void setDispositionStage(String uuid, long stage) throws PathNotFoundException, AccessDeniedException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseRecordSets record disposition stage.- Specified by:
setDispositionStagein interfaceBaseRecord- Parameters:
uuid- the uuidstage- the stage- Throws:
PathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getPath
public String getPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BaseRecordGets record path.- Specified by:
getPathin interfaceBaseRecord- Parameters:
uuid- the uuid- Returns:
- the record path
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
setDescription
public void setDescription(String uuid, String description) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, WebserviceException, UnknownException
Description copied from interface:BaseRecordSets record description.- Specified by:
setDescriptionin interfaceBaseRecord- Parameters:
uuid- the uuiddescription- the description- Throws:
VersionException- 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 exception
-
extendedCopy
public Record extendedCopy(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
Description copied from interface:BaseRecordExtended record copy record.- Specified by:
extendedCopyin interfaceBaseRecord- Parameters:
uuid- the uuiddstId- the dst idnewName- the new namecategories- the categorieskeywords- the keywordspropertyGroups- the property groupsnotes- the notessecurity- the security- Returns:
- the record
- Throws:
ItemExistsException- 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
-
createFromTemplate
public Record createFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, boolean propertyGroups, boolean security, Map<String,String> properties) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, TemplateException, DocumentTemplateException, ItemExistsException, AutomationException, FilePlanException, PromotedAsRecordLockException, ParseException, NoSuchGroupException, NoSuchPropertyException, LockException, ValidationFormException, ClassNotFoundException, UnknownException, WebserviceException
Description copied from interface:BaseRecordCreate from template record.- Specified by:
createFromTemplatein interfaceBaseRecord- Parameters:
uuid- the uuiddstPath- the dst pathcategories- the categorieskeywords- the keywordsnotes- the notespropertyGroups- the property groupssecurity- the securityproperties- the properties- Returns:
- the record
- Throws:
PathNotFoundException- 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
-
createFromTemplate
@Deprecated public Record createFromTemplate(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
Deprecated.As of sdk4j 4.3, replaced bycreateFromTemplate(String, String, boolean, boolean, boolean, boolean, boolean, Map)createFromTemplate- Specified by:
createFromTemplatein interfaceBaseRecord- Parameters:
uuid- the uuiddstPath- the dst pathcategories- the categorieskeywords- the keywordsnotes- the notesproperties- the properties- Returns:
- the record
- Throws:
PathNotFoundException- 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- See Also:
createFromTemplate(String, String, boolean, boolean, boolean, boolean, boolean, Map)
-
createWizard
public WizardNode createWizard(String uuid, String name, String title, long nodeClass) throws ItemExistsException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException, PromotedAsRecordLockException, WebserviceException, ExtensionException, UnknownException
Description copied from interface:BaseRecordCreate wizard record wizard node.- Specified by:
createWizardin interfaceBaseRecord- Parameters:
uuid- the uuidname- the nametitle- the titlenodeClass- the node class- Returns:
- the wizard node
- Throws:
ItemExistsException- 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 exception
-
createMissingRecords
public void createMissingRecords(String recPath) throws RepositoryException, DatabaseException, PathNotFoundException, ItemExistsException, AccessDeniedException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
Description copied from interface:BaseRecordCreate missing records.- Specified by:
createMissingRecordsin interfaceBaseRecord- Parameters:
recPath- the record path- Throws:
RepositoryException- the repository exceptionDatabaseException- the database exceptionPathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionAutomationException- the automation exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-