HiRISE

HiRISE.HiReport.form
Class PipelineForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiReport.form.PageSortForm
          extended by HiRISE.HiReport.form.TimeRangeForm
              extended by HiRISE.HiReport.form.PipelineForm
All Implemented Interfaces:
Serializable

public class PipelineForm
extends TimeRangeForm

Collects input for pipeline reports

See Also:
Serialized Form

Field Summary
static String ID
          CVS ID
 String[] state
          The state to use
 
Fields inherited from class HiRISE.HiReport.form.TimeRangeForm
maxDate, minDate, plus, TIME_FORMATS, timeFormatters, timeUnits, unit
 
Fields inherited from class HiRISE.HiReport.form.PageSortForm
EXPORT_MAX_ROWS
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
PipelineForm()
           
 
Method Summary
 String getCatalog()
           
 String[] getHost()
          Get the hosts to use
 String[] getHosts()
          Get the list of host names
 String getMaxDate()
          Get the max date, or null if no max date has been input
 String getMinDate()
          Get the start date, or null if no min date has been input
 boolean getNorepo()
          True if excluding reprocessing sources (include only 1st-run sources)
 String getOtherPipeline()
          Get the name input as the 'Other' pipeline
 String[] getPipeline()
           
 List<String> getPipelineNames()
          Get the pipeline names.
 String[] getPipelines()
          Get the list of pipeline names
 String getSource()
           
 String[] getState()
          Get the states to use
 String[] getStates()
          Get the available states
 String getStatus()
           
 void setCatalog(String catalog)
           
 void setHost(String... host)
          Set the hosts to use
 void setNorepo(boolean norepo)
          Set to to true to exclude reprocessing sources (include only 1st-run sources)
 void setOtherPipeline(String otherPipeline)
          Specify a pipeline by name
 void setPipeline(String... pipeline)
           
 void setSource(String source)
           
 void setState(String... state)
          Set the states to use
 void setStatus(String status)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
          Validate form input
 
Methods inherited from class HiRISE.HiReport.form.TimeRangeForm
getPlus, getTimeRange, getTimeUnit, getTimeUnits, parseDate, setMaxDate, setMinDate, setPlus, setTimeRange, setTimeUnit
 
Methods inherited from class HiRISE.HiReport.form.PageSortForm
getDir, getPage, getSize, getSort, isAscending, reset, setDir, setPage, setSize, setSort
 
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

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

state

public String[] state
The state to use

Constructor Detail

PipelineForm

public PipelineForm()
Method Detail

getStates

public String[] getStates()
Get the available states

Returns:
state names

getPipelines

public String[] getPipelines()
Get the list of pipeline names

Returns:
pipeline names

getHosts

public String[] getHosts()
Get the list of host names

Returns:
host names

getState

public String[] getState()
Get the states to use

Returns:
names

setState

public void setState(String... state)
Set the states to use

Parameters:
state - names

getSource

public String getSource()
Returns:
the sourceID

setSource

public void setSource(String source)
Parameters:
source - the source id pattern

getStatus

public String getStatus()
Returns:
the status

setStatus

public void setStatus(String status)
Parameters:
status - the status to set

getCatalog

public String getCatalog()
Returns:
the catalog name

setCatalog

public void setCatalog(String catalog)
Parameters:
catalog - name

getPipeline

public String[] getPipeline()
Returns:
the pipelines

setPipeline

public void setPipeline(String... pipeline)
Parameters:
pipeline - the pipeline to set

getOtherPipeline

public String getOtherPipeline()
Get the name input as the 'Other' pipeline

Returns:
pipeline name

setOtherPipeline

public void setOtherPipeline(String otherPipeline)
Specify a pipeline by name

Parameters:
otherPipeline - Name of a pipeline

getMinDate

public String getMinDate()
Description copied from class: TimeRangeForm
Get the start date, or null if no min date has been input

Overrides:
getMinDate in class TimeRangeForm
Returns:
start date as string, or null

getMaxDate

public String getMaxDate()
Description copied from class: TimeRangeForm
Get the max date, or null if no max date has been input

Overrides:
getMaxDate in class TimeRangeForm
Returns:
end date as string, or null

getHost

public String[] getHost()
Get the hosts to use

Returns:
names

setHost

public void setHost(String... host)
Set the hosts to use

Parameters:
host - names

getNorepo

public boolean getNorepo()
True if excluding reprocessing sources (include only 1st-run sources)

Returns:
true for repo exclusion

setNorepo

public void setNorepo(boolean norepo)
Set to to true to exclude reprocessing sources (include only 1st-run sources)

Parameters:
norepo - true for repo exclusion

getPipelineNames

public List<String> getPipelineNames()
Get the pipeline names. If an 'other' pipeline has been specified, it is added to the list.

Returns:
names

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest req)
Validate form input

Overrides:
validate in class TimeRangeForm

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona