org.jafer.registry.web.struts.action
Class RemoveCategoryAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.jafer.registry.web.struts.action.JaferRegistryAction
          extended by org.jafer.registry.web.struts.action.RemoveCategoryAction

public final class RemoveCategoryAction
extends JaferRegistryAction

This action removes the category to the service or provider


Field Summary
 
Fields inherited from class org.jafer.registry.web.struts.action.JaferRegistryAction
dynaForm, mapping, request, response, session, SUCCESS
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
RemoveCategoryAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Execute the action
private  Category getCategoryToDelete(java.util.List categories, java.lang.String type, java.lang.String value)
          Gets an instance of a category for removing from the provider or service
 
Methods inherited from class org.jafer.registry.web.struts.action.JaferRegistryAction
addErrorMessage, addInfoMessage, getActionForward, getActionForward, getErrorPage, getRegistryManager, getReturnPage, getServiceLocator, getServiceManager, initAction, setReturnPage
 
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, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveCategoryAction

public RemoveCategoryAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws RegistryException,
                                                      java.io.IOException,
                                                      javax.servlet.ServletException
Execute the action

Overrides:
execute in class org.apache.struts.action.Action
Parameters:
mapping - The struts action mapping
form - The action form sent in the request
request - The request object
response - The response object
Returns:
The action to forward to
Throws:
java.io.IOException
javax.servlet.ServletException
RegistryException

getCategoryToDelete

private Category getCategoryToDelete(java.util.List categories,
                                     java.lang.String type,
                                     java.lang.String value)
Gets an instance of a category for removing from the provider or service

Parameters:
categories - The list of categories to search
type - The type to match up
value - The value to match up
Returns:
The category instance