|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.session.SessionItemOperation<T>
public abstract class SessionItemOperation<T>
Session operation for accessing an item at a given path. See the static methods for factories of different kinds of item operations.
| Method Summary | |
|---|---|
static SessionItemOperation<ItemImpl> |
getItem(String path)
Creates a session operation for getting the item at the given path. |
static SessionItemOperation<NodeImpl> |
getNode(String path)
Creates a session operation for getting the node at the given path. |
static SessionItemOperation<PropertyImpl> |
getProperty(String path)
Creates a session operation for getting the property at the given path. |
static SessionItemOperation<Boolean> |
itemExists(String path)
Creates a session operation for checking the existence of an item at the given path. |
static SessionItemOperation<Boolean> |
nodeExists(String path)
Creates a session operation for checking the existence of a node at the given path. |
protected abstract T |
perform(ItemManager manager,
org.apache.jackrabbit.spi.Path path)
Performs this operation using the given item manager. |
T |
perform(SessionContext context)
Performs this operation on the specified item. |
static SessionItemOperation<Boolean> |
propertyExists(String path)
Creates a session operation for checking the existence of a property at the given path. |
static SessionItemOperation<Object> |
remove(String path)
Creates a session operation for removing the item at the given path. |
String |
toString()
Returns a string representation of this operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SessionItemOperation<Boolean> itemExists(String path)
path - absolute path of the item
public static SessionItemOperation<Boolean> propertyExists(String path)
path - absolute path of the property
public static SessionItemOperation<Boolean> nodeExists(String path)
path - absolute path of the node
public static SessionItemOperation<ItemImpl> getItem(String path)
path - absolute path of the item
public static SessionItemOperation<PropertyImpl> getProperty(String path)
path - absolute path of the property
public static SessionItemOperation<NodeImpl> getNode(String path)
path - absolute path of the node
public static SessionItemOperation<Object> remove(String path)
path - absolute path of the item
public T perform(SessionContext context)
throws RepositoryException
perform(ItemManager, Path) method to actually perform the
selected operation.
perform in interface SessionOperation<T>context - component context of this session
RepositoryException - if the operation fails
protected abstract T perform(ItemManager manager,
org.apache.jackrabbit.spi.Path path)
throws RepositoryException
manager - item manager of this sessionpath - resolved path of the item
RepositoryException - if the operation failspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||