public class DbPropertyGroupModule extends Object implements PropertyGroupModule
Constructor and Description |
---|
DbPropertyGroupModule() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String token,
String nodePath,
String grpName)
Add a property group to a document.
|
List<PropertyGroup> |
getAllGroups(String token)
Get all groups defined in the system.
|
List<PropertyGroup> |
getGroups(String token,
String nodePath)
Get groups assigned to a document.
|
List<FormElement> |
getProperties(String token,
String nodePath,
String grpName)
Get all properties defined in a document by group.
|
FormElement |
getProperty(String token,
String nodePath,
String grpName,
String propName)
Convenient method for GWTUtil.getExtraColumn()
|
List<FormElement> |
getPropertyGroupForm(String token,
String grpName)
Get all possible values which can have a property.
|
boolean |
hasGroup(String token,
String nodePath,
String grpName)
Test if a node has a property group assigned
|
void |
removeGroup(String token,
String nodePath,
String grpName)
Removes a property group from a document.
|
void |
setProperties(String token,
String nodePath,
String grpName,
List<FormElement> properties)
Set group properties to a document.
|
public void addGroup(String token, String nodePath, String grpName) throws NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException
PropertyGroupModule
addGroup
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.grpName
- The group name previously registered in the system.NoSuchGroupException
- If there is no such registered group name.LockException
- Can't modify a locked document.PathNotFoundException
- If there is no document in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the document because of lack of permissions.RepositoryException
- If there is any general repository problem.DatabaseException
AutomationException
public void removeGroup(String token, String nodePath, String grpName) throws AccessDeniedException, NoSuchGroupException, LockException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModule
removeGroup
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.grpName
- The group name previously registered in the system.NoSuchGroupException
- If there is no such registered group name.LockException
- Can't modify a locked document.PathNotFoundException
- If there is no document in this
repository path.RepositoryException
- If there is any general repository problem.AccessDeniedException
DatabaseException
public List<PropertyGroup> getGroups(String token, String nodePath) throws IOException, ParseException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModule
getGroups
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.PathNotFoundException
- If there is no document in this
repository path.RepositoryException
- If there is any general repository problem.IOException
ParseException
DatabaseException
public List<PropertyGroup> getAllGroups(String token) throws IOException, ParseException, RepositoryException, DatabaseException
PropertyGroupModule
getAllGroups
in interface PropertyGroupModule
token
- The session authorization token.RepositoryException
- If there is any general repository problem.IOException
ParseException
DatabaseException
public List<FormElement> getProperties(String token, String nodePath, String grpName) throws IOException, ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModule
getProperties
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.grpName
- The group name previously registered in the system.NoSuchGroupException
- If there is no such registered group name.PathNotFoundException
- If there is no document in this
repository path.RepositoryException
- If there is any general repository problem.IOException
ParseException
DatabaseException
public FormElement getProperty(String token, String nodePath, String grpName, String propName) throws IOException, ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException
public void setProperties(String token, String nodePath, String grpName, List<FormElement> properties) throws IOException, ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException
PropertyGroupModule
setProperties
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.grpName
- The group name previously registered in the system.properties
- The property values.NoSuchPropertyException
- If there is no such registered category property.NoSuchGroupException
- If there is no such registered group name.LockException
- Can't modify a locked document.PathNotFoundException
- If there is no document in this
repository path.AccessDeniedException
- If there is any security problem:
you can't modify the document because of lack of permissions.RepositoryException
- If there is any general repository problem.IOException
ParseException
DatabaseException
AutomationException
public List<FormElement> getPropertyGroupForm(String token, String grpName) throws ParseException, IOException, RepositoryException, DatabaseException
PropertyGroupModule
getPropertyGroupForm
in interface PropertyGroupModule
token
- The session authorization token.grpName
- The group name previously registered in the system.IOException
- If there is any problem reading the property values.RepositoryException
- If there is any general repository problem.ParseException
DatabaseException
public boolean hasGroup(String token, String nodePath, String grpName) throws IOException, ParseException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModule
hasGroup
in interface PropertyGroupModule
token
- The session authorization token.nodePath
- The path that identifies an unique node.grpName
- The group name previously registered in the system.PathNotFoundException
- If there is no document in this
repository path.RepositoryException
- If there is any general repository problem.IOException
ParseException
DatabaseException
Copyright © 2015. All Rights Reserved.