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 RepositoryException
RepositoryException
@NotNull public T perform() throws RepositoryException
RepositoryException
@Nullable public T performNullable() throws RepositoryException
RepositoryException
public void performVoid() throws RepositoryException
RepositoryException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.