|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
org.rhq.enterprise.gui.legacy.action.CalendarForm
org.rhq.enterprise.gui.legacy.action.ScheduleForm
org.rhq.enterprise.gui.legacy.action.resource.ResourceForm
public class ResourceForm
A subclass of BaseValidatorForm that adds convenience methods for dealing with appdef resource objects
like Platform Server, & Service.
| Nested Class Summary | |
|---|---|
static class |
ResourceForm.FormContext
|
| Field Summary |
|---|
| Fields inherited from class org.rhq.enterprise.gui.legacy.action.ScheduleForm |
|---|
END_NEVER, END_ON_DATE, EVERY_DAY, EVERY_WEEKDAY, ON_DAY, ON_EACH, RECUR_DAILY, RECUR_MONTHLY, RECUR_NEVER, RECUR_WEEKLY, START_NOW, START_ON_DATE |
| Fields inherited from class org.rhq.enterprise.gui.legacy.action.CalendarForm |
|---|
AM, PM |
| Fields inherited from class org.apache.struts.validator.ValidatorForm |
|---|
page, validatorResults |
| Fields inherited from class org.apache.struts.action.ActionForm |
|---|
multipartRequestHandler, servlet |
| Constructor Summary | |
|---|---|
ResourceForm()
|
|
| Method Summary | |
|---|---|
ResourceForm.FormContext |
getContext()
|
String |
getDescription()
Returns the description. |
Integer |
getGroupId()
|
Integer |
getId()
|
String |
getLocation()
Returns the location. |
String |
getName()
Returns the name. |
Integer |
getResourceType()
Returns the resourceType. |
List |
getResourceTypes()
Returns the resourceTypes. |
Integer |
getRid()
Returns the rid. |
Integer |
getType()
|
void |
loadResourceValue(org.rhq.core.domain.resource.Resource resource)
loads the server value |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
|
void |
setDescription(String description)
Sets the description. |
void |
setGroupId(Integer groupId)
|
void |
setId(Integer id)
|
void |
setLocation(String location)
Sets the location. |
void |
setName(String name)
sets the name. |
void |
setResourceType(Integer resourceType)
Sets the resourceType. |
void |
setResourceTypes(List resourceTypes)
Sets the resourceTypes. |
void |
setRid(Integer rid)
Sets the rid. |
void |
setType(Integer type)
|
String |
toString()
|
void |
updateResourceValue(org.rhq.core.domain.resource.Resource resource)
loads the server value |
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.ScheduleForm |
|---|
getControlActions, getEachDay, getEndTime, getIsNow, getMonthlyRecurrenceDay, getNumControlActions, getNumDays, getNumMonths, getNumWeeks, getRecurInterval, getRecurrenceDay, getRecurrenceFrequencyDaily, getRecurrenceFrequencyMonthly, getRecurrenceWeek, getStartTime, setControlActions, setEachDay, setEndTime, setMonthlyRecurrenceDay, setNumDays, setNumMonths, setNumWeeks, setRecurInterval, setRecurrenceDay, setRecurrenceFrequencyDaily, setRecurrenceFrequencyMonthly, setRecurrenceWeek, setStartTime |
| Methods inherited from class org.rhq.enterprise.gui.legacy.action.CalendarForm |
|---|
calcHour, getEndAmPm, getEndDate, getEndDay, getEndHour, getEndMin, getEndMonth, getEndYear, getInitStartTime, getStartAmPm, getStartDate, getStartDay, getStartHour, getStartMin, getStartMonth, getStartYear, getWantEndDate, getYearOptions, populateEndDate, populateStartDate, setEndAmPm, setEndDay, setEndHour, setEndMin, setEndMonth, setEndYear, setStartAmPm, setStartDay, setStartHour, setStartMin, setStartMonth, setStartYear, setWantEndDate, shouldValidateDateRange, validateDateRange |
| 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 |
|---|
public ResourceForm()
| Method Detail |
|---|
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
description - The description to setpublic String getLocation()
public void setLocation(String location)
location - The location to setpublic List getResourceTypes()
public void setResourceTypes(List resourceTypes)
resourceTypes - The resourceTypes to setpublic Integer getResourceType()
public void setResourceType(Integer resourceType)
resourceType - The resourceType to setpublic Integer getRid()
public void setRid(Integer rid)
rid - The rid to setpublic void loadResourceValue(org.rhq.core.domain.resource.Resource resource)
public void updateResourceValue(org.rhq.core.domain.resource.Resource resource)
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
reset in class ScheduleForm
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
BaseValidatorForm
validate in class ScheduleFormpublic String toString()
toString in class ScheduleFormpublic Integer getId()
public void setId(Integer id)
public Integer getType()
public void setType(Integer type)
public Integer getGroupId()
public void setGroupId(Integer groupId)
public ResourceForm.FormContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||