public class FolderImpl extends ClientImpl implements BaseFolder, Serializable
Constructor and Description |
---|
FolderImpl(String host)
FolderImpl
|
Modifier and Type | Method and Description |
---|---|
Folder |
copyFolder(String uuid,
String dstId,
String newName)
Copy folder folder.
|
Folder |
createFolder(String uuid,
String name)
Create folder folder.
|
Folder |
createFolderFromTemplate(String uuid,
String dstPath,
boolean categories,
boolean keywords,
boolean notes,
Map<String,String> properties)
Create folder from template folder.
|
Folder |
createFolderFromTemplate(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
createFolderFromTemplate(String, String, boolean, boolean, boolean, Map) |
void |
createMissingFolders(String fldPath)
Create missing folders.
|
void |
deleteFolder(String uuid)
Delete folder.
|
Folder |
extendedFolderCopy(String uuid,
String dstId,
String newName,
boolean categories,
boolean keywords,
boolean propertyGroups,
boolean notes,
boolean security)
Extended folder copy folder.
|
Folder |
extendedFolderCopy(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
extendedFolderCopy(String, String, String, boolean, boolean, boolean, boolean, boolean) |
ContentInfo |
getContentInfo(String uuid)
Gets content info.
|
List<Folder> |
getFolderChildren(String uuid)
Gets folder children.
|
String |
getFolderPath(String uuid)
Gets folder path.
|
Folder |
getFolderProperties(String uuid)
Gets folder properties.
|
boolean |
isValidFolder(String uuid)
Is valid folder boolean.
|
void |
moveFolder(String uuid,
String dstId)
Move folder.
|
void |
purgeFolder(String uuid)
Purge folder.
|
void |
renameFolder(String uuid,
String newName)
Rename folder.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setFolderDescription(String uuid,
String description)
Sets folder description.
|
void |
setStyle(String uuid,
long styleId)
Sets style.
|
getClient, resource, resource
public FolderImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Folder createFolder(String uuid, String name) throws AccessDeniedException, RepositoryException, PathNotFoundException, ItemExistsException, DatabaseException, ExtensionException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseFolder
createFolder
in interface BaseFolder
uuid
- the uuidname
- the nameAccessDeniedException
- 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 Folder getFolderProperties(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseFolder
getFolderProperties
in interface BaseFolder
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 deleteFolder(String uuid) throws AutomationException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
deleteFolder
in interface BaseFolder
uuid
- the uuidAutomationException
- 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 exceptionpublic void renameFolder(String uuid, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, UnknownException, WebserviceException
BaseFolder
renameFolder
in interface BaseFolder
uuid
- the uuidnewName
- the new namePathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void moveFolder(String uuid, String dstId) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
moveFolder
in interface BaseFolder
uuid
- the uuiddstId
- the dst idPathNotFoundException
- the path not found exceptionItemExistsException
- the item exists exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic List<Folder> getFolderChildren(String uuid) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
getFolderChildren
in interface BaseFolder
uuid
- the uuidAccessDeniedException
- the access denied exceptionPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic boolean isValidFolder(String uuid) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
isValidFolder
in interface BaseFolder
uuid
- the uuidPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic String getFolderPath(String uuid) throws AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
getFolderPath
in interface BaseFolder
uuid
- the uuidAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic Folder copyFolder(String uuid, String dstId, String newName) throws PathNotFoundException, ItemExistsException, AccessDeniedException, RepositoryException, AutomationException, DatabaseException, UserQuotaExceededException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseFolder
copyFolder
in interface BaseFolder
uuid
- the uuiddstId
- the dst idnewName
- the new namePathNotFoundException
- 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 exceptionpublic Folder extendedFolderCopy(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
BaseFolder
extendedFolderCopy
in interface BaseFolder
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 Folder extendedFolderCopy(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
extendedFolderCopy(String, String, String, boolean, boolean, boolean, boolean, boolean)
extendedFolderCopy
in interface BaseFolder
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 exceptionextendedFolderCopy(String, String, String, boolean, boolean, boolean, boolean, boolean)
public ContentInfo getContentInfo(String uuid) throws AccessDeniedException, RepositoryException, PathNotFoundException, DatabaseException, UnknownException, WebserviceException
BaseFolder
getContentInfo
in interface BaseFolder
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 purgeFolder(String uuid) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseFolder
purgeFolder
in interface BaseFolder
uuid
- the uuidLockException
- 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 setStyle(String uuid, long styleId) throws VersionException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseFolder
setStyle
in interface BaseFolder
uuid
- the uuidstyleId
- the style idVersionException
- the version exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic void createMissingFolders(String fldPath) throws RepositoryException, DatabaseException, PathNotFoundException, ItemExistsException, AccessDeniedException, AutomationException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseFolder
createMissingFolders
in interface BaseFolder
fldPath
- the fld pathRepositoryException
- 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 exceptionpublic void setFolderDescription(String uuid, String description) throws AccessDeniedException, PathNotFoundException, DatabaseException, LockException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseFolder
setFolderDescription
in interface BaseFolder
uuid
- the uuiddescription
- the descriptionAccessDeniedException
- 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 exceptionpublic Folder createFolderFromTemplate(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
BaseFolder
createFolderFromTemplate
in interface BaseFolder
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 Folder createFolderFromTemplate(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
createFolderFromTemplate(String, String, boolean, boolean, boolean, Map)
createFolderFromTemplate
in interface BaseFolder
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 exceptioncreateFolderFromTemplate(String, String, boolean, boolean, boolean, Map)
Copyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.