org.rhq.enterprise.gui.legacy.action.resource.group.inventory
Class AddGroupResourcesForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
              extended by org.rhq.enterprise.gui.legacy.action.resource.group.inventory.AddGroupResourcesForm
All Implemented Interfaces:
Serializable

public class AddGroupResourcesForm
extends BaseValidatorForm

A subclass of ResourceForm representing the AddGroupResources form. The purpose of this form is to add AppdefResourceValues to a AppdefGroupValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
AddGroupResourcesForm()
           
 
Method Summary
 String[] getAvailableResource()
           
 String[] getAvailableResources()
           
 List getAvailResourceTypes()
           
 String getCategory()
           
 String getFilterBy()
           
 Integer getGroupId()
           
 String getMode()
           
 String getNameFilter()
           
 String[] getPendingResource()
           
 String[] getPendingResources()
           
 Integer getPsa()
           
 Integer getPsp()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void setAvailableResource(String[] availableResource)
           
 void setAvailableResources(String[] availableResources)
           
 void setAvailResourceTypes(List availResourceTypes)
          Sets the availResourceTypes.
 void setCategory(String category)
           
 void setFilterBy(String fs)
          Sets the filter by param.
 void setGroupId(Integer groupId)
           
 void setMode(String mode)
           
 void setNameFilter(String s)
           
 void setPendingResource(String[] pendingResource)
           
 void setPendingResources(String[] pendingResources)
           
 void setPsa(Integer ps)
           
 void setPsp(Integer ps)
           
 String toString()
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Only validate if 1) the form's ok or okassign button was clicked and 2) the mapping specifies an input form to return to.
 
Methods inherited from class org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
getAdd, getCancel, getCreate, getDelete, getEnable, getInstall, getManualUninstall, getOk, getOkassign, getPn, getPs, getRemove, getReset, getUninventory, getUserset, isAddClicked, isCancelClicked, isCreateClicked, isDeleteClicked, isEnableClicked, isInstallClicked, isManualUninstallClicked, isOkAssignClicked, isOkClicked, isRemoveClicked, isResetClicked, isUsersetClicked, setAdd, setCancel, setCreate, setDelete, setEnable, setInstall, setOk, setOkassign, setPn, setPs, setRemove, setReset, setUninventory, setUserset, shouldValidate
 
Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddGroupResourcesForm

public AddGroupResourcesForm()
Method Detail

getAvailableResource

public String[] getAvailableResource()

getAvailableResources

public String[] getAvailableResources()

setAvailableResource

public void setAvailableResource(String[] availableResource)

setAvailableResources

public void setAvailableResources(String[] availableResources)

getPendingResource

public String[] getPendingResource()

getPendingResources

public String[] getPendingResources()

setPendingResource

public void setPendingResource(String[] pendingResource)

setPendingResources

public void setPendingResources(String[] pendingResources)

getPsa

public Integer getPsa()

setPsa

public void setPsa(Integer ps)

getPsp

public Integer getPsp()

setPsp

public void setPsp(Integer ps)

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Overrides:
reset in class BaseValidatorForm

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Description copied from class: BaseValidatorForm
Only validate if 1) the form's ok or okassign button was clicked and 2) the mapping specifies an input form to return to. condition #2 can be false when a form has failed validation and has forwarded to the input page; the ok button request parameter will still be userset, but the prepare action for the input page will not have (another) input page specified.

Overrides:
validate in class BaseValidatorForm

toString

public String toString()
Overrides:
toString in class BaseValidatorForm

getAvailResourceTypes

public List getAvailResourceTypes()
Returns:
List

setAvailResourceTypes

public void setAvailResourceTypes(List availResourceTypes)
Sets the availResourceTypes.

Parameters:
availResourceTypes - The availResourceTypes to set

getFilterBy

public String getFilterBy()
Returns:
Integer

setFilterBy

public void setFilterBy(String fs)
Sets the filter by param.

Parameters:
fs - The fs to set

getNameFilter

public String getNameFilter()

setNameFilter

public void setNameFilter(String s)

getGroupId

public Integer getGroupId()

setGroupId

public void setGroupId(Integer groupId)

getCategory

public String getCategory()

setCategory

public void setCategory(String category)

getMode

public String getMode()

setMode

public void setMode(String mode)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.