public class OKMPropertyGroup extends Object implements PropertyGroupModule
| 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. | 
| static OKMPropertyGroup | getInstance() | 
| List<FormElement> | getProperties(String token,
             String nodePath,
             String grpName)Get all properties defined in a document by group. | 
| 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 nodePath,
           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. | 
| void | setPropertiesSimple(String token,
                   String nodeId,
                   String grpName,
                   Map<String,String> properties) | 
| static void | setPropertySimple(String token,
                 String nodeId,
                 String propGroup,
                 String propName,
                 String propValue) | 
public static OKMPropertyGroup getInstance()
public void addGroup(String token, String nodePath, String grpName) throws NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
PropertyGroupModuleaddGroup in interface PropertyGroupModuletoken - 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.DatabaseExceptionExtensionExceptionAutomationExceptionpublic void removeGroup(String token, String nodePath, String grpName) throws AccessDeniedException, NoSuchGroupException, LockException, PathNotFoundException, RepositoryException, DatabaseException, ExtensionException
PropertyGroupModuleremoveGroup in interface PropertyGroupModuletoken - 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.AccessDeniedExceptionDatabaseExceptionExtensionExceptionpublic List<PropertyGroup> getGroups(String token, String nodePath) throws IOException, ParseException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModulegetGroups in interface PropertyGroupModuletoken - 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.IOExceptionParseExceptionDatabaseExceptionpublic List<PropertyGroup> getAllGroups(String token) throws IOException, ParseException, RepositoryException, DatabaseException
PropertyGroupModulegetAllGroups in interface PropertyGroupModuletoken - The session authorization token.RepositoryException - If there is any general repository problem.IOExceptionParseExceptionDatabaseExceptionpublic List<FormElement> getProperties(String token, String nodePath, String grpName) throws IOException, ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModulegetProperties in interface PropertyGroupModuletoken - 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.IOExceptionParseExceptionDatabaseExceptionpublic void setProperties(String token, String nodeId, String grpName, List<FormElement> properties) throws IOException, ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
PropertyGroupModulesetProperties in interface PropertyGroupModuletoken - 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.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.IOExceptionParseExceptionDatabaseExceptionExtensionExceptionAutomationExceptionpublic static void setPropertySimple(String token, String nodeId, String propGroup, String propName, String propValue) throws IOException, ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
public void setPropertiesSimple(String token, String nodeId, String grpName, Map<String,String> properties) throws IOException, ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException
public List<FormElement> getPropertyGroupForm(String token, String grpName) throws ParseException, IOException, RepositoryException, DatabaseException
PropertyGroupModulegetPropertyGroupForm in interface PropertyGroupModuletoken - 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.ParseExceptionDatabaseExceptionpublic boolean hasGroup(String token, String nodeId, String grpName) throws IOException, ParseException, PathNotFoundException, RepositoryException, DatabaseException
PropertyGroupModulehasGroup in interface PropertyGroupModuletoken - 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.RepositoryException - If there is any general repository problem.IOExceptionParseExceptionDatabaseExceptionpublic List<String> getSuggestions(String token, String nodeId, String grpName, String propName) throws PathNotFoundException, IOException, ParseException, NoSuchGroupException, SuggestionException, DatabaseException
PropertyGroupModulegetSuggestions in interface PropertyGroupModuletoken - 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.PathNotFoundExceptionIOExceptionParseExceptionNoSuchGroupExceptionSuggestionExceptionDatabaseExceptionpublic void registerDefinition(String token, String pgDef) throws ParseException, DatabaseException, IOException
PropertyGroupModuleregisterDefinition in interface PropertyGroupModuletoken - The session authorization token.pgDef - The XML with the Property Group DefinitionParseExceptionDatabaseExceptionIOExceptionCopyright © 2015. All Rights Reserved.