Package org.bedework.eventreg.bus
Class ChangeManager
- java.lang.Object
-
- org.bedework.eventreg.bus.ChangeManager
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged
public class ChangeManager extends Object implements org.bedework.util.logging.Logged
Handle change logging.- Author:
- douglm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangeManager.ChangeItemSpecify the change by label and value
-
Constructor Summary
Constructors Constructor Description ChangeManager(SessionManager sessMan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChange(Change c)voidaddChange(Registration reg, String type)voidaddChange(Registration reg, String type, ChangeManager.ChangeItem ci)voidaddRegFulfilled(Registration reg)voidaddTicketsAdded(Registration reg, int numTickets)voiddeleteReg(Registration reg)List<Change>getChanges(String ts)org.bedework.util.logging.BwLoggergetLogger()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Constructor Detail
-
ChangeManager
public ChangeManager(SessionManager sessMan)
- Parameters:
sessMan-
-
-
Method Detail
-
getChanges
public List<Change> getChanges(String ts) throws Throwable
- Parameters:
ts-- Returns:
- changes
- Throws:
Throwable
-
addChange
public void addChange(Registration reg, String type) throws Throwable
- Parameters:
reg-type-- Throws:
Throwable
-
addChange
public void addChange(Registration reg, String type, ChangeManager.ChangeItem ci) throws Throwable
- Parameters:
reg-type-ci-- Throws:
Throwable
-
addTicketsAdded
public void addTicketsAdded(Registration reg, int numTickets) throws Throwable
- Parameters:
reg-numTickets-- Throws:
Throwable
-
addRegFulfilled
public void addRegFulfilled(Registration reg) throws Throwable
- Parameters:
reg-- Throws:
Throwable
-
deleteReg
public void deleteReg(Registration reg) throws Throwable
- Parameters:
reg-- Throws:
Throwable
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()
- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-
-