|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.figure8.join.control.JoinForm
org.figure8.join.control.form.ResourceForm
public class ResourceForm
Form object used for manipulating Resources into Join application
| Field Summary | |
|---|---|
static java.lang.String[] |
SUPPORTED_CATEGORIES
The list of actually supported resource categories |
static java.util.Map |
SUPPORTED_IMPLEMENTATIONS
The map of actually supported resource implementations (key is the category) |
| Fields inherited from class org.figure8.join.control.JoinForm |
|---|
errors |
| Fields inherited from class org.apache.struts.action.ActionForm |
|---|
multipartRequestHandler, servlet |
| Constructor Summary | |
|---|---|
ResourceForm()
Creates a new instance of ResourceForm |
|
| Method Summary | |
|---|---|
void |
doValidate(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validation of the form attributes. |
java.lang.String |
getCategory()
|
java.util.Date |
getEndDate()
|
java.lang.String |
getLogDirPath()
|
java.lang.String |
getLogFilePath()
|
long |
getMachineId()
|
java.lang.String |
getMachineIdStr()
|
java.lang.String |
getName()
|
java.lang.String |
getResourceTypeKey()
|
java.util.Date |
getStartDate()
|
static java.lang.String[] |
getSupportedCategories()
Retrieve the supported resource categories for form validation purpose. |
static java.lang.String |
getSupportedImplementation(java.lang.String category)
Retrieve the FQN of the Java class representing a valid implementation for a resource category. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset form attributes. |
void |
setCategory(java.lang.String category)
|
void |
setEndDateStr(java.lang.String endDateStr)
|
void |
setLogDirPath(java.lang.String logDirPath)
|
void |
setLogFilePath(java.lang.String logFilePath)
|
void |
setMachineId(long machineId)
|
void |
setMachineIdStr(java.lang.String machineIdStr)
|
void |
setName(java.lang.String name)
|
void |
setResourceTypeKey(java.lang.String typeKey)
|
void |
setStartDateStr(java.lang.String startDateStr)
|
void |
setStartHourStr(java.lang.String startHourStr)
|
void |
setStartMinStr(java.lang.String startMinStr)
|
| Methods inherited from class org.figure8.join.control.JoinForm |
|---|
addActionError, addActionError, addActionError, getGuiMessageResources, getId, getIdStr, getMessageResources, setId, setIdStr, validate, validateEntityObjectId |
| 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, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] SUPPORTED_CATEGORIES
public static java.util.Map SUPPORTED_IMPLEMENTATIONS
| Constructor Detail |
|---|
public ResourceForm()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - This resource name (must be unique)public java.lang.String getLogDirPath()
public void setLogDirPath(java.lang.String logDirPath)
logDirPath - The path to the log directory of this resourcepublic java.lang.String getLogFilePath()
public void setLogFilePath(java.lang.String logFilePath)
logFilePath - The path to the current log file of this resourcepublic java.lang.String getResourceTypeKey()
public void setResourceTypeKey(java.lang.String typeKey)
typeKey - he key of this resource typepublic long getMachineId()
public void setMachineId(long machineId)
machineId - The identifier of machine this resource is hosted onpublic java.lang.String getCategory()
public void setCategory(java.lang.String category)
category - The category of this resource (this determine its persistent implementation)public java.lang.String getMachineIdStr()
public void setMachineIdStr(java.lang.String machineIdStr)
machineIdStr - The string representation of identifier of machine this resource is hosted onpublic java.util.Date getStartDate()
public void setStartDateStr(java.lang.String startDateStr)
startDateStr - The String representation of changes tracking period start date (must be a date)public void setStartHourStr(java.lang.String startHourStr)
startHourStr - The String representation of changes tracking period start hour (must be an integer)public void setStartMinStr(java.lang.String startMinStr)
startMinStr - The String representation of changes tracking period start minute (must be an integer)public java.util.Date getEndDate()
public void setEndDateStr(java.lang.String endDateStr)
endDateStr - The String representation of changes tracking period start date (must be a date)public static java.lang.String[] getSupportedCategories()
public static java.lang.String getSupportedImplementation(java.lang.String category)
category - The resource category to get implementation for
public void doValidate(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
doValidate in class JoinFormoperation - String representing the operation to invoke on Actionmapping - Mapping between forwards name and path for this actionrequest - The servlet container request wrapper
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
reset in class JoinFormmapping - Mapping between forwards name and path for this actionrequest - The servlet container request wrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||