Class ProcedureContextHelper

java.lang.Object
com.apgar.common.lib.procedure.ProcedureContextHelper

public class ProcedureContextHelper extends Object
Allows saving all 3 parameters of the procedure context to execute the procedure, then restores their values
Author:
APGAR Consulting
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProcedureContextHelper(com.orchestranetworks.service.ProcedureContext procedureContext)
    ProcedureContextHelper Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doInactive(boolean historyActivation, boolean allPrivileges, boolean triggerActivation)
    Sets the parameters of the procedureContext as per the method's arguments
    void
    Gives all rights to the procedureContext
    void
    Allows the restoring of the parameters' values
    void
    setAllPrivileges(boolean allPrivileges)
    Set the setAllPrivileges parameter
    void
    setHistoryActivation(boolean historyActivation)
    Set the historyActivation parameter
    void
    setTriggerActivation(boolean triggerActivation)
    Set the triggerActivation parameter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProcedureContextHelper

      public ProcedureContextHelper(com.orchestranetworks.service.ProcedureContext procedureContext)
      ProcedureContextHelper Constructor
      Parameters:
      procedureContext - ProcedureContext
  • Method Details

    • doInactiveAll

      public void doInactiveAll()
      Gives all rights to the procedureContext
    • doRestoreAll

      public void doRestoreAll()
      Allows the restoring of the parameters' values
    • doInactive

      public void doInactive(boolean historyActivation, boolean allPrivileges, boolean triggerActivation)
      Sets the parameters of the procedureContext as per the method's arguments
      Parameters:
      historyActivation - boolean
      allPrivileges - boolean
      triggerActivation - boolean
    • setHistoryActivation

      public void setHistoryActivation(boolean historyActivation)
      Set the historyActivation parameter
      Parameters:
      historyActivation - the historyActivation to set
    • setAllPrivileges

      public void setAllPrivileges(boolean allPrivileges)
      Set the setAllPrivileges parameter
      Parameters:
      allPrivileges - the allPrivileges to set
    • setTriggerActivation

      public void setTriggerActivation(boolean triggerActivation)
      Set the triggerActivation parameter
      Parameters:
      triggerActivation - the triggerActivation to set