public class DbPropertyGroupModule extends Object implements PropertyGroupModule
Constructor and Description |
---|
DbPropertyGroupModule() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String token,
String nodeId,
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 nodeId)
Get groups assigned to a document.
|
List<FormElement> |
getProperties(String token,
String nodeId,
String grpName)
Get all properties defined in a document by group.
|
FormElement |
getProperty(String token,
String nodeId,
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.
|
List<String> |
getSuggestions(String token,
String nodeId,
String grpName,
String propName)
Obtain suggestion from a property in a document
|
boolean |
hasGroup(String token,
String nodeId,
String grpName)
Test if a node has a property group assigned
|
void |
registerDefinition(String token,
String pgDef)
Register Property Group definition.
|
void |
removeGroup(String token,
String nodeId,
String grpName)
Removes a property group from a document.
|
void |
setProperties(String token,
String nodeId,
String grpName,
List<FormElement> properties)
Set group properties to a document.
|
public void addGroup(String token, String nodeId, String grpName) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException
PropertyGroupModule
addGroup
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- 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.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 nodeId, String grpName) throws AccessDeniedException, PathNotFoundException, DatabaseException, AutomationException
PropertyGroupModule
removeGroup
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- 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.AccessDeniedException
DatabaseException
AutomationException
public List<PropertyGroup> getGroups(String token, String nodeId) throws IOException, ParseException, AccessDeniedException, PathNotFoundException, DatabaseException
PropertyGroupModule
getGroups
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- The path that identifies an unique node.PathNotFoundException
- If there is no document in this
repository path.IOException
ParseException
AccessDeniedException
DatabaseException
public List<PropertyGroup> getAllGroups(String token) throws IOException, ParseException, AccessDeniedException, DatabaseException
PropertyGroupModule
getAllGroups
in interface PropertyGroupModule
token
- The session authorization token.IOException
ParseException
AccessDeniedException
DatabaseException
public List<FormElement> getProperties(String token, String nodeId, String grpName) throws IOException, ParseException, NoSuchGroupException, AccessDeniedException, PathNotFoundException, DatabaseException
PropertyGroupModule
getProperties
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- 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.IOException
ParseException
AccessDeniedException
DatabaseException
public FormElement getProperty(String token, String nodeId, String grpName, String propName) throws IOException, ParseException, NoSuchGroupException, AccessDeniedException, PathNotFoundException, DatabaseException
public void setProperties(String token, String nodeId, String grpName, List<FormElement> properties) throws ParseException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, AutomationException
PropertyGroupModule
setProperties
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- The path that identifies an unique node or its UUID.grpName
- The group name previously registered in the system.properties
- The property values.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.ParseException
DatabaseException
AutomationException
public List<FormElement> getPropertyGroupForm(String token, String grpName) throws ParseException, IOException, AccessDeniedException, 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.ParseException
AccessDeniedException
DatabaseException
public boolean hasGroup(String token, String nodeId, String grpName) throws AccessDeniedException, PathNotFoundException, DatabaseException
PropertyGroupModule
hasGroup
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- The path that identifies an unique node or its UUID.grpName
- The group name previously registered in the system.PathNotFoundException
- If there is no document in this
repository path.AccessDeniedException
DatabaseException
public List<String> getSuggestions(String token, String nodeId, String grpName, String propName) throws AccessDeniedException, PathNotFoundException, IOException, ParseException, NoSuchGroupException, SuggestionException, DatabaseException
PropertyGroupModule
getSuggestions
in interface PropertyGroupModule
token
- The session authorization token.nodeId
- The path that identifies an unique node or its UUID.grpName
- The group name previously registered in the system.propName
- The group name previously registered in the system.AccessDeniedException
PathNotFoundException
IOException
ParseException
NoSuchGroupException
SuggestionException
DatabaseException
public void registerDefinition(String token, String pgDef) throws ParseException, AccessDeniedException, DatabaseException, IOException
PropertyGroupModule
registerDefinition
in interface PropertyGroupModule
token
- The session authorization token.pgDef
- The XML with the Property Group DefinitionParseException
AccessDeniedException
DatabaseException
IOException
Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.