Package com.openkm.sdk4j.impl
Class PropertyGroupImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.PropertyGroupImpl
-
- All Implemented Interfaces:
BasePropertyGroup,Serializable
public class PropertyGroupImpl extends ClientImpl implements BasePropertyGroup, Serializable
PropertyGroupImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyGroupImpl(String host)PropertyGroupImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(String uuid, String grpName, Map<String,String> propertiesMap)Add group.List<PropertyGroup>getAllGroups()Gets all property groups.List<PropertyGroup>getAllGroups(String uuid)Gets all property groups.PropertyGroupgetGroup(String grpName)Gets group.List<PropertyGroup>getGroups(String uuid)Gets groups.List<PropertyGroup>getGroupsByVersion(String uuid, String versionName)Gets groups by version.Map<String,String>getProperties(String uuid, String grpName)Gets properties.Map<String,String>getPropertiesByVersion(String uuid, String grpName, String versionName)Gets properties by version.List<FormElement>getPropertiesByVersionForm(String uuid, String grpName, String versionName)Gets properties by version form.List<FormElement>getPropertyGroupForm(String uuid, String grpName)Gets property group form.List<FormElement>getPropertyGroupFormDefinition(String grpName)Gets property group form.List<FormElement>getPropertyGroupFormDefinition(String uuid, String grpName)Gets property group form.StringgetRegisteredDefinition()Gets registered definition.StringgetSuggestBoxKeyValue(String grpName, String propertyName, String key)Gets suggest box key value.Map<String,String>getSuggestBoxKeyValuesFiltered(String grpName, String propertyName, String filter)Gets suggest box key values filtered.List<String>getSuggestions(String uuid, String grpName, String propName)Gets property group suggestions.booleanhasGroup(String uuid, String grpName)Has group boolean.voidregisterDefinition(InputStream is, String name)Register definition.voidremoveGroup(String uuid, String grpName)Remove group.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenvoidsetProperties(String uuid, String grpName, Map<String,String> properties)Sets properties.StringvalidateField(String value, String className, List<String> uuids)Validate field string.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
PropertyGroupImpl
public PropertyGroupImpl(String host)
PropertyGroupImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
addGroup
public void addGroup(String uuid, String grpName, Map<String,String> propertiesMap) throws NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupAdd group.- Specified by:
addGroupin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp namepropertiesMap- the properties map- Throws:
NoSuchGroupException- the no such group exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
removeGroup
public void removeGroup(String uuid, String grpName) throws AccessDeniedException, NoSuchGroupException, LockException, PathNotFoundException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupRemove group.- Specified by:
removeGroupin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp name- Throws:
AccessDeniedException- the access denied exceptionNoSuchGroupException- the no such group exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getGroups
public List<PropertyGroup> getGroups(String uuid) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets groups.- Specified by:
getGroupsin interfaceBasePropertyGroup- Parameters:
uuid- the uuid- Returns:
- the property groups
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAllGroups
public List<PropertyGroup> getAllGroups() throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets all property groups.- Specified by:
getAllGroupsin interfaceBasePropertyGroup- Returns:
- the all property groups
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getAllGroups
public List<PropertyGroup> getAllGroups(String uuid) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets all property groups.- Specified by:
getAllGroupsin interfaceBasePropertyGroup- Parameters:
uuid- the uuid- Returns:
- the all property groups
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getProperties
public Map<String,String> getProperties(String uuid, String grpName) throws ParseException, NoSuchGroupException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets properties.- Specified by:
getPropertiesin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp name- Returns:
- the property group properties
- Throws:
ParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPropertiesByVersion
public Map<String,String> getPropertiesByVersion(String uuid, String grpName, String versionName) throws ParseException, NoSuchGroupException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets properties by version.- Specified by:
getPropertiesByVersionin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp nameversionName- the version name- Returns:
- the property group properties by version
- Throws:
ParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPropertiesByVersionForm
public List<FormElement> getPropertiesByVersionForm(String uuid, String grpName, String versionName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Description copied from interface:BasePropertyGroupGets properties by version form.- Specified by:
getPropertiesByVersionFormin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp nameversionName- the version name- Returns:
- the property group by version form
- Throws:
ParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionAccessDeniedException- the access denied exception
-
getPropertyGroupFormDefinition
public List<FormElement> getPropertyGroupFormDefinition(String grpName) throws AccessDeniedException, ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets property group form.- Specified by:
getPropertyGroupFormDefinitionin interfaceBasePropertyGroup- Parameters:
grpName- the grp name- Returns:
- the property group form
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPropertyGroupFormDefinition
public List<FormElement> getPropertyGroupFormDefinition(String uuid, String grpName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Description copied from interface:BasePropertyGroupGets property group form.- Specified by:
getPropertyGroupFormDefinitionin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp name- Returns:
- the property group form
- Throws:
ParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionAccessDeniedException- the access denied exception
-
getPropertyGroupForm
public List<FormElement> getPropertyGroupForm(String uuid, String grpName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Description copied from interface:BasePropertyGroupGets property group form.- Specified by:
getPropertyGroupFormin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp name- Returns:
- the property group form
- Throws:
ParseException- the parse exceptionNoSuchGroupException- the no such group exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionAccessDeniedException- the access denied exception
-
setProperties
public void setProperties(String uuid, String grpName, Map<String,String> properties) throws AccessDeniedException, ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PluginNotFoundException, ValidationFormException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupSets properties.- Specified by:
setPropertiesin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp nameproperties- the properties- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionNoSuchPropertyException- the no such property exceptionNoSuchGroupException- the no such group exceptionLockException- the lock exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionExtensionException- the extension exceptionAutomationException- the automation exceptionPluginNotFoundException- the plugin not found exceptionValidationFormException- the validation form exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
hasGroup
public boolean hasGroup(String uuid, String grpName) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupHas group boolean.- Specified by:
hasGroupin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp name- Returns:
- the boolean
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getGroupsByVersion
public List<PropertyGroup> getGroupsByVersion(String uuid, String versionName) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets groups by version.- Specified by:
getGroupsByVersionin interfaceBasePropertyGroup- Parameters:
uuid- the uuidversionName- the version name- Returns:
- the property groups by version
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionPathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getRegisteredDefinition
public String getRegisteredDefinition() throws AccessDeniedException, ParseException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets registered definition.- Specified by:
getRegisteredDefinitionin interfaceBasePropertyGroup- Returns:
- the registered property group definition
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSuggestions
public List<String> getSuggestions(String uuid, String grpName, String propName) throws AccessDeniedException, PathNotFoundException, ParseException, NoSuchGroupException, SuggestionException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets property group suggestions.- Specified by:
getSuggestionsin interfaceBasePropertyGroup- Parameters:
uuid- the uuidgrpName- the grp namepropName- the prop name- Returns:
- the property group suggestions
- Throws:
AccessDeniedException- the access denied exceptionPathNotFoundException- the path not found exceptionParseException- the parse exceptionNoSuchGroupException- the no such group exceptionSuggestionException- the suggestion exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
registerDefinition
public void registerDefinition(InputStream is, String name) throws AccessDeniedException, ParseException, DatabaseException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupRegister definition.- Specified by:
registerDefinitionin interfaceBasePropertyGroup- Parameters:
is- the isname- the name- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getGroup
public PropertyGroup getGroup(String grpName) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, NoSuchGroupException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets group.- Specified by:
getGroupin interfaceBasePropertyGroup- Parameters:
grpName- the grp name- Returns:
- the property group
- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionNoSuchGroupException- the no such group exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSuggestBoxKeyValue
public String getSuggestBoxKeyValue(String grpName, String propertyName, String key) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets suggest box key value.- Specified by:
getSuggestBoxKeyValuein interfaceBasePropertyGroup- Parameters:
grpName- the grp namepropertyName- the property namekey- the key- Returns:
- the suggest box key value
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSuggestBoxKeyValuesFiltered
public Map<String,String> getSuggestBoxKeyValuesFiltered(String grpName, String propertyName, String filter) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupGets suggest box key values filtered.- Specified by:
getSuggestBoxKeyValuesFilteredin interfaceBasePropertyGroup- Parameters:
grpName- the grp namepropertyName- the property namefilter- the filter- Returns:
- the suggest box key values filtered
- Throws:
ParseException- the parse exceptionAccessDeniedException- the access denied exceptionDatabaseException- the database exceptionPluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
validateField
public String validateField(String value, String className, List<String> uuids) throws PluginNotFoundException, UnknownException, WebserviceException
Description copied from interface:BasePropertyGroupValidate field string.- Specified by:
validateFieldin interfaceBasePropertyGroup- Parameters:
value- the valueclassName- the class nameuuids- the uuids- Returns:
- the string
- Throws:
PluginNotFoundException- the plugin not found exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-