apollo.editor
Class AnnotationChangeLog
java.lang.Object
apollo.editor.AnnotationChangeLog
- All Implemented Interfaces:
- AnnotationChangeListener, java.io.Serializable, java.util.EventListener
public class AnnotationChangeLog
- extends java.lang.Object
- implements AnnotationChangeListener, java.io.Serializable
DELETE THIS - replace by TransactionManager - i think i got all references -
test that it works out and delete!
Logs AnnotationChangeEvents which are fired when edits occur.
repackage all editing stuff to apollo.edit?
AnnotationChangeLog serializes to preserve log in backup
ControlledObjectI actually extends Serializable (not sure why)
which makes this possible
Should ACL clear out on DatLoadEvents? yes - definitely
I think loading is going to be a lot easier if there is one ACL per curation.
If (later on) we want cross curation undo there could be a master ACL in addition
to curation ACLs, that tracked transactions across all species (analogous to
MasterController), though even that gets confusing with loading curations separately.
So CurationState would holds an ACL (and CurationManager might hold the master ACL)
took out implementing ControlledObjectI - dont think we need it
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationChangeLog
public AnnotationChangeLog()
handleAnnotationChangeEvent
public boolean handleAnnotationChangeEvent(AnnotationChangeEvent evt)
- Specified by:
handleAnnotationChangeEvent in interface AnnotationChangeListener
clearTransactions
public void clearTransactions()
- if new data is loaded transactions need to be cleared out. CurationState
handles this.
addTransaction
public void addTransaction(Transaction trans)
getTransactions
public java.util.List getTransactions()
- Returns list of Transactions
getTransaction
public Transaction getTransaction(int i)
getTransactionSize
public int getTransactionSize()
hasTransactions
public boolean hasTransactions()
undo
public void undo()