|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.figure8.join.control.JoinAction org.figure8.join.control.action.EnvironmentMappingActions
public class EnvironmentMappingActions
This is a Struts action for managing all operations related mappings between Logical and Physical environments.
Field Summary | |
---|---|
static java.lang.String |
CLOSE_OP
Operation code for closing a EnvironmentMapping (close) |
static java.lang.String |
CREATE_OP
Operation code for saving a EnvironmentMapping (create) |
static java.lang.String |
FORM_OP
Operation code for showing an environment mapping form |
static java.lang.String |
LOAD_OP
Operation code for loading a specific EnvironmentMapping |
static java.lang.String |
MAPPING_KEY
The session scope attribute under which the EnvironmentMapping object currently selected by our logged-in User is stored. |
static java.lang.String |
MAPPINGS_KEY
The request scope attribute under which the retrieved EnvironmentMappings list is stored. |
static java.lang.String |
VIEW_OP
Operation code for retrieving EnvironmentMappings for an environment (logical or physical) |
Fields inherited from class org.figure8.join.control.JoinAction |
---|
BODY_ATTRIBUTE, BODY_PARAMETER, EXCEPTION_KEY, GUI_KEY, OP_PARAMETER, REND_MAIN, REND_NONE, REND_PARAMETER, REND_POPUP, XHR_PARAMETER |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
EnvironmentMappingActions()
Creates a new instance of EnvironmentMappingActions |
Method Summary | |
---|---|
protected org.apache.struts.action.ActionForward |
closeMapping(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Close an environment mapping and update the related logical and physical environments. |
protected org.apache.struts.action.ActionForward |
createMapping(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create an environment mapping into datastore and bind specified logical and physical environments to it. |
org.apache.struts.action.ActionForward |
doExecute(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method that subclasses must implement. |
protected org.apache.struts.action.ActionForward |
loadEnvironmentMappings(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Retrieve and load into request all the environment mappings history corresponding to a logical or a physical environment. |
protected org.apache.struts.action.ActionForward |
loadMapping(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Load a specified environment mapping from datastore and fill form with it. |
void |
setEnvironmentManager(EnvironmentManager envManager)
|
protected org.apache.struts.action.ActionForward |
showMappingForm(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Prepare all we need for displaying a mapping creation form |
Methods inherited from class org.figure8.join.control.JoinAction |
---|
execute, getUserContainer, isLoggedIn, isXhrRequest, removeObsoleteForm |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FORM_OP
public static final java.lang.String LOAD_OP
public static final java.lang.String CREATE_OP
public static final java.lang.String CLOSE_OP
public static final java.lang.String VIEW_OP
public static final java.lang.String MAPPING_KEY
public static final java.lang.String MAPPINGS_KEY
Constructor Detail |
---|
public EnvironmentMappingActions()
Method Detail |
---|
public void setEnvironmentManager(EnvironmentManager envManager)
envManager
- The EnvironmentManager implementation instance to usepublic org.apache.struts.action.ActionForward doExecute(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
JoinAction
doExecute
in class JoinAction
operation
- String representing the operation to invoke on Actionmapping
- Mapping between forwards name and path for this actionform
- The form object containing request parametersrequest
- The servlet container request wrapperresponse
- The servlet container response wrapper
java.lang.Exception
- such as InfraStructureExceptions ...protected org.apache.struts.action.ActionForward showMappingForm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward loadMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward createMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward closeMapping(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward loadEnvironmentMappings(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |