Class MessageCallAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.action.MessageCallAction
Telephone call actions: number occupation, release and call registration
-
Field Summary
Fields inherited from class BaseAction
l, log, MAPPER, PATH_JSP, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardnumberFree(DynActionForm form, ConnectionSet conSet) Releases the number occupied by the current userorg.apache.struts.action.ActionForwardnumberRegister(DynActionForm form, ConnectionSet conSet) Checks or occupies a phone number for the current userorg.apache.struts.action.ActionForwardoutCall(DynActionForm form, ConnectionSet conSet) Initiates an outgoing call to the given numberorg.apache.struts.action.ActionForwardtestCall(DynActionForm form, Connection con) Emulates an incoming or outgoing call for testingMethods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
MessageCallAction
public MessageCallAction()Default constructor
-
-
Method Details
-
numberRegister
public org.apache.struts.action.ActionForward numberRegister(DynActionForm form, ConnectionSet conSet) throws Exception Checks or occupies a phone number for the current user- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
numberFree
Releases the number occupied by the current user- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
-
outCall
public org.apache.struts.action.ActionForward outCall(DynActionForm form, ConnectionSet conSet) throws Exception Initiates an outgoing call to the given number- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-
testCall
public org.apache.struts.action.ActionForward testCall(DynActionForm form, Connection con) throws Exception Emulates an incoming or outgoing call for testing- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-