public interface PropertyModule
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.
|
void |
setEncryption(String token,
String nodePath,
String cipherName)
Define a document as encrypted.
|
void |
setSigned(String token,
String nodePath,
boolean signed)
Define a document as signed.
|
void |
unsetEncryption(String token,
String nodePath)
Unset a document as encrypted.
|
void addCategory(String token, String nodePath, String catId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
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
void removeCategory(String token, String nodePath, String catId) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
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
String addKeyword(String token, String nodePath, String keyword) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
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
void removeKeyword(String token, String nodePath, String keyword) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
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
void setEncryption(String token, String nodePath, String cipherName) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
token
- The session authorization token.nodePath
- The complete path to the node.cipherName
- The cipher used in the encryption.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
void unsetEncryption(String token, String nodePath) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
token
- The session authorization token.nodePath
- The complete path to the 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
void setSigned(String token, String nodePath, boolean signed) throws VersionException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
token
- The session authorization token.nodePath
- The complete path to the node.signed
- If the document is signed or notVersionException
- 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 © 2018 Open Knowledge Management System S.L.. All rights reserved.