org.enhydra.shark.eventaudit
Class DODSEventAuditManager
java.lang.Object
org.enhydra.shark.eventaudit.DODSEventAuditManager
- All Implemented Interfaces:
- EventAuditManagerInterface
- public class DODSEventAuditManager
- extends java.lang.Object
- implements EventAuditManagerInterface
Used to save, restore or delete relevant engine objects from database, using DODS
persistent layer.
- Version:
- 1.0
- Author:
- Tanja Jovanovic
Method Summary |
protected com.lutris.appserver.server.sql.DBTransaction |
__getDBTransaction()
|
void |
configure(CallbackUtilities cb)
|
void |
delete(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
|
void |
delete(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
|
void |
delete(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
|
void |
delete(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
|
java.math.BigDecimal |
getNextDecId(java.lang.String idName)
|
protected ActivityStateEventAuditDO |
getPersistedActivityStateObject(java.lang.String value,
boolean searchByKeyValue)
|
protected AssignmentEventAuditDO[] |
getPersistedAssignmentEventObjects(java.lang.String pId,
java.lang.String aId)
|
protected CreateProcessEventAuditDO[] |
getPersistedCreateProcessEventObjects(java.lang.String pId)
|
protected DataEventAuditDO[] |
getPersistedDataEventObjects(java.lang.String pId,
java.lang.String aId)
|
protected EventTypeDO |
getPersistedEventTypeObject(java.lang.String value,
boolean searchByKeyValue)
|
protected NewEventAuditDataDO |
getPersistedNewEventAuditDataObject(DataEventAuditDO deaDO,
java.lang.String vdId)
|
protected AssignmentEventAuditDO |
getPersistedObject(AssignmentEventAuditPersistenceObject aea)
|
protected CreateProcessEventAuditDO |
getPersistedObject(CreateProcessEventAuditPersistenceObject cpea)
|
protected DataEventAuditDO |
getPersistedObject(DataEventAuditPersistenceObject dea)
|
protected StateEventAuditDO |
getPersistedObject(StateEventAuditPersistenceObject sea)
|
protected OldEventAuditDataDO |
getPersistedOldEventAuditDataObject(DataEventAuditDO deaDO,
java.lang.String vdId)
|
protected ProcessStateEventAuditDO |
getPersistedProcessStateObject(java.lang.String value,
boolean searchByKeyValue)
|
protected StateEventAuditDO[] |
getPersistedStateEventObjects(java.lang.String pId,
java.lang.String aId)
|
protected void |
initActivityAndProcessStatesTable()
Fills the state table with possible activity and process states. |
void |
persist(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
|
void |
persist(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
|
void |
persist(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
|
void |
persist(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
|
protected void |
persistNewEventAuditDataBLOB(NewEventAuditDataDO nedDO,
java.lang.Object val)
|
protected void |
persistNewEventAuditDataBLOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
persistNewEventAuditDataWOB(NewEventAuditDataWOBDO nedDO,
java.lang.Object val)
|
protected void |
persistNewEventAuditDataWOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
persistOldEventAuditDataBLOB(OldEventAuditDataDO oedDO,
java.lang.Object val)
|
protected void |
persistOldEventAuditDataBLOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
persistOldEventAuditDataWOB(OldEventAuditDataWOBDO oedDO,
java.lang.Object val)
|
protected void |
persistOldEventAuditDataWOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
refreshDOCaches()
|
boolean |
restore(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
|
protected boolean |
restore(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject engineObj,
AssignmentEventAuditDO DO)
|
boolean |
restore(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
|
protected boolean |
restore(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject engineObj,
CreateProcessEventAuditDO DO)
|
boolean |
restore(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
|
protected boolean |
restore(WMSessionHandle shandle,
DataEventAuditPersistenceObject engineObj,
DataEventAuditDO DO)
|
boolean |
restore(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
|
protected boolean |
restore(WMSessionHandle shandle,
StateEventAuditPersistenceObject engineObj,
StateEventAuditDO DO)
|
java.util.List |
restoreActivityHistory(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String actId)
|
protected void |
restoreNewEventAuditDataBLOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
restoreNewEventAuditDataWOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
restoreOldEventAuditDataBLOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
protected void |
restoreOldEventAuditDataWOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
|
java.util.List |
restoreProcessHistory(WMSessionHandle shandle,
java.lang.String procId)
|
protected void |
setLDBName()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_CHANNEL
protected static final java.lang.String LOG_CHANNEL
- See Also:
- Constant Field Values
PACKAGE_LOADED
protected static final java.lang.String PACKAGE_LOADED
- See Also:
- Constant Field Values
PACKAGE_UNLOADED
protected static final java.lang.String PACKAGE_UNLOADED
- See Also:
- Constant Field Values
PACKAGE_UPDATED
protected static final java.lang.String PACKAGE_UPDATED
- See Also:
- Constant Field Values
PROCESS_CREATED
protected static final java.lang.String PROCESS_CREATED
- See Also:
- Constant Field Values
PROCESS_STATE_CHANGED
protected static final java.lang.String PROCESS_STATE_CHANGED
- See Also:
- Constant Field Values
PROCESS_CONTEXT_CHANGED
protected static final java.lang.String PROCESS_CONTEXT_CHANGED
- See Also:
- Constant Field Values
ACTIVITY_STATE_CHANGED
protected static final java.lang.String ACTIVITY_STATE_CHANGED
- See Also:
- Constant Field Values
ACTIVITY_CONTEXT_CHANGED
protected static final java.lang.String ACTIVITY_CONTEXT_CHANGED
- See Also:
- Constant Field Values
ACTIVITY_RESULT_CHANGED
protected static final java.lang.String ACTIVITY_RESULT_CHANGED
- See Also:
- Constant Field Values
ACTIVITY_ASSIGNMENT_CHANGED
protected static final java.lang.String ACTIVITY_ASSIGNMENT_CHANGED
- See Also:
- Constant Field Values
RESOURCE_TYPE_OBJECT
protected static final int RESOURCE_TYPE_OBJECT
- See Also:
- Constant Field Values
PROCESS_DEFINITION_TYPE_OBJECT
protected static final int PROCESS_DEFINITION_TYPE_OBJECT
- See Also:
- Constant Field Values
PROCESS_TYPE_OBJECT
protected static final int PROCESS_TYPE_OBJECT
- See Also:
- Constant Field Values
ACTIVITY_TYPE_OBJECT
protected static final int ACTIVITY_TYPE_OBJECT
- See Also:
- Constant Field Values
ASSIGNMENT_TYPE_OBJECT
protected static final int ASSIGNMENT_TYPE_OBJECT
- See Also:
- Constant Field Values
EVENT_AUDIT_ASSIGNMENT_TYPE_OBJECT
protected static final int EVENT_AUDIT_ASSIGNMENT_TYPE_OBJECT
- See Also:
- Constant Field Values
EVENT_AUDIT_DATA_TYPE_OBJECT
protected static final int EVENT_AUDIT_DATA_TYPE_OBJECT
- See Also:
- Constant Field Values
EVENT_AUDIT_STATE_TYPE_OBJECT
protected static final int EVENT_AUDIT_STATE_TYPE_OBJECT
- See Also:
- Constant Field Values
EVENT_AUDIT_CREATE_PROCESS_TYPE_OBJECT
protected static final int EVENT_AUDIT_CREATE_PROCESS_TYPE_OBJECT
- See Also:
- Constant Field Values
EVENT_AUDIT_PACKAGE_TYPE_OBJECT
protected static final int EVENT_AUDIT_PACKAGE_TYPE_OBJECT
- See Also:
- Constant Field Values
activityAndProcessStates
protected static final java.lang.String[] activityAndProcessStates
eventTypes
protected static final java.lang.String[] eventTypes
DB_TYPE_BOOLEAN
protected static final short DB_TYPE_BOOLEAN
- See Also:
- Constant Field Values
DB_TYPE_LONG
protected static final short DB_TYPE_LONG
- See Also:
- Constant Field Values
DB_TYPE_DOUBLE
protected static final short DB_TYPE_DOUBLE
- See Also:
- Constant Field Values
DB_TYPE_VCHAR
protected static final short DB_TYPE_VCHAR
- See Also:
- Constant Field Values
DB_TYPE_DATE
protected static final short DB_TYPE_DATE
- See Also:
- Constant Field Values
DB_TYPE_BLOB
protected static final short DB_TYPE_BLOB
- See Also:
- Constant Field Values
DB_TYPE_XML
protected static final short DB_TYPE_XML
- See Also:
- Constant Field Values
MAX_VCHAR_SIZE_LIMIT
protected static final int MAX_VCHAR_SIZE_LIMIT
- See Also:
- Constant Field Values
max_vchar_size
protected static int max_vchar_size
cus
protected CallbackUtilities cus
_prStates
protected java.util.Map _prStates
_acStates
protected java.util.Map _acStates
_evTypes
protected java.util.Map _evTypes
usingStandardVariableDataModel
protected boolean usingStandardVariableDataModel
persistOldEventAuditData
protected boolean persistOldEventAuditData
storeArraysAsBLOBs
protected boolean storeArraysAsBLOBs
db
protected com.lutris.appserver.server.sql.LogicalDatabase db
DODSEventAuditManager
public DODSEventAuditManager()
configure
public void configure(CallbackUtilities cb)
throws java.lang.Exception
- Specified by:
configure
in interface EventAuditManagerInterface
- Throws:
java.lang.Exception
initActivityAndProcessStatesTable
protected void initActivityAndProcessStatesTable()
throws EventAuditException
- Fills the state table with possible activity and process states. For now, the
'keyValue' and the 'name' attribute of state record has the same value, but in the
future, if the names of states changes, it will be very easy to change this table
entries without affecting other tables. NOTE: When new names are introduced, the
getPersistentXXX that use it also has to be changed
- Throws:
EventAuditException
persist
public void persist(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
throws EventAuditException
- Specified by:
persist
in interface EventAuditManagerInterface
- Throws:
EventAuditException
persist
public void persist(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
throws EventAuditException
- Specified by:
persist
in interface EventAuditManagerInterface
- Throws:
EventAuditException
persist
public void persist(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
throws EventAuditException
- Specified by:
persist
in interface EventAuditManagerInterface
- Throws:
EventAuditException
persist
public void persist(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
throws EventAuditException
- Specified by:
persist
in interface EventAuditManagerInterface
- Throws:
EventAuditException
persistOldEventAuditDataBLOB
protected void persistOldEventAuditDataBLOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
persistOldEventAuditDataBLOB
protected void persistOldEventAuditDataBLOB(OldEventAuditDataDO oedDO,
java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
persistOldEventAuditDataWOB
protected void persistOldEventAuditDataWOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
persistOldEventAuditDataWOB
protected void persistOldEventAuditDataWOB(OldEventAuditDataWOBDO oedDO,
java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
persistNewEventAuditDataBLOB
protected void persistNewEventAuditDataBLOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
persistNewEventAuditDataBLOB
protected void persistNewEventAuditDataBLOB(NewEventAuditDataDO nedDO,
java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
persistNewEventAuditDataWOB
protected void persistNewEventAuditDataWOB(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
persistNewEventAuditDataWOB
protected void persistNewEventAuditDataWOB(NewEventAuditDataWOBDO nedDO,
java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
restore
public boolean restore(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
throws EventAuditException
- Specified by:
restore
in interface EventAuditManagerInterface
- Throws:
EventAuditException
restore
protected boolean restore(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject engineObj,
AssignmentEventAuditDO DO)
throws EventAuditException
- Throws:
EventAuditException
restore
public boolean restore(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
throws EventAuditException
- Specified by:
restore
in interface EventAuditManagerInterface
- Throws:
EventAuditException
restore
protected boolean restore(WMSessionHandle shandle,
DataEventAuditPersistenceObject engineObj,
DataEventAuditDO DO)
throws EventAuditException
- Throws:
EventAuditException
restore
public boolean restore(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
throws EventAuditException
- Specified by:
restore
in interface EventAuditManagerInterface
- Throws:
EventAuditException
restore
protected boolean restore(WMSessionHandle shandle,
StateEventAuditPersistenceObject engineObj,
StateEventAuditDO DO)
throws EventAuditException
- Throws:
EventAuditException
restore
public boolean restore(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
throws EventAuditException
- Specified by:
restore
in interface EventAuditManagerInterface
- Throws:
EventAuditException
restore
protected boolean restore(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject engineObj,
CreateProcessEventAuditDO DO)
throws EventAuditException
- Throws:
EventAuditException
restoreOldEventAuditDataBLOB
protected void restoreOldEventAuditDataBLOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
restoreOldEventAuditDataWOB
protected void restoreOldEventAuditDataWOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
restoreNewEventAuditDataBLOB
protected void restoreNewEventAuditDataBLOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
restoreNewEventAuditDataWOB
protected void restoreNewEventAuditDataWOB(DataEventAuditPersistenceObject dea,
DataEventAuditDO deaDO)
throws EventAuditException
- Throws:
EventAuditException
restoreProcessHistory
public java.util.List restoreProcessHistory(WMSessionHandle shandle,
java.lang.String procId)
throws EventAuditException
- Specified by:
restoreProcessHistory
in interface EventAuditManagerInterface
- Throws:
EventAuditException
restoreActivityHistory
public java.util.List restoreActivityHistory(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String actId)
throws EventAuditException
- Specified by:
restoreActivityHistory
in interface EventAuditManagerInterface
- Throws:
EventAuditException
delete
public void delete(WMSessionHandle shandle,
AssignmentEventAuditPersistenceObject aea)
throws EventAuditException
- Specified by:
delete
in interface EventAuditManagerInterface
- Throws:
EventAuditException
delete
public void delete(WMSessionHandle shandle,
DataEventAuditPersistenceObject dea)
throws EventAuditException
- Specified by:
delete
in interface EventAuditManagerInterface
- Throws:
EventAuditException
delete
public void delete(WMSessionHandle shandle,
StateEventAuditPersistenceObject sea)
throws EventAuditException
- Specified by:
delete
in interface EventAuditManagerInterface
- Throws:
EventAuditException
delete
public void delete(WMSessionHandle shandle,
CreateProcessEventAuditPersistenceObject cpea)
throws EventAuditException
- Specified by:
delete
in interface EventAuditManagerInterface
- Throws:
EventAuditException
getPersistedObject
protected AssignmentEventAuditDO getPersistedObject(AssignmentEventAuditPersistenceObject aea)
throws EventAuditException
- Throws:
EventAuditException
getPersistedAssignmentEventObjects
protected AssignmentEventAuditDO[] getPersistedAssignmentEventObjects(java.lang.String pId,
java.lang.String aId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedObject
protected DataEventAuditDO getPersistedObject(DataEventAuditPersistenceObject dea)
throws EventAuditException
- Throws:
EventAuditException
getPersistedDataEventObjects
protected DataEventAuditDO[] getPersistedDataEventObjects(java.lang.String pId,
java.lang.String aId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedObject
protected StateEventAuditDO getPersistedObject(StateEventAuditPersistenceObject sea)
throws EventAuditException
- Throws:
EventAuditException
getPersistedStateEventObjects
protected StateEventAuditDO[] getPersistedStateEventObjects(java.lang.String pId,
java.lang.String aId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedObject
protected CreateProcessEventAuditDO getPersistedObject(CreateProcessEventAuditPersistenceObject cpea)
throws EventAuditException
- Throws:
EventAuditException
getPersistedOldEventAuditDataObject
protected OldEventAuditDataDO getPersistedOldEventAuditDataObject(DataEventAuditDO deaDO,
java.lang.String vdId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedNewEventAuditDataObject
protected NewEventAuditDataDO getPersistedNewEventAuditDataObject(DataEventAuditDO deaDO,
java.lang.String vdId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedCreateProcessEventObjects
protected CreateProcessEventAuditDO[] getPersistedCreateProcessEventObjects(java.lang.String pId)
throws EventAuditException
- Throws:
EventAuditException
getPersistedActivityStateObject
protected ActivityStateEventAuditDO getPersistedActivityStateObject(java.lang.String value,
boolean searchByKeyValue)
throws EventAuditException
- Throws:
EventAuditException
getPersistedProcessStateObject
protected ProcessStateEventAuditDO getPersistedProcessStateObject(java.lang.String value,
boolean searchByKeyValue)
throws EventAuditException
- Throws:
EventAuditException
getPersistedEventTypeObject
protected EventTypeDO getPersistedEventTypeObject(java.lang.String value,
boolean searchByKeyValue)
throws EventAuditException
- Throws:
EventAuditException
getNextDecId
public java.math.BigDecimal getNextDecId(java.lang.String idName)
throws EventAuditException
- Throws:
EventAuditException
__getDBTransaction
protected com.lutris.appserver.server.sql.DBTransaction __getDBTransaction()
throws java.lang.Exception
- Throws:
java.lang.Exception
setLDBName
protected void setLDBName()
refreshDOCaches
protected void refreshDOCaches()
throws java.lang.Exception
- Throws:
java.lang.Exception