Difference between revisions of "OKMRepository"
(→Folder getRootFolder(String token)) |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __TOC__ | |
Methods related to repository management. | Methods related to repository management. | ||
Line 10: | Line 10: | ||
'''Returns''' | '''Returns''' | ||
− | A folder object with the repository root node properties. | + | * A folder object with the repository root node properties. |
'''Throws''' | '''Throws''' | ||
Line 18: | Line 18: | ||
== Folder getTrashFolder(String token) == | == Folder getTrashFolder(String token) == | ||
Obtains the user trash folder. | Obtains the user trash folder. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the user trash node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no user trash folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
== Folder getTemplatesFolder(String token) == | == Folder getTemplatesFolder(String token) == | ||
Obtain the template folder of the repository. | Obtain the template folder of the repository. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the templates node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no templates folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
== Folder getPersonalFolder(String token) == | == Folder getPersonalFolder(String token) == | ||
Obtain the personal documents folder of the repository. | Obtain the personal documents folder of the repository. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the user documents folder node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no user documents folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
== Folder getMailFolder(String token) == | == Folder getMailFolder(String token) == | ||
Obtain the personal mails folder of the repository. | Obtain the personal mails folder of the repository. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the user mails folder node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no user documents folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
+ | |||
+ | '''Since''' | ||
+ | * OpenKM 4.0 | ||
== Folder getThesaurusFolder(String token) == | == Folder getThesaurusFolder(String token) == | ||
Obtain the thesaurus folder of the repository. | Obtain the thesaurus folder of the repository. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the thesaurus folder node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no user documents folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
+ | |||
+ | '''Since''' | ||
+ | * OpenKM 5.0 | ||
== Folder getCategoriesFolder(String token) == | == Folder getCategoriesFolder(String token) == | ||
Obtain the categories folder of the repository. | Obtain the categories folder of the repository. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * A folder object with the categories folder node properties. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''PathNotFoundException'' - If there is no user documents folder node in the repository. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
+ | |||
+ | '''Since''' | ||
+ | * OpenKM 5.0 | ||
== void purgeTrash(String token) == | == void purgeTrash(String token) == | ||
Remove all the items in the user trash folder for ever. You can't recover this items any more. | Remove all the items in the user trash folder for ever. You can't recover this items any more. | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * token - The session authorization token. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * None | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''AccessDeniedException'' - If there is any security problem: you can't modify the user deleted folders and documents because of lack of permissions. | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
== boolean hasNode(String token, String path) == | == boolean hasNode(String token, String path) == | ||
Test if a node path exists | Test if a node path exists | ||
+ | |||
'''Parameters''' | '''Parameters''' | ||
+ | * ''token'' - The session authorization token. | ||
+ | * ''path'' - The node path to test. | ||
+ | |||
'''Returns''' | '''Returns''' | ||
+ | * True if the node exist or false if not. | ||
+ | |||
'''Throws''' | '''Throws''' | ||
+ | * ''RepositoryException'' - If there is any general repository problem. | ||
− | == String | + | '''Since''' |
+ | * OpenKM 4.0 | ||
+ | |||
+ | == String getPath(String token, String uuid) == | ||
Obtain the node path with a given uuid. | Obtain the node path with a given uuid. | ||
'''Parameters''' | '''Parameters''' | ||
− | * ''token'' - The session authorization token | + | * ''token'' - The session authorization token. |
− | * ''uuid'' - An unique node identifier | + | * ''uuid'' - An unique node identifier. |
'''Returns''' | '''Returns''' | ||
− | The path of the node with the given uuid. | + | * The path of the node with the given uuid. |
'''Throws''' | '''Throws''' | ||
− | * PathNotFoundException - If there is no user node in the repository with this uuid. | + | * ''PathNotFoundException'' - If there is no user node in the repository with this uuid. |
− | * RepositoryException - If there is any general repository problem. | + | * ''RepositoryException'' - If there is any general repository problem. |
[[Category: Webservices Guide]] | [[Category: Webservices Guide]] |
Latest revision as of 17:13, 15 September 2010
Contents
- 1 Folder getRootFolder(String token)
- 2 Folder getTrashFolder(String token)
- 3 Folder getTemplatesFolder(String token)
- 4 Folder getPersonalFolder(String token)
- 5 Folder getMailFolder(String token)
- 6 Folder getThesaurusFolder(String token)
- 7 Folder getCategoriesFolder(String token)
- 8 void purgeTrash(String token)
- 9 boolean hasNode(String token, String path)
- 10 String getPath(String token, String uuid)
Methods related to repository management.
Folder getRootFolder(String token)
Obtain the root folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the repository root node properties.
Throws
- PathNotFoundException - If there is no root folder node in the repository.
- RepositoryException - If there is any general repository problem.
Folder getTrashFolder(String token)
Obtains the user trash folder.
Parameters
- token - The session authorization token.
Returns
- A folder object with the user trash node properties.
Throws
- PathNotFoundException - If there is no user trash folder node in the repository.
- RepositoryException - If there is any general repository problem.
Folder getTemplatesFolder(String token)
Obtain the template folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the templates node properties.
Throws
- PathNotFoundException - If there is no templates folder node in the repository.
- RepositoryException - If there is any general repository problem.
Folder getPersonalFolder(String token)
Obtain the personal documents folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the user documents folder node properties.
Throws
- PathNotFoundException - If there is no user documents folder node in the repository.
- RepositoryException - If there is any general repository problem.
Folder getMailFolder(String token)
Obtain the personal mails folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the user mails folder node properties.
Throws
- PathNotFoundException - If there is no user documents folder node in the repository.
- RepositoryException - If there is any general repository problem.
Since
- OpenKM 4.0
Folder getThesaurusFolder(String token)
Obtain the thesaurus folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the thesaurus folder node properties.
Throws
- PathNotFoundException - If there is no user documents folder node in the repository.
- RepositoryException - If there is any general repository problem.
Since
- OpenKM 5.0
Folder getCategoriesFolder(String token)
Obtain the categories folder of the repository.
Parameters
- token - The session authorization token.
Returns
- A folder object with the categories folder node properties.
Throws
- PathNotFoundException - If there is no user documents folder node in the repository.
- RepositoryException - If there is any general repository problem.
Since
- OpenKM 5.0
void purgeTrash(String token)
Remove all the items in the user trash folder for ever. You can't recover this items any more.
Parameters
- token - The session authorization token.
Returns
- None
Throws
- AccessDeniedException - If there is any security problem: you can't modify the user deleted folders and documents because of lack of permissions.
- RepositoryException - If there is any general repository problem.
boolean hasNode(String token, String path)
Test if a node path exists
Parameters
- token - The session authorization token.
- path - The node path to test.
Returns
- True if the node exist or false if not.
Throws
- RepositoryException - If there is any general repository problem.
Since
- OpenKM 4.0
String getPath(String token, String uuid)
Obtain the node path with a given uuid.
Parameters
- token - The session authorization token.
- uuid - An unique node identifier.
Returns
- The path of the node with the given uuid.
Throws
- PathNotFoundException - If there is no user node in the repository with this uuid.
- RepositoryException - If there is any general repository problem.