Package com.openkm.sdk4j.definition
Interface BasePropertyGroup
-
- All Known Implementing Classes:
PropertyGroupImpl
public interface BasePropertyGroupBasePropertyGroup- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract 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.voidsetProperties(String uuid, String grpName, Map<String,String> properties)Sets properties.StringvalidateField(String value, String className, List<String> uuids)Validate field string.
-
-
-
Method Detail
-
addGroup
void addGroup(String uuid, String grpName, Map<String,String> propertiesMap) throws NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Add group.- 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
void removeGroup(String uuid, String grpName) throws AccessDeniedException, NoSuchGroupException, LockException, PathNotFoundException, RepositoryException, DatabaseException, ExtensionException, AutomationException, UnknownException, WebserviceException
Remove group.- 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
List<PropertyGroup> getGroups(String uuid) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets groups.- 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
List<PropertyGroup> getAllGroups() throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets all property groups.- 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
List<PropertyGroup> getAllGroups(String uuid) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets all property groups.- 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
Map<String,String> getProperties(String uuid, String grpName) throws ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PluginNotFoundException, ValidationFormException, UnknownException, WebserviceException
Gets properties.- Parameters:
uuid- the uuidgrpName- the grp name- Returns:
- the property group 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 exceptionAccessDeniedException- the access denied 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
-
getPropertiesByVersion
Map<String,String> getPropertiesByVersion(String uuid, String grpName, String versionName) throws ParseException, NoSuchPropertyException, NoSuchGroupException, LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, ExtensionException, AutomationException, PluginNotFoundException, ValidationFormException, UnknownException, WebserviceException
Gets properties by version.- Parameters:
uuid- the uuidgrpName- the grp nameversionName- the version name- Returns:
- the property group properties by version
- Throws:
ParseException- the parse exceptionNoSuchPropertyException- the no such property exceptionNoSuchGroupException- 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 exceptionPluginNotFoundException- the plugin not found exceptionValidationFormException- the validation form exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getPropertiesByVersionForm
List<FormElement> getPropertiesByVersionForm(String uuid, String grpName, String versionName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Gets properties by version form.- 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
List<FormElement> getPropertyGroupFormDefinition(String grpName) throws AccessDeniedException, ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Gets property group form.- 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
List<FormElement> getPropertyGroupFormDefinition(String uuid, String grpName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Gets property group form.- 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
List<FormElement> getPropertyGroupForm(String uuid, String grpName) throws ParseException, NoSuchGroupException, PathNotFoundException, RepositoryException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException, AccessDeniedException
Gets property group form.- 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
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
Sets properties.- 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
boolean hasGroup(String uuid, String grpName) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Has group boolean.- 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
List<PropertyGroup> getGroupsByVersion(String uuid, String versionName) throws AccessDeniedException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Gets groups by version.- 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
String getRegisteredDefinition() throws AccessDeniedException, ParseException, DatabaseException, UnknownException, WebserviceException
Gets registered definition.- 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
List<String> getSuggestions(String uuid, String grpName, String propName) throws AccessDeniedException, PathNotFoundException, ParseException, NoSuchGroupException, SuggestionException, DatabaseException, UnknownException, WebserviceException
Gets property group suggestions.- 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
void registerDefinition(InputStream is, String name) throws AccessDeniedException, ParseException, DatabaseException, UnknownException, WebserviceException, IOException
Register definition.- Parameters:
is- the isname- the name- Throws:
AccessDeniedException- the access denied exceptionParseException- the parse exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exceptionIOException
-
getGroup
PropertyGroup getGroup(String grpName) throws AccessDeniedException, ParseException, RepositoryException, DatabaseException, NoSuchGroupException, UnknownException, WebserviceException
Gets group.- 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
String getSuggestBoxKeyValue(String grpName, String propertyName, String key) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Gets suggest box key value.- 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
Map<String,String> getSuggestBoxKeyValuesFiltered(String grpName, String propertyName, String filter) throws ParseException, AccessDeniedException, DatabaseException, PluginNotFoundException, UnknownException, WebserviceException
Gets suggest box key values filtered.- 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
String validateField(String value, String className, List<String> uuids) throws PluginNotFoundException, UnknownException, WebserviceException
Validate field string.- 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
-
-