Package org.ametys.workspaces.repository
Class ConsoleHelper
java.lang.Object
org.ametys.workspaces.repository.ConsoleHelper
Deprecated.
Helper methods to manipulating JCR nodes in JCR repository console
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
convertSingleToMultipleProperty
(javax.jcr.Node node, String propertyName) Deprecated.Helper to convert a single-valued property to a multi-valued property.static void
setProperty
(javax.jcr.Node node, String name, Object values) Deprecated.Helper to set ambiguous object values from a node property
-
Method Details
-
setProperty
public static void setProperty(javax.jcr.Node node, String name, Object values) throws javax.jcr.RepositoryException Deprecated.Helper to set ambiguous object values from a node property- Parameters:
node
- the nodename
- the property namevalues
- the property values as String[] or Value[]- Throws:
javax.jcr.RepositoryException
- if an error occurred
-
convertSingleToMultipleProperty
public static boolean convertSingleToMultipleProperty(javax.jcr.Node node, String propertyName) throws javax.jcr.RepositoryException Deprecated.Helper to convert a single-valued property to a multi-valued property. This helper checks that property exists and that it is not already multiple.- Parameters:
node
- the node holding the propertypropertyName
- the property's name- Returns:
- true if changes was made
- Throws:
javax.jcr.RepositoryException
- if an error occurred
-
RepositoryScriptHelper
instead This helper (moved from JCR to Repository) has been kept only to maintained backward compatibility with old script using directly the fully qualified name of this class instead of Repository.helper