public class ResourceForm extends ScheduleForm
BaseValidatorForm that adds convenience methods for dealing with appdef resource objects
like Platform Server, & Service.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceForm.FormContext |
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_DATEAM, PM| Constructor and Description |
|---|
ResourceForm() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setStartTimecalcHour, 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, validateDateRangegetAdd, 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, shouldValidategetPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResultspublic 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 ScheduleFormpublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
BaseValidatorFormvalidate 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()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.