|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmacaw.persistenceLayer.demo.InMemoryChangeEventManager
public class InMemoryChangeEventManager
A manager class that is called by various classes to make a record of editing changes
made to instances of objects found in macaw.model. It stores records of
these changes in memory.
| Constructor Summary | |
|---|---|
InMemoryChangeEventManager()
|
|
| Method Summary | |
|---|---|
void |
clear()
remove all change events |
java.util.ArrayList<MacawChangeEvent> |
getAllChanges()
|
java.util.ArrayList<MacawChangeEvent> |
getChangeHistoryByUser(User user)
|
java.util.ArrayList<MacawChangeEvent> |
getChangeHistoryForListChoices()
retrieve all change events that are associated with curation changes made to list choice classes, such as AvailabilityState, CleaningState,
Category and AliasFilePath. |
java.util.ArrayList<MacawChangeEvent> |
getChangeHistoryForSupportingDocument(User user,
SupportingDocument supportingDocument)
provides the collection of change events associated with curating a given supporting document. |
java.util.ArrayList<MacawChangeEvent> |
getChangeHistoryForValueLabels(User user,
Variable variable)
provides a collection of change events for value labels associated with a given variable |
java.util.ArrayList<MacawChangeEvent> |
getChangeHistoryForVariable(User user,
Variable variable)
provides a collection of change events that are associated with the curation of a given variable. |
void |
registerChangeEvent(MacawChangeEvent event)
add a change event that is a result of some curation operation. |
void |
registerChangeEvents(java.util.ArrayList<MacawChangeEvent> events)
add a collection of change events that are a result of some curation operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryChangeEventManager()
| Method Detail |
|---|
public java.util.ArrayList<MacawChangeEvent> getChangeHistoryForVariable(User user,
Variable variable)
throws MacawException
MacawException
public java.util.ArrayList<MacawChangeEvent> getChangeHistoryForSupportingDocument(User user,
SupportingDocument supportingDocument)
throws MacawException
user - supportingDocument - the target of change.
MacawException
public java.util.ArrayList<MacawChangeEvent> getChangeHistoryForValueLabels(User user,
Variable variable)
throws MacawException
user - variable - - the variable that owns the value labels
MacawException
public java.util.ArrayList<MacawChangeEvent> getChangeHistoryByUser(User user)
throws MacawException
MacawException
public java.util.ArrayList<MacawChangeEvent> getChangeHistoryForListChoices()
throws MacawException
AvailabilityState, CleaningState,
Category and AliasFilePath.
MacawException
public void registerChangeEvent(MacawChangeEvent event)
throws MacawException
event -
MacawException
public void registerChangeEvents(java.util.ArrayList<MacawChangeEvent> events)
throws MacawException
events -
MacawExceptionpublic void clear()
public java.util.ArrayList<MacawChangeEvent> getAllChanges()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||