|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.common.jcr.Util
public class Util
Provides utility for working with jcr
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | ||
|---|---|---|
static
|
convertListToArray(List<T> list,
Class<T> type)
Converts a list to an array. |
|
static String[] |
convertMapToStrings(Map<String,String> templateParams)
Convert a map of string key and string value into a string array where values are in the form key=value. |
|
static Map<String,String> |
convertValuesToMap(javax.jcr.Value[] values)
Converts an array of Value into a map of string. |
|
static String[] |
convertValuesToStrings(javax.jcr.Value[] values)
Converts array of Value to array of string. |
|
static String |
getPropertiesNamePattern(String[] propertyNames)
Gets properties name pattern from an array of property names. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static String getPropertiesNamePattern(String[] propertyNames)
propertyNames -
public static String[] convertValuesToStrings(javax.jcr.Value[] values)
throws Exception
values -
Exceptionpublic static String[] convertMapToStrings(Map<String,String> templateParams)
templateParams -
public static Map<String,String> convertValuesToMap(javax.jcr.Value[] values)
Value into a map of string.
The values are expected to be of string type and in the form key=value
values -
public static <T> T[] convertListToArray(List<T> list,
Class<T> type)
list - List to be converted to array.type - Type of list's and array's element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||