com.irisel.oms.blapi.helpers
Class OMSActionHelper

java.lang.Object
  extended by com.irisel.oms.blapi.helpers.OMSActionHelper

public class OMSActionHelper
extends java.lang.Object


Constructor Summary
OMSActionHelper(CLBrowser clbrowser)
           
 
Method Summary
 Instance getActionById(long actionid)
           
 long getActionId(java.lang.String actionName)
           
 InstanceSet getActionItemArguments(long actionItemId)
           
 InstanceSet getPending()
           
 void insertActionItem(Instance actionItem, SvcContext sc, Instance focus)
           
 void insertOrUpdateActionItem(Instance ai, SvcContext sc, Instance focus)
          Query for an action item for a focus.
 Instance newActionItem(java.lang.String actionName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMSActionHelper

public OMSActionHelper(CLBrowser clbrowser)
Method Detail

getActionId

public long getActionId(java.lang.String actionName)
                 throws QueryTreeException
Throws:
QueryTreeException

newActionItem

public Instance newActionItem(java.lang.String actionName)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getActionItemArguments

public InstanceSet getActionItemArguments(long actionItemId)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getPending

public InstanceSet getPending()
                       throws QueryTreeException
Throws:
QueryTreeException

getActionById

public Instance getActionById(long actionid)
                       throws java.rmi.RemoteException,
                              java.sql.SQLException
Throws:
java.rmi.RemoteException
java.sql.SQLException

insertActionItem

public void insertActionItem(Instance actionItem,
                             SvcContext sc,
                             Instance focus)
                      throws java.rmi.RemoteException,
                             java.sql.SQLException,
                             DataException
Throws:
java.rmi.RemoteException
java.sql.SQLException
DataException

insertOrUpdateActionItem

public void insertOrUpdateActionItem(Instance ai,
                                     SvcContext sc,
                                     Instance focus)
                              throws QueryTreeException,
                                     java.rmi.RemoteException,
                                     DataException,
                                     java.sql.SQLException
Query for an action item for a focus. If not found, will create a new action item

Parameters:
ai - is the action item instance to be created or updated
sc - is the service context that is used to record the action item arguments
focus - is the data instance related to this action item (such a case, order, contact)
Throws:
QueryTreeException
java.rmi.RemoteException
DataException
java.sql.SQLException