|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.session.SessionHelper
Helper class for accessing the namespaces and node types associated with a JCR Session.
| Constructor Summary | |
SessionHelper(Session session)
Creates a helper for accessing the given session. |
|
| Method Summary | |
boolean |
equals(Object that)
Compares session helpers for equality. |
String |
getName(Name name)
Returns the prefixed JCR name that represents the given qualified name. |
NodeType |
getNodeType(Name name)
Returns the named node type. |
NodeType |
getNodeType(String name)
Returns the named node type. |
int |
hashCode()
Calculates the session helper hash code. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionHelper(Session session)
session - current session| Method Detail |
public String getName(Name name)
throws IllegalStateException,
RuntimeException
name - qualified name
IllegalStateException - if the namespace does not exist
RuntimeException - if a repository error occurs
public NodeType getNodeType(Name name)
throws IllegalStateException,
RuntimeException
getWorkspace().getNodeTypeManager()
from the current session.
name - qualified node type name
IllegalStateException - if the named node type does not exist
RuntimeException - if a repository error occurs
public NodeType getNodeType(String name)
throws IllegalStateException,
RuntimeException
getWorkspace().getNodeTypeManager()
from the current session.
name - node type name
IllegalStateException - if the named node type does not exist
RuntimeException - if a repository error occurspublic boolean equals(Object that)
that - the object to compare this one to
true if the objects are equal,
false otherwiseObject.equals(Object)public int hashCode()
Object.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||