org.rhq.enterprise.gui.legacy.action.resource.hub
Class HubForm

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.hub.HubForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GroupHubForm, ResourceHubForm

public abstract class HubForm
extends BaseValidatorForm

A common extension for hub pages

See Also:
Serialized Form

Field Summary
protected  List<org.apache.struts.util.LabelValueBean> functions
           
protected  String keywords
           
protected  String plugin
           
protected  List<org.apache.struts.util.LabelValueBean> plugins
           
protected  String[] resources
           
protected  String resourceType
          Resource type filter (null indicates all types within the current category).
protected  List<org.apache.struts.util.LabelValueBean> types
           
protected  String view
          The view style - either "chart" or "list".
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
HubForm()
           
 
Method Summary
 void addFunction(org.apache.struts.util.LabelValueBean function)
           
 void addPlugin(org.apache.struts.util.LabelValueBean plugin)
           
 void addType(org.apache.struts.util.LabelValueBean type)
           
 void addTypeFirst(org.apache.struts.util.LabelValueBean type)
           
 List<org.apache.struts.util.LabelValueBean> getFunctions()
           
 String getKeywords()
           
 String getPlugin()
           
 List<org.apache.struts.util.LabelValueBean> getPlugins()
           
 String[] getResources()
           
 String getResourceType()
           
 List<org.apache.struts.util.LabelValueBean> getTypes()
           
 String getView()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
protected  void setDefaults()
           
 void setFunctions(List<org.apache.struts.util.LabelValueBean> functions)
           
 void setKeywords(String keywords)
           
 void setPlugin(String plugin)
           
 void setPlugins(List<org.apache.struts.util.LabelValueBean> plugins)
           
 void setResources(String[] resources)
           
 void setResourceType(String resourceType)
           
 void setTypes(List<org.apache.struts.util.LabelValueBean> types)
           
 void setView(String view)
           
 String toString()
           
 
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, validate
 
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
 

Field Detail

view

protected String view
The view style - either "chart" or "list". The value corresponds to Enum.name() - either "CHART" or "LIST".


resourceType

protected String resourceType
Resource type filter (null indicates all types within the current category). For compatible groups, this field indicates the group's resource type.


plugin

protected String plugin

functions

protected List<org.apache.struts.util.LabelValueBean> functions

types

protected List<org.apache.struts.util.LabelValueBean> types

plugins

protected List<org.apache.struts.util.LabelValueBean> plugins

keywords

protected String keywords

resources

protected String[] resources
Constructor Detail

HubForm

public HubForm()
Method Detail

getResourceType

@Nullable
public String getResourceType()

setResourceType

public void setResourceType(String resourceType)

getPlugin

public String getPlugin()

setPlugin

public void setPlugin(String plugin)

getFunctions

public List<org.apache.struts.util.LabelValueBean> getFunctions()

setFunctions

public void setFunctions(List<org.apache.struts.util.LabelValueBean> functions)

addFunction

public void addFunction(org.apache.struts.util.LabelValueBean function)

getTypes

public List<org.apache.struts.util.LabelValueBean> getTypes()

setTypes

public void setTypes(List<org.apache.struts.util.LabelValueBean> types)

addType

public void addType(org.apache.struts.util.LabelValueBean type)

addTypeFirst

public void addTypeFirst(org.apache.struts.util.LabelValueBean type)

getPlugins

public List<org.apache.struts.util.LabelValueBean> getPlugins()

setPlugins

public void setPlugins(List<org.apache.struts.util.LabelValueBean> plugins)

addPlugin

public void addPlugin(org.apache.struts.util.LabelValueBean plugin)

setKeywords

public void setKeywords(String keywords)

getKeywords

public String getKeywords()

getView

public String getView()

setView

public void setView(String view)

reset

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

setDefaults

protected void setDefaults()

getResources

public String[] getResources()

setResources

public void setResources(String[] resources)

toString

public String toString()
Overrides:
toString in class BaseValidatorForm


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