public class PropertiesImportExport extends Object
Constructor and Description |
---|
PropertiesImportExport() |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertPropertyStringToObject(String valueStr) |
void |
createNodes(javax.jcr.Node root,
InputStream propertiesStream)
Each property or node in the stream has to be separated by the \n.
|
void |
createNodes(javax.jcr.Node root,
String... properties)
Each property is one item in the properties varargs passed in.
|
protected void |
populateNode(javax.jcr.Node node,
String name,
String valueStr) |
protected void |
setIdentifier(javax.jcr.Node ignoredNode,
String ignoredString)
Intentionally created this method to allow simple creation of subclasses actually setting the identifier (e.g.
|
Properties |
toProperties(javax.jcr.Node node,
AbstractPredicate<javax.jcr.Node> nodePredicate) |
public void createNodes(javax.jcr.Node root, String... properties) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
public void createNodes(javax.jcr.Node root, InputStream propertiesStream) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected void populateNode(javax.jcr.Node node, String name, String valueStr) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void setIdentifier(javax.jcr.Node ignoredNode, String ignoredString)
public Properties toProperties(javax.jcr.Node node, AbstractPredicate<javax.jcr.Node> nodePredicate) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.