org.figure8.join.control.form
Class ResourceMappingForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.figure8.join.control.JoinForm
          extended by org.figure8.join.control.form.ResourceMappingForm
All Implemented Interfaces:
java.io.Serializable

public class ResourceMappingForm
extends JoinForm

Form object used for manipulating resource mappings into Join application.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.figure8.join.control.JoinForm
errors
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ResourceMappingForm()
          Creates a new instance of ResourceMappingForm.
 
Method Summary
 void doValidate(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate form attributes.
 java.util.Date getEndDate()
           
 java.lang.String getEnvironmentKey()
           
 long getResourceId()
           
 java.lang.String getResourceIdStr()
           
 java.util.Date getStartDate()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset form attributes.
 void setEndDate(java.util.Date endDate)
           
 void setEnvironmentKey(java.lang.String environmentKey)
           
 void setResourceId(long resourceId)
           
 void setResourceIdStr(java.lang.String resourceIdStr)
           
 void setStartDate(java.util.Date startDate)
           
 
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
 

Constructor Detail

ResourceMappingForm

public ResourceMappingForm()
Creates a new instance of ResourceMappingForm.

Method Detail

getResourceId

public long getResourceId()
Returns:
The unique id of infrastructure resource this mapping is for

setResourceId

public void setResourceId(long resourceId)
Parameters:
resourceId - The unique id of infrastructure resource this mapping is for

getEnvironmentKey

public java.lang.String getEnvironmentKey()
Returns:
The unique key of physical environment this mapping is for

setEnvironmentKey

public void setEnvironmentKey(java.lang.String environmentKey)
Parameters:
environmentKey - The unique key of physical environment this mapping is for

getStartDate

public java.util.Date getStartDate()
Returns:
The starting date of this resource mapping

setStartDate

public void setStartDate(java.util.Date startDate)
Parameters:
startDate - The starting date of this resource mapping

getEndDate

public java.util.Date getEndDate()
Returns:
The end date of this resource mapping

setEndDate

public void setEndDate(java.util.Date endDate)
Parameters:
endDate - The end date of this resource mapping

getResourceIdStr

public java.lang.String getResourceIdStr()
Returns:
String representation of resourceId (should be a long)

setResourceIdStr

public void setResourceIdStr(java.lang.String resourceIdStr)
Parameters:
resourceIdStr - String representation of resourceId (must be a long)

doValidate

public void doValidate(java.lang.String operation,
                       org.apache.struts.action.ActionMapping mapping,
                       javax.servlet.http.HttpServletRequest request)
Validate form attributes.

Specified by:
doValidate in class JoinForm
Parameters:
operation - String representing the operation to invoke on Action
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset form attributes.

Overrides:
reset in class JoinForm
Parameters:
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper


Copyright © 2005-2008 Join. All Rights Reserved.