|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.command.CommandHelper
Utility class for getting and setting context attributes.
| Method Summary | |
static ResourceBundle |
getBundle()
|
static javax.jcr.Node |
getCurrentNode(org.apache.commons.chain.Context ctx)
Gets the current working Node |
static javax.jcr.Item |
getItem(org.apache.commons.chain.Context ctx,
String path)
Gets the Item at the given path. |
static Iterator |
getItems(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
Gets the Item s under the given Node that
match the pattern |
static javax.jcr.Node |
getNode(org.apache.commons.chain.Context ctx,
String path)
Gets the Node at the given path. |
static javax.jcr.NodeIterator |
getNodes(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
Gets the Node s under the given Node that
match the given pattern. |
static PrintWriter |
getOutput(org.apache.commons.chain.Context ctx)
Gets the current PrintWriter |
static javax.jcr.PropertyIterator |
getProperties(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
Gets the Property s under the current working node for the
given pattern |
static javax.jcr.Repository |
getRepository(org.apache.commons.chain.Context ctx)
Gets the current working Repository |
static javax.jcr.Session |
getSession(org.apache.commons.chain.Context ctx)
Gets the current working Session |
static boolean |
hasNode(org.apache.commons.chain.Context ctx,
String path)
Checks Node existence. |
static void |
setCurrentNode(org.apache.commons.chain.Context ctx,
javax.jcr.Node node)
Sets the current working Node. |
static void |
setOutput(org.apache.commons.chain.Context ctx,
PrintWriter out)
Sets the current PrintWriter. |
static void |
setRepository(org.apache.commons.chain.Context ctx,
javax.jcr.Repository repository)
Sets the current working Repository |
static void |
setSession(org.apache.commons.chain.Context ctx,
javax.jcr.Session session)
Sets the current working Session |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void setOutput(org.apache.commons.chain.Context ctx,
PrintWriter out)
PrintWriter.
ctx - the Contextout - the PrintWriter
public static void setCurrentNode(org.apache.commons.chain.Context ctx,
javax.jcr.Node node)
Node.
ctx - the Contextnode - the current working Node.
public static void setRepository(org.apache.commons.chain.Context ctx,
javax.jcr.Repository repository)
Repository
ctx - the Contextrepository - the current working Repository
public static void setSession(org.apache.commons.chain.Context ctx,
javax.jcr.Session session)
throws CommandException
Session
ctx - the Contextsession - the current working Session
CommandException - if there's an open working Sessionpublic static PrintWriter getOutput(org.apache.commons.chain.Context ctx)
PrintWriter
ctx - the Context
PrintWriter
public static javax.jcr.Node getCurrentNode(org.apache.commons.chain.Context ctx)
throws CommandException
Node
ctx - the Context
Node
CommandException - if the current working Node can't be found.
public static javax.jcr.Repository getRepository(org.apache.commons.chain.Context ctx)
throws CommandException
Repository
ctx - the Context
Repository
CommandException - if the current working Repository is unset.
public static javax.jcr.Session getSession(org.apache.commons.chain.Context ctx)
throws CommandException
Session
ctx - the Context
Session
CommandException - if the current working Session is unset.
public static javax.jcr.Node getNode(org.apache.commons.chain.Context ctx,
String path)
throws CommandException,
javax.jcr.RepositoryException
Node at the given path.
ctx - the Contextpath - the path to the Node
Node at the given path
CommandException - if the Node isn't found.
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryException
public static javax.jcr.Item getItem(org.apache.commons.chain.Context ctx,
String path)
throws CommandException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
Item at the given path. Node.
ctx - the Contextpath - the path to the Item
Item at the given path
CommandException - if a Command internal error occurs.
javax.jcr.PathNotFoundException - if there's no Node at the given path.
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryException
public static boolean hasNode(org.apache.commons.chain.Context ctx,
String path)
throws CommandException,
javax.jcr.RepositoryException
Node existence.
ctx - the Contextpath - the path to the Node
Node exists at the given path
CommandException - if the current working Session is unset.
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryException
public static javax.jcr.NodeIterator getNodes(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
throws javax.jcr.RepositoryException
Node s under the given Node that
match the given pattern.
ctx - the Contextnode - the parent Nodepattern - the pattern
Iterator that contains the matching nodes
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryException
public static javax.jcr.PropertyIterator getProperties(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
throws javax.jcr.RepositoryException
Property s under the current working node for the
given pattern
ctx - the Contextnode - the parent Nodepattern - the pattern
PropertyIterator
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryExceptionpublic static ResourceBundle getBundle()
ResourceBundle
public static Iterator getItems(org.apache.commons.chain.Context ctx,
javax.jcr.Node node,
String pattern)
throws javax.jcr.RepositoryException
Item s under the given Node that
match the pattern
ctx - the Contextnode - the parent Nodepattern - the pattern
Iterator with the Item s that
match the given pattern.
javax.jcr.RepositoryException - if the underlying repository throws a
RepositoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||