Package wt.audit
Class AuditHelper
java.lang.Object
wt.audit.AuditHelper
Helper class for Windchill's audit framework.
Static helper methods are provided for convenience
in implementing audit-related classes.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectIdentifierReturns object's associated oid.static voidinsertEventInfo(EventInfo anEventInfo) Inserts an EventInfo into the database.static voidinsertEventInfos(WTCollection eventInfos) Inserts a collection of EventInfo's into the database.
-
Method Details
-
getOid
Returns object's associated oid. Accepts not only Persistable as argument but also ObjectReference and ObjectIdentifier objects. Returns 'null' if object is null.
Supported API: true
Extendable: false -
insertEventInfo
Inserts an EventInfo into the database. This method is for use by descendants of the AbstractAuditEventRecorder class to persist any EventInfo associated with the audit event being recorded. This method must be called from a MethodServer context.- Parameters:
anEventInfo- a concrete Persistable instance of the EventInfo interface.- Throws:
PersistenceException- if the object cannot be inserted
Supported API: trueWTException
-
insertEventInfos
Inserts a collection of EventInfo's into the database. This method is for use by descendants of the AbstractAuditEventRecorder class to persist any EventInfo associated with the audit events being recorded. This method must be called from a MethodServer context.- Parameters:
eventInfos- a collect whose members implement the EventInfo interface.- Throws:
ClassCastException- if eventInfos contains objects which do not implement the EventInfo interface.PersistenceException- if the objects cannot be inserted
Supported API: trueWTException
-