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
ASessionOperation
provides an execution context for executing session scoped operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SessionOperation(@NotNull String name)
protected
SessionOperation(@NotNull String name, boolean update)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkPreconditions()
boolean
isLogout()
boolean
isRefresh()
Returntrue
if this operation refreshed the transient spaceboolean
isSave()
boolean
isUpdate()
Returnstrue
if this operation updates the the transientT
perform()
T
performNullable()
void
performVoid()
String
toString()
Provide details about the operation being performed.
-
-
-
Method Detail
-
isUpdate
public boolean isUpdate()
Returnstrue
if this operation updates the the transient
-
isRefresh
public boolean isRefresh()
Returntrue
if 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
-
-