Package com.openkm.sdk4j.impl
Class FolderImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.FolderImpl
- All Implemented Interfaces:
BaseFolder,Serializable
FolderImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCopy folder.Create folder.Create folder.createFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, boolean propertyGroups, boolean security, Map<String, String> properties) Create from template folder.createFromTemplate(String uuid, String dstPath, boolean categories, boolean keywords, boolean notes, Map<String, String> properties) Deprecated.voidcreateMissingFolders(String fldPath) Create missing folders.voidDelete folder.extendedCopy(String uuid, String dstId, String newName, boolean categories, boolean keywords, boolean propertyGroups, boolean notes, boolean security) Extended folder copy folder.getChildren(String uuid) Gets children.getContentInfo(String uuid) Gets content info.Gets path.getProperties(String uuid) Gets properties.booleanIs valid folder boolean.voidMove folder.voidPurge folder.Rename folder.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenvoidsetDescription(String uuid, String description) Sets description.Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
FolderImpl
FolderImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
create
public Folder create(String uuid, String name) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderCreate folder.- Specified by:
createin interfaceBaseFolder- Parameters:
uuid- the uuidname- the name- Returns:
- the folder
- 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
-
create
public Folder create(String uuid, String name, long nodeClass) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderCreate folder.- Specified by:
createin interfaceBaseFolder- Parameters:
uuid- the uuidname- the name- Returns:
- the folder
- 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 Folder getProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderGets properties.- Specified by:
getPropertiesin interfaceBaseFolder- Parameters:
uuid- the uuid- Returns:
- the folder 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, UnknownException, WebserviceException Description copied from interface:BaseFolderDelete folder.- Specified by:
deletein interfaceBaseFolder- 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 exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
rename
public Folder rename(String uuid, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, UnknownException, WebserviceException Description copied from interface:BaseFolderRename folder.- Specified by:
renamein interfaceBaseFolder- Parameters:
uuid- the uuidnewName- the new name- Throws:
PathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
move
public void move(String uuid, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderMove folder.- Specified by:
movein interfaceBaseFolder- Parameters:
uuid- the uuiddstId- the dst id- Throws:
PathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getChildren
public List<Folder> getChildren(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderGets children.- Specified by:
getChildrenin interfaceBaseFolder- Parameters:
uuid- the uuid- Returns:
- the folder children
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
isValid
public boolean isValid(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderIs valid folder boolean.- Specified by:
isValidin interfaceBaseFolder- 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
-
getPath
public String getPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderGets path.- Specified by:
getPathin interfaceBaseFolder- Parameters:
uuid- the uuid- Returns:
- the folder path
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
copy
public Folder copy(String uuid, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, AutomationException, DatabaseException, UserQuotaExceededException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderCopy folder.- Specified by:
copyin interfaceBaseFolder- Parameters:
uuid- the uuiddstId- the dst idnewName- the new name- Returns:
- the folder
- Throws:
PathNotFoundException- the path not found exceptionItemExistsException- the item exists exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionAutomationException- the automation exceptionDatabaseException- the database exceptionUserQuotaExceededException- the user quota exceeded exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
extendedCopy
public Folder 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:BaseFolderExtended folder copy folder.- Specified by:
extendedCopyin interfaceBaseFolder- Parameters:
uuid- the uuiddstId- the dst idnewName- the new namecategories- the categorieskeywords- the keywordspropertyGroups- the property groupsnotes- the notessecurity- the security- Returns:
- the folder
- 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
-
getContentInfo
public ContentInfo getContentInfo(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseFolderGets content info.- Specified by:
getContentInfoin interfaceBaseFolder- Parameters:
uuid- the uuid- Returns:
- the content info
- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
purge
public void purge(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderPurge folder.- Specified by:
purgein interfaceBaseFolder- Parameters:
uuid- the uuid- Throws:
LockException- 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
-
createMissingFolders
public void createMissingFolders(String fldPath) throws RepositoryException, DatabaseException, PathNotFoundException, ItemExistsException, AccessDeniedException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderCreate missing folders.- Specified by:
createMissingFoldersin interfaceBaseFolder- Parameters:
fldPath- the fld 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
-
setDescription
public void setDescription(String uuid, String description) throws AccessDeniedException, PathNotFoundException, DatabaseException, LockException, PromotedAsRecordLockException, UnknownException, WebserviceException Description copied from interface:BaseFolderSets description.- Specified by:
setDescriptionin interfaceBaseFolder- Parameters:
uuid- the uuiddescription- the description- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionLockException- the lock exceptionPromotedAsRecordLockException- the promoted as record lock exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
createFromTemplate
public Folder 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, WebserviceExceptionDescription copied from interface:BaseFolderCreate from template folder.- Specified by:
createFromTemplatein interfaceBaseFolder- Parameters:
uuid- the uuiddstPath- the dst pathcategories- the categorieskeywords- the keywordsnotes- the notespropertyGroups- the property groupssecurity- the securityproperties- the properties- Returns:
- the folder
- 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 Folder 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, WebserviceExceptionDeprecated.As of sdk4j 4.3, replaced bycreateFromTemplate(String, String, boolean, boolean, boolean, boolean, boolean, Map)createFromTemplate- Specified by:
createFromTemplatein interfaceBaseFolder- Parameters:
uuid- the uuiddstPath- the dst pathcategories- the categorieskeywords- the keywordsnotes- the notesproperties- the properties- Returns:
- the folder
- 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)