Class SessionOperation<T>
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.session.operation.SessionOperation<T>
-
- Direct Known Subclasses:
ItemOperation,LockOperation,UserManagerOperation
public abstract class SessionOperation<T> extends Object
ASessionOperationprovides an execution context for executing session scoped operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSessionOperation(@NotNull String name)protectedSessionOperation(@NotNull String name, boolean update)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPreconditions()booleanisLogout()booleanisRefresh()Returntrueif this operation refreshed the transient spacebooleanisSave()booleanisUpdate()Returnstrueif this operation updates the the transientTperform()TperformNullable()voidperformVoid()StringtoString()Provide details about the operation being performed.
-
-
-
Method Detail
-
isUpdate
public boolean isUpdate()
Returnstrueif this operation updates the the transient
-
isRefresh
public boolean isRefresh()
Returntrueif this operation refreshed the transient space
-
isSave
public boolean isSave()
-
isLogout
public boolean isLogout()
-
checkPreconditions
public void checkPreconditions() throws RepositoryException- Throws:
RepositoryException
-
perform
@NotNull public T perform() throws RepositoryException
- Throws:
RepositoryException
-
performNullable
@Nullable public T performNullable() throws RepositoryException
- Throws:
RepositoryException
-
performVoid
public void performVoid() throws RepositoryException- Throws:
RepositoryException
-
-