public class PropertyService extends Object implements PropertyModule
Constructor and Description |
---|
PropertyService() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(String token,
String nodePath,
String catId)
Add a category to a node.
|
String |
addKeyword(String token,
String nodePath,
String keyword)
Add a keyword to a node.
|
void |
removeCategory(String token,
String nodePath,
String catId)
Remove a category from a node.
|
void |
removeKeyword(String token,
String nodePath,
String keyword)
Remove a keyword from a node.
|
public void addCategory(String token, String nodePath, String catId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
PropertyModule
addCategory
in interface PropertyModule
token
- The session authorization token.nodePath
- The complete path to the node.catId
- Category id (the UUID of the category node).VersionException
- A document checked in can't be modified.LockException
- A locked document can't be modified.PathNotFoundException
- If there is no node in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException
- If there is any general repository problem.DatabaseException
public void removeCategory(String token, String nodePath, String catId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
PropertyModule
removeCategory
in interface PropertyModule
token
- The session authorization token.nodePath
- The complete path to the node.catId
- Category id (the UUID of the category node).VersionException
- A document checked in can't be modified.LockException
- A locked document can't be modified.PathNotFoundException
- If there is no node in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException
- If there is any general repository problem.DatabaseException
public String addKeyword(String token, String nodePath, String keyword) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
PropertyModule
addKeyword
in interface PropertyModule
token
- The session authorization token.nodePath
- The complete path to the node.keyword
- The keyword to be added.VersionException
- A document checked in can't be modified.LockException
- A locked document can't be modified.PathNotFoundException
- If there is no node in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException
- If there is any general repository problem.DatabaseException
public void removeKeyword(String token, String nodePath, String keyword) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
PropertyModule
removeKeyword
in interface PropertyModule
token
- The session authorization token.nodePath
- The complete path to the node.keyword
- The keyword to be removed.VersionException
- A document checked in can't be modified.LockException
- A locked document can't be modified.PathNotFoundException
- If there is no node in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException
- If there is any general repository problem.DatabaseException
Copyright © 2016. All rights reserved.