org.enhydra.shark.api.internal.eventaudit
Interface EventAuditManagerInterface


public interface EventAuditManagerInterface

Interface that has to be implemented for each persistent layer that is supposed to be * used. * * @version 1.0


Method Summary
 void configure(CallbackUtilities cus)
          Method configure is called at Shark start up, to configure implementation of * EventAuditManagerInterface
 void delete(WMSessionHandle shandle, AssignmentEventAuditPersistenceObject assea)
          Method delete * * @param assea an AssignmentEventAuditPersistenceInterface * @exception EventAuditException on error.
 void delete(WMSessionHandle shandle, CreateProcessEventAuditPersistenceObject cpea)
          Method delete * * @param cpea a CreateProcessEventAuditPersistenceInterface * @exception EventAuditException on error.
 void delete(WMSessionHandle shandle, DataEventAuditPersistenceObject dea)
          Method delete * * @param dea a DataEventAuditPersistenceInterface * @exception EventAuditException on error.
 void delete(WMSessionHandle shandle, StateEventAuditPersistenceObject sea)
          Method delete * * @param sea a StateEventAuditPersistenceInterface * @exception EventAuditException on error.
 void persist(WMSessionHandle shandle, AssignmentEventAuditPersistenceObject assea)
          Method persist stores the assignment event into repository (usually database)
 void persist(WMSessionHandle shandle, CreateProcessEventAuditPersistenceObject cpea)
          Method persist stores the create process event into repository (usually database)
 void persist(WMSessionHandle shandle, DataEventAuditPersistenceObject dea)
          Method persist stores the data event into repository (usually database)
 void persist(WMSessionHandle shandle, StateEventAuditPersistenceObject sea)
          Method persist stores the state event into repository (usually database)
 boolean restore(WMSessionHandle shandle, AssignmentEventAuditPersistenceObject assea)
          Method restore retrieves assignment event from the repository
 boolean restore(WMSessionHandle shandle, CreateProcessEventAuditPersistenceObject cpea)
          Method restore retrieves create process event from the repository
 boolean restore(WMSessionHandle shandle, DataEventAuditPersistenceObject dea)
          Method restore retrieves data event from the repository
 boolean restore(WMSessionHandle shandle, StateEventAuditPersistenceObject sea)
          Method restore retrieves state event from the repository
 java.util.List restoreActivityHistory(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method restoreActivityHistory * * @param procId a String * @param actId a String * @return a List * @exception EventAuditException on error.
 java.util.List restoreProcessHistory(WMSessionHandle shandle, java.lang.String procId)
          Method restoreProcessHistory * * @param procId a String * @return a List * @exception EventAuditException on error.
 

Method Detail

configure

public void configure(CallbackUtilities cus)
               throws java.lang.Exception
Method configure is called at Shark start up, to configure implementation of * EventAuditManagerInterface. * * @param cus an instance of CallbackUtilities used to get properties for configuring * Event Audit Manager in Shark. * @exception Exception Thrown if configuring doesn't succeed.

Throws:
java.lang.Exception

persist

public void persist(WMSessionHandle shandle,
                    AssignmentEventAuditPersistenceObject assea)
             throws EventAuditException
Method persist stores the assignment event into repository (usually database). * * @param assea AssignmentEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

persist

public void persist(WMSessionHandle shandle,
                    CreateProcessEventAuditPersistenceObject cpea)
             throws EventAuditException
Method persist stores the create process event into repository (usually database). * * @param cpea CreateProcessEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

persist

public void persist(WMSessionHandle shandle,
                    DataEventAuditPersistenceObject dea)
             throws EventAuditException
Method persist stores the data event into repository (usually database). * * @param dea DataEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

persist

public void persist(WMSessionHandle shandle,
                    StateEventAuditPersistenceObject sea)
             throws EventAuditException
Method persist stores the state event into repository (usually database). * * @param sea StateEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

restore

public boolean restore(WMSessionHandle shandle,
                       AssignmentEventAuditPersistenceObject assea)
                throws EventAuditException
Method restore retrieves assignment event from the repository. * * @param assea AssignmentEventAuditPersistenceInterface * @return true on success, false otherwise * @exception EventAuditException on error.

Throws:
EventAuditException

restore

public boolean restore(WMSessionHandle shandle,
                       CreateProcessEventAuditPersistenceObject cpea)
                throws EventAuditException
Method restore retrieves create process event from the repository. * * @param cpea CreateProcessEventAuditPersistenceInterface * @return true on success, false otherwise * @exception EventAuditException on error.

Throws:
EventAuditException

restore

public boolean restore(WMSessionHandle shandle,
                       DataEventAuditPersistenceObject dea)
                throws EventAuditException
Method restore retrieves data event from the repository. * * @param dea DataEventAuditPersistenceInterface * @return true on success, false otherwise * @exception EventAuditException on error.

Throws:
EventAuditException

restore

public boolean restore(WMSessionHandle shandle,
                       StateEventAuditPersistenceObject sea)
                throws EventAuditException
Method restore retrieves state event from the repository. * * @param sea StateEventAuditPersistenceInterface * @return true on success, false otherwise * @exception EventAuditException on error.

Throws:
EventAuditException

restoreProcessHistory

public java.util.List restoreProcessHistory(WMSessionHandle shandle,
                                            java.lang.String procId)
                                     throws EventAuditException
Method restoreProcessHistory * * @param procId a String * @return a List * @exception EventAuditException on error.

Throws:
EventAuditException

restoreActivityHistory

public java.util.List restoreActivityHistory(WMSessionHandle shandle,
                                             java.lang.String procId,
                                             java.lang.String actId)
                                      throws EventAuditException
Method restoreActivityHistory * * @param procId a String * @param actId a String * @return a List * @exception EventAuditException on error.

Throws:
EventAuditException

delete

public void delete(WMSessionHandle shandle,
                   AssignmentEventAuditPersistenceObject assea)
            throws EventAuditException
Method delete * * @param assea an AssignmentEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

delete

public void delete(WMSessionHandle shandle,
                   CreateProcessEventAuditPersistenceObject cpea)
            throws EventAuditException
Method delete * * @param cpea a CreateProcessEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

delete

public void delete(WMSessionHandle shandle,
                   DataEventAuditPersistenceObject dea)
            throws EventAuditException
Method delete * * @param dea a DataEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException

delete

public void delete(WMSessionHandle shandle,
                   StateEventAuditPersistenceObject sea)
            throws EventAuditException
Method delete * * @param sea a StateEventAuditPersistenceInterface * @exception EventAuditException on error.

Throws:
EventAuditException