|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.orchestra.conversation.Conversation
org.apache.myfaces.orchestra.conversation.versioning.VersioningConversation
public class VersioningConversation
A special kind of conversation which provides snapshot- and rollback functionality. Both commands can be triggered from within a version scoped managed-bean.
A typical usecase may be a multi-edit page whith different levels of edit-/cancel actions on a hierarchical tree of objects. (e.g. Company -> persons -> addresses) Triggering a snapshot will "copy" the whole conversational data, means all the beans which are currently located in this conversation. The "copy" process currently only supports serializingSerializingConversationDataHolder,
cloning maybe added in future versions. Triggering snapshots should be done with care, since
it adds some overhead to memory and is therefore no that well scaleable.
| Constructor Summary | |
|---|---|
VersioningConversation(org.apache.myfaces.orchestra.conversation.ConversationContext conversationContext,
String name,
org.apache.myfaces.orchestra.conversation.ConversationFactory factory,
String strategy)
|
|
| Method Summary | |
|---|---|
void |
clearAllSavePoints()
Frees all SavePoints and versioned conversational data |
SavePoint |
createSavePoint()
Creates a snapshot of the actual conversational data. |
void |
createSavePoint(String savePointName)
Creates a snapshot of the actual conversational data. |
void |
revertToLastSavePoint()
Reverts to the last snapshot. |
void |
revertToSavePoint(SavePoint savePoint)
Reverts to the given snapshot (SavePoint). |
void |
revertToSavePoint(String savePointName)
Reverts to a snapshot via the given SavePoint name. |
| Methods inherited from class org.apache.myfaces.orchestra.conversation.Conversation |
|---|
addAspect, bind, checkValid, destroy, getAspect, getAttribute, getBeans, getCurrentInstance, getFactory, getLastAccess, getName, hasAttribute, invalidate, invalidateAndRestart, isInvalid, removeAttribute, setAttribute, setBeans, setBinder, touch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersioningConversation(org.apache.myfaces.orchestra.conversation.ConversationContext conversationContext,
String name,
org.apache.myfaces.orchestra.conversation.ConversationFactory factory,
String strategy)
| Method Detail |
|---|
public SavePoint createSavePoint()
public void createSavePoint(String savePointName)
savePointName - The name of the snapshot; Should be "remembered"
for later rollback references.public void revertToSavePoint(SavePoint savePoint)
public void revertToSavePoint(String savePointName)
public void revertToLastSavePoint()
public void clearAllSavePoints()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||