public abstract class SessionOperation<T> extends Object
SessionOperation provides an execution context for executing session scoped operations.| Modifier | Constructor and Description |
|---|---|
protected |
SessionOperation(String name) |
protected |
SessionOperation(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.
|
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 RepositoryException
RepositoryException@Nonnull public T perform() throws RepositoryException
RepositoryException@Nullable public T performNullable() throws RepositoryException
RepositoryExceptionpublic void performVoid()
throws RepositoryException
RepositoryExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.