org.nuiton.topia.history
Class TopiaHistoryListener

java.lang.Object
  extended by org.nuiton.topia.history.TopiaHistoryListener
All Implemented Interfaces:
java.util.EventListener, TopiaEntityListener

public class TopiaHistoryListener
extends java.lang.Object
implements TopiaEntityListener

Author:
poussin

Field Summary
protected  TopiaContext context
           
protected  boolean historyCreate
           
protected  boolean historyDelete
           
protected  boolean historyLoad
           
protected  boolean historyUpdate
           
 
Constructor Summary
TopiaHistoryListener(TopiaContext context, boolean historyCreate, boolean historyDelete, boolean historyUpdate, boolean historyLoad)
           
 
Method Summary
protected  void addToHistory(TopiaEntity entity, int action)
           
 void create(TopiaEntityEvent e)
           
 void delete(TopiaEntityEvent e)
           
 void load(TopiaEntityEvent e)
           
 void update(TopiaEntityEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

historyCreate

protected boolean historyCreate

historyDelete

protected boolean historyDelete

historyUpdate

protected boolean historyUpdate

historyLoad

protected boolean historyLoad

context

protected TopiaContext context
Constructor Detail

TopiaHistoryListener

public TopiaHistoryListener(TopiaContext context,
                            boolean historyCreate,
                            boolean historyDelete,
                            boolean historyUpdate,
                            boolean historyLoad)
Method Detail

create

public void create(TopiaEntityEvent e)
Specified by:
create in interface TopiaEntityListener

delete

public void delete(TopiaEntityEvent e)
Specified by:
delete in interface TopiaEntityListener

update

public void update(TopiaEntityEvent e)
Specified by:
update in interface TopiaEntityListener

load

public void load(TopiaEntityEvent e)
Specified by:
load in interface TopiaEntityListener

addToHistory

protected void addToHistory(TopiaEntity entity,
                            int action)


Copyright © 2004-2010 CodeLutin. All Rights Reserved.