Class CmisUtils
- java.lang.Object
-
- org.ametys.plugins.workspaces.cmis.CmisUtils
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CmisUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 propertystatic Set<String>
splitFilter(String filter)
Splits a filter statement into a collection of properties.
-
-
-
Constructor Detail
-
CmisUtils
private CmisUtils()
-
-
Method Detail
-
getBooleanParameter
public static boolean getBooleanParameter(Boolean value, boolean def)
Returns the boolean value of the given value or the default value if the given value isnull
.- Parameters:
value
- valuedef
- default- Returns:
- boolean
-
getStringProperty
public static String getStringProperty(Properties properties, String name)
Returns the first value of a string property.- Parameters:
properties
- propertyname
- name- Returns:
- String
-
getStringProperty
public static String getStringProperty(Properties properties, String name, String defaultValue)
get String property- Parameters:
properties
- propertyname
- namedefaultValue
- default value- Returns:
- String
-
getObjectTypeId
public static String getObjectTypeId(Properties properties)
Gets the type id from a set of properties.- Parameters:
properties
- properties- Returns:
- type id
-
splitFilter
public static Set<String> splitFilter(String filter)
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
-
-