PropertyUtil
instead.@Deprecated public class NodeDataUtil extends Object
NodeData
.Constructor and Description |
---|
NodeDataUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static javax.jcr.Value |
createValue(Object obj,
javax.jcr.ValueFactory valueFactory)
Deprecated.
since 4.5 - use
PropertyUtil.createValue(Object, ValueFactory) instead |
static javax.jcr.Value |
createValue(String valueStr,
int type)
Deprecated.
Uses the default value factory.
|
static javax.jcr.Value |
createValue(String valueStr,
int type,
javax.jcr.ValueFactory valueFactory)
Deprecated.
since 4.5 - directly use
PropertyUtil.createValue(String, int, ValueFactory) instead. |
static boolean |
getBoolean(Content node,
String name,
boolean defaultValue)
Deprecated.
|
static Calendar |
getDate(Content node,
String name,
Calendar defaultValue)
Deprecated.
|
static String |
getDateFormat()
Deprecated.
since 4.5 - use
PropertyUtil.getDateFormat() instead |
static String |
getI18NString(Content node,
String str)
Deprecated.
Uses the i18n mechanism to translate the message if the resulting string is a key.
|
static String |
getI18NString(Content node,
String str,
String basename)
Deprecated.
Uses the i18n mechanism to translate the message if the resulting string is a key.
|
static int |
getJCRPropertyType(Object obj)
Deprecated.
since 4.5 - use
PropertyUtil.getJCRPropertyType(Object) instead |
static long |
getLong(Content node,
String name,
long defaultValue)
Deprecated.
|
static NodeData |
getOrCreate(Content node,
String name)
Deprecated.
If the NodeData does not exist yet, just create it.
|
static NodeData |
getOrCreate(Content node,
String name,
int type)
Deprecated.
If the NodeData does not exist yet, just create it.
|
static NodeData |
getOrCreate(Content node,
String name,
Object obj)
Deprecated.
|
static NodeData |
getOrCreateAndSet(Content node,
String name,
boolean value)
Deprecated.
|
static NodeData |
getOrCreateAndSet(Content node,
String name,
int value)
Deprecated.
|
static NodeData |
getOrCreateAndSet(Content node,
String name,
long value)
Deprecated.
|
static NodeData |
getOrCreateAndSet(Content node,
String name,
Object obj)
Deprecated.
|
static NodeData |
getOrCreateAndSet(Content node,
String name,
javax.jcr.Value[] value)
Deprecated.
|
static String |
getString(Content node,
String name)
Deprecated.
Get the string or the empty string if not existing.
|
static String |
getString(Content node,
String name,
String defaultValue)
Deprecated.
You can define a default value if not found.
|
static String |
getString(String repository,
String path)
Deprecated.
Simple method to get strings like configuration informations.
|
static String |
getString(String repository,
String path,
String defaultValue)
Deprecated.
You can define a default value if not found.
|
static String |
getTypeName(NodeData nd)
Deprecated.
String representation of the jcr property type.
|
static Object |
getValueObject(NodeData nd)
Deprecated.
Returns the value as an Object.
|
static List<String> |
getValuesStringList(javax.jcr.Value[] values)
Deprecated.
since 4.5 - use
PropertyUtil.getValuesStringList(Value[]) instead |
static String |
getValueString(NodeData nodeData)
Deprecated.
Same as getValueString(nd, dateFormat) but using the users short date format.
|
static String |
getValueString(NodeData nodeData,
String dateFormat)
Deprecated.
Returns a String representation of the value.
|
static String |
getValueString(javax.jcr.Value value,
String dateFormat)
Deprecated.
Same as value.getString(), but using custom date format.
|
static Object |
inherit(Content node,
String name)
Deprecated.
Inherit a value.
|
static Object |
inherit(Content node,
String name,
Object dflt)
Deprecated.
Inherit a value.
|
static String |
inheritString(Content node,
String name)
Deprecated.
Inherit a value.
|
static String |
inheritString(Content node,
String name,
String dflt)
Deprecated.
Inherit a value.
|
static NodeData |
setValue(NodeData nodeData,
Object valueObj)
Deprecated.
Calls the correct setValue method based on object type.
|
public static String getValueString(NodeData nodeData)
public static String getValueString(NodeData nodeData, String dateFormat)
dateFormat
- date format to use in the case it is a datepublic static String getValueString(javax.jcr.Value value, String dateFormat)
public static String inheritString(Content node, String name) throws javax.jcr.RepositoryException
node
- Node expected to define or inherit the searched node value.name
- Name of the nodeData.javax.jcr.RepositoryException
public static String inheritString(Content node, String name, String dflt) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static Object inherit(Content node, String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static Object inherit(Content node, String name, Object dflt) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static Object getValueObject(NodeData nd)
public static NodeData setValue(NodeData nodeData, Object valueObj) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static String getTypeName(NodeData nd)
public static String getString(String repository, String path)
public static String getString(Content node, String name)
public static String getString(String repository, String path, String defaultValue)
public static String getString(Content node, String name, String defaultValue)
public static Calendar getDate(Content node, String name, Calendar defaultValue)
public static boolean getBoolean(Content node, String name, boolean defaultValue)
public static NodeData getOrCreate(Content node, String name) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreate(Content node, String name, int type) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreate(Content node, String name, Object obj) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreateAndSet(Content node, String name, Object obj) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreateAndSet(Content node, String name, long value) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreateAndSet(Content node, String name, javax.jcr.Value[] value) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreateAndSet(Content node, String name, int value) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static NodeData getOrCreateAndSet(Content node, String name, boolean value) throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.RepositoryException
public static String getI18NString(Content node, String str)
public static String getI18NString(Content node, String str, String basename)
public static javax.jcr.Value createValue(String valueStr, int type) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated public static javax.jcr.Value createValue(Object obj, javax.jcr.ValueFactory valueFactory) throws javax.jcr.RepositoryException
PropertyUtil.createValue(Object, ValueFactory)
insteadjavax.jcr.RepositoryException
@Deprecated public static javax.jcr.Value createValue(String valueStr, int type, javax.jcr.ValueFactory valueFactory)
PropertyUtil.createValue(String, int, ValueFactory)
instead.@Deprecated public static int getJCRPropertyType(Object obj)
PropertyUtil.getJCRPropertyType(Object)
instead@Deprecated public static List<String> getValuesStringList(javax.jcr.Value[] values)
PropertyUtil.getValuesStringList(Value[])
instead@Deprecated public static String getDateFormat()
PropertyUtil.getDateFormat()
insteadCopyright © 2003–2018 Magnolia International Ltd.. All rights reserved.