Class CmisUtils
java.lang.Object
org.ametys.plugins.workspaces.cmis.CmisUtils
utils class for CMIS server
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getBooleanParameter
(Boolean value, boolean def) Returns the boolean value of the given value or the default value if the given value isnull
.static String
getObjectTypeId
(Properties properties) Gets the type id from a set of properties.static String
getStringProperty
(Properties properties, String name) Returns the first value of a string property.static String
getStringProperty
(Properties properties, String name, String defaultValue) get String propertysplitFilter
(String filter) Splits a filter statement into a collection of properties.
-
Method Details
-
getBooleanParameter
Returns the boolean value of the given value or the default value if the given value isnull
.- Parameters:
value
- valuedef
- default- Returns:
- boolean
-
getStringProperty
Returns the first value of a string property.- Parameters:
properties
- propertyname
- name- Returns:
- String
-
getStringProperty
get String property- Parameters:
properties
- propertyname
- namedefaultValue
- default value- Returns:
- String
-
getObjectTypeId
Gets the type id from a set of properties.- Parameters:
properties
- properties- Returns:
- type id
-
splitFilter
Splits a filter statement into a collection of properties. Iffilter
isnull
, empty or one of the properties is '*' , an empty collection will be returned.- Parameters:
filter
- input filters- Returns:
- set of filters, or null if no filters
-