|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.importexport.PropertiesImportExport
public class PropertiesImportExport
Utility class providing support for properties-like format to import/export jcr data. Useful when data regularly needs to be bootstrapped, for instance, and the jcr xml format is too cumbersome to maintain. TODO : handle conflicts (already existing nodes, properties, what to do with existing properties if we don't create new nodes, ...) TODO : consolidate syntax
Constructor Summary | |
---|---|
PropertiesImportExport()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesImportExport()
Method Detail |
---|
public void createContent(Content root, InputStream propertiesStream) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
protected void populateContent(Content c, String name, String valueStr) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected Object convertNodeDataStringToObject(String valueStr)
@Deprecated public static Properties toProperties(HierarchyManager hm) throws Exception
PropertiesImportExport.toProperties(javax.jcr.Node, info.magnolia.jcr.predicate.AbstractPredicate)
Exception
public static Properties toProperties(Content rootContent) throws Exception
PropertiesImportExport.toProperties(javax.jcr.Node, info.magnolia.jcr.predicate.AbstractPredicate)
Exception
public static Properties contentToProperties(HierarchyManager hm) throws Exception
PropertiesImportExport.toProperties(javax.jcr.Node, info.magnolia.jcr.predicate.AbstractPredicate)
Exception
public static Properties contentToProperties(Content rootContent) throws Exception
PropertiesImportExport.toProperties(javax.jcr.Node, info.magnolia.jcr.predicate.AbstractPredicate)
Exception
public static Properties contentToProperties(Content rootContent, Content.ContentFilter filter) throws Exception
PropertiesImportExport.toProperties(javax.jcr.Node, info.magnolia.jcr.predicate.AbstractPredicate)
Exception
public static void appendNodeProperties(Content node, Properties out)
public static String dumpPropertiesToString(Content content, Content.ContentFilter filter) throws Exception
Exception
public static String dumpPropertiesToString(Properties properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |