Difference between revisions of "OKMProperty"

From OpenKM Documentation
Jump to: navigation, search
(Created page with '__TOC__ Methods related to document properties management. == void addCategory(String token, String nodePath, String catId) == Add a new category to document. '''Parameters'''…')
 
Line 5: Line 5:
 
== void addCategory(String token, String nodePath, String catId) ==
 
== void addCategory(String token, String nodePath, String catId) ==
 
Add a new category to document.
 
Add a new category to document.
 +
 +
'''Parameters'''
 +
* ''token'' - The session authorization token.
 +
* ''nodePath'' - A mail object with the new mail properties.
 +
* ''catId'' - Category id (the UUID of the category node).
 +
 +
'''Returns'''
 +
* None
 +
 +
'''Throws'''
 +
* ''PathNotFoundException'' - If the parent folder doesn't exist.
 +
* ''AccessDeniedException'' - If there is any security problem: you can't modify the parent folder because of lack of permissions.
 +
* ''RepositoryException'' - If there is any general repository problem.
 +
 +
'''Since'''
 +
* OpenKM 5.0
 +
 +
== void removeCategory(String token, String nodePath, String catId) ==
 +
Remove a previously category from a document.
  
 
'''Parameters'''
 
'''Parameters'''

Revision as of 10:57, 26 October 2010

Methods related to document properties management.

void addCategory(String token, String nodePath, String catId)

Add a new category to document.

Parameters

  • token - The session authorization token.
  • nodePath - A mail object with the new mail properties.
  • catId - Category id (the UUID of the category node).

Returns

  • None

Throws

  • PathNotFoundException - If the parent folder doesn't exist.
  • AccessDeniedException - If there is any security problem: you can't modify the parent folder because of lack of permissions.
  • RepositoryException - If there is any general repository problem.

Since

  • OpenKM 5.0

void removeCategory(String token, String nodePath, String catId)

Remove a previously category from a document.

Parameters

  • token - The session authorization token.
  • nodePath - A mail object with the new mail properties.
  • catId - Category id (the UUID of the category node).

Returns

  • None

Throws

  • PathNotFoundException - If the parent folder doesn't exist.
  • AccessDeniedException - If there is any security problem: you can't modify the parent folder because of lack of permissions.
  • RepositoryException - If there is any general repository problem.

Since

  • OpenKM 5.0