|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.figure8.join.control.JoinAction
org.figure8.join.control.action.ResourceTypeActions
public class ResourceTypeActions
This is a Struts action for managing all operations related to AbstractResourceType entities.
| Field Summary | |
|---|---|
static java.lang.String |
DUPLICATE_RESOURCE_TYPE_KEY
The request scope attribute under which is stored the ResourceTypes that has raised a DuplicateEntityException during save of another one. |
static java.lang.String |
LOAD_OP
Operation code for loading a specified ResourceType |
static java.lang.String |
RESOURCE_TYPE_KEY
The session scope attribute under which the ResourceType object currently selected by our logged-in User is stored. |
static java.lang.String |
RESOURCE_TYPES_KEY
The request scope attribute under which the retrieved ResourceTypes list is stored. |
static java.lang.String |
SAVE_OP
Operation code for saving (create or update) a specified ResourceType |
| 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 | |
|---|---|
ResourceTypeActions()
Creates a new instance of ResourceTypeActions |
|
| Method Summary | |
|---|---|
AbstractResourceType |
createResourceTypeInstance(ResourceTypeForm form)
Create a new resource type instance from informations contained into ResourceTypeForm. |
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 |
loadResourceType(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 resource type from datastore and fill form with it. |
protected org.apache.struts.action.ActionForward |
saveResourceType(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save a resource type into datastore. |
void |
setResourceManager(ResourceManager manager)
|
| 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 LOAD_OP
public static final java.lang.String SAVE_OP
public static final java.lang.String RESOURCE_TYPE_KEY
public static final java.lang.String RESOURCE_TYPES_KEY
public static final java.lang.String DUPLICATE_RESOURCE_TYPE_KEY
| Constructor Detail |
|---|
public ResourceTypeActions()
| Method Detail |
|---|
public void setResourceManager(ResourceManager manager)
manager - The ResourceManager to usepublic AbstractResourceType createResourceTypeInstance(ResourceTypeForm form)
form.getCategory() + "Type"
and this it needs to have a constructor with 2 string parameters (the resource type key
and its label).
form - The ResourceTypeForm (or a subclass) to create persistent resource type from
public 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 JoinActionoperation - 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 loadResourceType(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 saveResourceType(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 | |||||||||