info.magnolia.cms.util
Class DumperUtil

java.lang.Object
  extended by info.magnolia.cms.util.DumperUtil

public class DumperUtil
extends Object

Used to dump 1:1 repository content. The level defines how deep the recursion should go.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
philipp

Constructor Summary
DumperUtil()
           
 
Method Summary
static String dump(Content content)
           
static String dump(Content content, int level)
          Used to dump into a String.
static void dump(Content content, int level, PrintStream out)
          Dump to a stream.
static void dump(Content content, PrintStream out)
          Dump this node to a stream.
static void dump(javax.jcr.Node n, int level, PrintWriter out)
          Dump a JCR Node to a Writer.
static void dump(javax.jcr.Node n, PrintWriter out)
          Dump only this JCR-Node to a writer.
static void dumpChanges(HierarchyManager hm)
           
static void dumpChanges(javax.jcr.Session session, PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumperUtil

public DumperUtil()
Method Detail

dump

public static String dump(Content content)

dump

public static String dump(Content content,
                          int level)
Used to dump into a String.

Parameters:
content -
level -
Returns:

dump

public static void dump(Content content,
                        int level,
                        PrintStream out)
Dump to a stream.

Parameters:
content -
level -
out -

dump

public static void dump(Content content,
                        PrintStream out)
Dump this node to a stream.

Parameters:
content -
out -

dump

public static void dump(javax.jcr.Node n,
                        int level,
                        PrintWriter out)
                 throws javax.jcr.RepositoryException
Dump a JCR Node to a Writer.

Parameters:
n -
level -
out -
Throws:
javax.jcr.RepositoryException

dump

public static void dump(javax.jcr.Node n,
                        PrintWriter out)
                 throws javax.jcr.RepositoryException
Dump only this JCR-Node to a writer.

Parameters:
n -
out -
Throws:
javax.jcr.RepositoryException

dumpChanges

public static void dumpChanges(HierarchyManager hm)

dumpChanges

public static void dumpChanges(javax.jcr.Session session,
                               PrintWriter out)
                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.