Package wt.audit

Class AuditHelper

java.lang.Object
wt.audit.AuditHelper

public class AuditHelper extends Object
Helper class for Windchill's audit framework. Static helper methods are provided for convenience in implementing audit-related classes.

Supported API: true

Extendable: false
  • Method Details

    • getOid

      public static ObjectIdentifier getOid(Object object)
      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

      public static void insertEventInfo(EventInfo anEventInfo) throws WTException
      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: true
      WTException
    • insertEventInfos

      public static void insertEventInfos(WTCollection eventInfos) throws WTException
      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: true
      WTException