public abstract class SessionOperation<T> extends Object
SessionOperation
provides an execution context for executing session scoped operations.Modifier | Constructor and Description |
---|---|
protected |
SessionOperation(@NotNull String name) |
protected |
SessionOperation(@NotNull String name,
boolean update) |
Modifier and Type | Method and Description |
---|---|
void |
checkPreconditions() |
boolean |
isLogout() |
boolean |
isRefresh()
Return
true if this operation refreshed the transient space |
boolean |
isSave() |
boolean |
isUpdate()
Returns
true if this operation updates the the transient |
T |
perform() |
T |
performNullable() |
void |
performVoid() |
String |
toString()
Provide details about the operation being performed.
|
protected SessionOperation(@NotNull @NotNull String name, boolean update)
protected SessionOperation(@NotNull @NotNull String name)
public boolean isUpdate()
true
if this operation updates the the transientpublic boolean isRefresh()
true
if this operation refreshed the transient spacepublic boolean isSave()
public boolean isLogout()
public void checkPreconditions() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@NotNull public T perform() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Nullable public T performNullable() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void performVoid() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.