HiRISE

HiRISE.HiWish
Class SuggestionSearchForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiWish.SuggestionSearchForm
All Implemented Interfaces:
Serializable

public class SuggestionSearchForm
extends org.apache.struts.action.ActionForm

Author:
guym
See Also:
Serialized Form

Field Summary
protected  boolean active
          If true, include the not retired
protected  int[] binning
          Binning values to search on
protected  float cenLat
          Center latitude (planetocentric)
protected  float cenLon
          Center longitude (east)
protected  boolean color
          If true, include needs-color
protected  boolean crism
          If true, include CRISM coordinated
protected  float latRange
          Range from center (degrees) north-south
protected  float lonRange
          Range from center (degrees) east-west
protected  String maxDate
          Upper bound for suggestion date
protected  float maxLat
          Maximum latitude (planetocentric)
protected  float maxLon
          Maximum longitude (east)
protected  float maxLs
          Maximum solar longitude
protected  String maxPlanDate
          Upper bound for plan date
protected  String maxStlDate
          Upper bound for STL edit date
protected  String maxSuccessDate
          Upper bound for success date
protected  String minDate
          Lower bound for suggestion date
protected  float minLat
          Minimum latitude (planetocentric)
protected  float minLon
          Minimum longitude (east)
protected  float minLs
          Minimum solar longitude
protected  String minPlanDate
          Lower bound for plan date
protected  String minStlDate
          Lower bound for STL edit date
protected  String minSuccessDate
          Lower bound for success date
protected  boolean musthave
          If true, include STL-must haves
protected  boolean musthavenot
          If true, include not STL-must haves
protected  boolean nonstereo
          If true, include non-stereo
protected  int observations
          Number of repeat observations
protected  int[] overallPriority
          Overall priority values
protected  int[] priority
          Priority values
protected  String[] repeat
          type of repeat suggestions
protected  boolean retired
          If true, include retired
protected  boolean sd
          If true, search description
protected  boolean sn
          If true, search notes
protected  boolean sr
          If true, search science rationale
protected  boolean ss
          If true, search stl_description
protected  boolean stereo
          If true, include stereo
protected  String text
          description or comment text
protected  int[] theme1
          primary science theme array
protected  int[] theme2
          secondary science theme array
protected  boolean uncolor
          If true, include do not need color
protected  boolean uncrism
          If true, include non-CRISM coordinated
protected  String username
          suggester username
protected  boolean word
          If true, do a whole-word search
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SuggestionSearchForm()
           
 
Method Summary
 boolean getActive()
           
 int[] getBinning()
           
 float getCenLat()
           
 float getCenLon()
           
 Date[] getDateRange()
          Get the suggestion date range requested (validate method must be called first).
 String getDir()
          Get the sort direction, either "asc" or "desc".
 float getLatRange()
          Get the north-south range
 float getLonRange()
          Get the east-west range
 String getMaxDate()
           
 float getMaxLat()
           
 float getMaxLon()
           
 float getMaxLs()
           
 String getMaxPlanDate()
           
 String getMaxStlDate()
           
 String getMaxSuccessDate()
           
 String getMinDate()
           
 float getMinLat()
           
 float getMinLon()
           
 float getMinLs()
           
 String getMinPlanDate()
           
 String getMinStlDate()
           
 String getMinSuccessDate()
           
 int getObservations()
           
 org.displaytag.properties.SortOrderEnum getOrder()
          Get the sort order
 int[] getOverallPriority()
           
 int getPage()
          Get the page number (1-based)
 Date[] getPlanDateRange()
          Get the planned date range requested (validate method must be called first).
 int[] getPriority()
           
 boolean getRetired()
           
 int getSize()
          Get the max output size (number of rows returned).
 String getSort()
          Get the column to sort on
 Date[] getStlDateRange()
          Get the STL date range requested (validate method must be called first).
 Date[] getSuccessDateRange()
          Get the success date range requested (validate method must be called first).
 String getText()
           
 int[] getTheme1()
           
 int[] getTheme2()
           
 String getUsername()
          Get the username to search on
 boolean isColor()
           
 boolean isCrism()
           
 boolean isMusthave()
           
 boolean isMusthavenot()
           
 boolean isNonstereo()
           
 boolean isSd()
           
 boolean isSn()
           
 boolean isSr()
           
 boolean isSs()
           
 boolean isStereo()
           
 boolean isUncolor()
           
 boolean isUncrism()
           
 boolean isWord()
           
 void reset(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
           
 void setActive(boolean active)
           
 void setBinning(int[] binning)
           
 void setCenLat(float cenLat)
           
 void setCenLon(float cenLon)
           
 void setColor(boolean color)
           
 void setCrism(boolean crism)
           
 void setDir(String dir)
          Set the sort direction.
 void setLatRange(float latRange)
          Set the latitude range
 void setLonRange(float lonRange)
          Set the longitude range
 void setMaxDate(String maxDate)
           
 void setMaxLat(float maxLat)
           
 void setMaxLon(float maxLon)
           
 void setMaxLs(float maxLs)
           
 void setMaxPlanDate(String maxPlanDate)
           
 void setMaxStlDate(String maxStlDate)
           
 void setMaxSuccessDate(String maxSuccessDate)
           
 void setMinDate(String minDate)
           
 void setMinLat(float minLat)
           
 void setMinLon(float minLon)
           
 void setMinLs(float minLs)
           
 void setMinPlanDate(String minPlanDate)
           
 void setMinStlDate(String minStlDate)
           
 void setMinSuccessDate(String minSuccessDate)
           
 void setMusthave(boolean musthave)
           
 void setMusthavenot(boolean musthavenot)
           
 void setNonstereo(boolean nonstereo)
           
 void setObservations(int observations)
           
 void setOverallPriority(int[] overallPriority)
           
 void setPage(int page)
          Set the page number, must be greater than zero.
 void setPriority(int[] priority)
           
 void setRetired(boolean retired)
           
 void setSd(boolean sd)
           
 void setSize(int size)
          Set the max output size (number of rows returned).
 void setSn(boolean sn)
           
 void setSort(String sort)
          Set the value (column name) to sort on.
 void setSr(boolean sr)
           
 void setSs(boolean ss)
           
 void setStereo(boolean stereo)
           
 void setText(String text)
           
 void setTheme1(int... theme1)
           
 void setTheme2(int... theme2)
           
 void setUncolor(boolean uncolor)
           
 void setUncrism(boolean uncrism)
           
 void setUsername(String username)
          Set the username to search on
 void setWord(boolean word)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
          Validate form input
 
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

username

protected String username
suggester username


text

protected String text
description or comment text


theme1

protected int[] theme1
primary science theme array


repeat

protected String[] repeat
type of repeat suggestions


theme2

protected int[] theme2
secondary science theme array


minLs

protected float minLs
Minimum solar longitude


maxLs

protected float maxLs
Maximum solar longitude


minLat

protected float minLat
Minimum latitude (planetocentric)


maxLat

protected float maxLat
Maximum latitude (planetocentric)


minLon

protected float minLon
Minimum longitude (east)


maxLon

protected float maxLon
Maximum longitude (east)


cenLat

protected float cenLat
Center latitude (planetocentric)


cenLon

protected float cenLon
Center longitude (east)


latRange

protected float latRange
Range from center (degrees) north-south


lonRange

protected float lonRange
Range from center (degrees) east-west


stereo

protected boolean stereo
If true, include stereo


nonstereo

protected boolean nonstereo
If true, include non-stereo


sd

protected boolean sd
If true, search description


ss

protected boolean ss
If true, search stl_description


sr

protected boolean sr
If true, search science rationale


sn

protected boolean sn
If true, search notes


retired

protected boolean retired
If true, include retired


active

protected boolean active
If true, include the not retired


word

protected boolean word
If true, do a whole-word search


crism

protected boolean crism
If true, include CRISM coordinated


uncrism

protected boolean uncrism
If true, include non-CRISM coordinated


binning

protected int[] binning
Binning values to search on


observations

protected int observations
Number of repeat observations


priority

protected int[] priority
Priority values


color

protected boolean color
If true, include needs-color


uncolor

protected boolean uncolor
If true, include do not need color


overallPriority

protected int[] overallPriority
Overall priority values


minDate

protected String minDate
Lower bound for suggestion date


maxDate

protected String maxDate
Upper bound for suggestion date


minSuccessDate

protected String minSuccessDate
Lower bound for success date


maxSuccessDate

protected String maxSuccessDate
Upper bound for success date


minPlanDate

protected String minPlanDate
Lower bound for plan date


maxPlanDate

protected String maxPlanDate
Upper bound for plan date


minStlDate

protected String minStlDate
Lower bound for STL edit date


maxStlDate

protected String maxStlDate
Upper bound for STL edit date


musthave

protected boolean musthave
If true, include STL-must haves


musthavenot

protected boolean musthavenot
If true, include not STL-must haves

Constructor Detail

SuggestionSearchForm

public SuggestionSearchForm()
Method Detail

getUsername

public String getUsername()
Get the username to search on

Returns:
username

setUsername

public void setUsername(String username)
Set the username to search on

Parameters:
username - Suggester username

getText

public String getText()
Returns:
the text

setText

public void setText(String text)
Parameters:
text - the text to set

getTheme1

public int[] getTheme1()
Returns:
the theme1

setTheme1

public void setTheme1(int... theme1)
Parameters:
theme1 - the theme1 to set

getTheme2

public int[] getTheme2()
Returns:
the theme2

setTheme2

public void setTheme2(int... theme2)
Parameters:
theme2 - the theme2 to set

getMinLs

public float getMinLs()
Returns:
the minLs

setMinLs

public void setMinLs(float minLs)
Parameters:
minLs - the minLs to set

getMaxLs

public float getMaxLs()
Returns:
the maxLs

setMaxLs

public void setMaxLs(float maxLs)
Parameters:
maxLs - the maxLs to set

getMinLat

public float getMinLat()
Returns:
the minLat

setMinLat

public void setMinLat(float minLat)
Parameters:
minLat - the minLat to set

getMaxLat

public float getMaxLat()
Returns:
the maxLat

setMaxLat

public void setMaxLat(float maxLat)
Parameters:
maxLat - the maxLat to set

getMinLon

public float getMinLon()
Returns:
the minLon

setMinLon

public void setMinLon(float minLon)
Parameters:
minLon - the minLon to set

getMaxLon

public float getMaxLon()
Returns:
the maxLon

setMaxLon

public void setMaxLon(float maxLon)
Parameters:
maxLon - the maxLon to set

getCenLat

public float getCenLat()
Returns:
the cenLat

setCenLat

public void setCenLat(float cenLat)
Parameters:
cenLat - the cenLat to set

getCenLon

public float getCenLon()
Returns:
the cenLon

setCenLon

public void setCenLon(float cenLon)
Parameters:
cenLon - the cenLon to set

getLatRange

public float getLatRange()
Get the north-south range

Returns:
the latitude range

setLatRange

public void setLatRange(float latRange)
Set the latitude range

Parameters:
latRange - the north-south range

getLonRange

public float getLonRange()
Get the east-west range

Returns:
the longitude range

setLonRange

public void setLonRange(float lonRange)
Set the longitude range

Parameters:
lonRange - the east-west range

isStereo

public boolean isStereo()
Returns:
the stereo

setStereo

public void setStereo(boolean stereo)
Parameters:
stereo - the stereo to set

isNonstereo

public boolean isNonstereo()
Returns:
the nonstereo

setNonstereo

public void setNonstereo(boolean nonstereo)
Parameters:
nonstereo - the nonstereo to set

isSd

public boolean isSd()
Returns:
the sd

setSd

public void setSd(boolean sd)
Parameters:
sd - the sd to set

isSs

public boolean isSs()
Returns:
the ss

setSs

public void setSs(boolean ss)
Parameters:
ss - the ss to set

isSr

public boolean isSr()
Returns:
the sr

setSr

public void setSr(boolean sr)
Parameters:
sr - the sr to set

isSn

public boolean isSn()
Returns:
the sn

setSn

public void setSn(boolean sn)
Parameters:
sn - the sn to set

getRetired

public boolean getRetired()
Returns:
the retired

setRetired

public void setRetired(boolean retired)
Parameters:
retired - the retired to set

getActive

public boolean getActive()
Returns:
the active

setActive

public void setActive(boolean active)
Parameters:
active - the active to set

isWord

public boolean isWord()
Returns:
the word

setWord

public void setWord(boolean word)
Parameters:
word - the word to set

isCrism

public boolean isCrism()
Returns:
the crism

setCrism

public void setCrism(boolean crism)
Parameters:
crism - the crism to set

isUncrism

public boolean isUncrism()
Returns:
the uncrism

setUncrism

public void setUncrism(boolean uncrism)
Parameters:
uncrism - the uncrism to set

getBinning

public int[] getBinning()
Returns:
the binning

setBinning

public void setBinning(int[] binning)
Parameters:
binning - the binning to set

getObservations

public int getObservations()
Returns:
the observations

setObservations

public void setObservations(int observations)
Parameters:
observations - the observations to set

getPriority

public int[] getPriority()
Returns:
the priority

setPriority

public void setPriority(int[] priority)
Parameters:
priority - the priority to set

isColor

public boolean isColor()
Returns:
the color

setColor

public void setColor(boolean color)
Parameters:
color - the color to set

isUncolor

public boolean isUncolor()
Returns:
the uncolor

setUncolor

public void setUncolor(boolean uncolor)
Parameters:
uncolor - the uncolor to set

getOverallPriority

public int[] getOverallPriority()
Returns:
the overallPriority

setOverallPriority

public void setOverallPriority(int[] overallPriority)
Parameters:
overallPriority - the overallPriority to set

getMinDate

public String getMinDate()
Returns:
the minDate

setMinDate

public void setMinDate(String minDate)
Parameters:
minDate - the minDate to set

getMaxDate

public String getMaxDate()
Returns:
the maxDate

setMaxDate

public void setMaxDate(String maxDate)
Parameters:
maxDate - the maxDate to set

getMinSuccessDate

public String getMinSuccessDate()
Returns:
the minSuccessDate

setMinSuccessDate

public void setMinSuccessDate(String minSuccessDate)
Parameters:
minSuccessDate - the minSuccessDate to set

getMaxSuccessDate

public String getMaxSuccessDate()
Returns:
the maxSuccessDate

setMaxSuccessDate

public void setMaxSuccessDate(String maxSuccessDate)
Parameters:
maxSuccessDate - the maxSuccessDate to set

getMinPlanDate

public String getMinPlanDate()
Returns:
the minPlanDate

setMinPlanDate

public void setMinPlanDate(String minPlanDate)
Parameters:
minPlanDate - the minPlanDate to set

getMaxPlanDate

public String getMaxPlanDate()
Returns:
the maxPlanDate

setMaxPlanDate

public void setMaxPlanDate(String maxPlanDate)
Parameters:
maxPlanDate - the maxPlanDate to set

getMinStlDate

public String getMinStlDate()
Returns:
the minStlDate

setMinStlDate

public void setMinStlDate(String minStlDate)
Parameters:
minStlDate - the minStlDate to set

getMaxStlDate

public String getMaxStlDate()
Returns:
the maxStlDate

setMaxStlDate

public void setMaxStlDate(String maxStlDate)
Parameters:
maxStlDate - the maxStlDate to set

isMusthave

public boolean isMusthave()
Returns:
the musthave

setMusthave

public void setMusthave(boolean musthave)
Parameters:
musthave - the musthave to set

isMusthavenot

public boolean isMusthavenot()
Returns:
the musthavenot

setMusthavenot

public void setMusthavenot(boolean musthavenot)
Parameters:
musthavenot - the musthavenot to set

getOrder

public org.displaytag.properties.SortOrderEnum getOrder()
Get the sort order

Returns:
sort order

getPage

public int getPage()
Get the page number (1-based)

Returns:
page number

setPage

public void setPage(int page)
Set the page number, must be greater than zero.

Parameters:
page - number

getSize

public int getSize()
Get the max output size (number of rows returned).

Returns:
size

setSize

public void setSize(int size)
Set the max output size (number of rows returned). Must be greater than zero.

Parameters:
size - number

getSort

public String getSort()
Get the column to sort on

Returns:
column name

setSort

public void setSort(String sort)
Set the value (column name) to sort on.

Parameters:
sort - name of column

getDir

public String getDir()
Get the sort direction, either "asc" or "desc".

Returns:
sort direction

setDir

public void setDir(String dir)
Set the sort direction. If it starts with 'd' or 'D' then descending is set, otherwise ascending.

Parameters:
dir - sort direction

getDateRange

public Date[] getDateRange()
Get the suggestion date range requested (validate method must be called first).

Returns:
date range

getPlanDateRange

public Date[] getPlanDateRange()
Get the planned date range requested (validate method must be called first).

Returns:
date range

getSuccessDateRange

public Date[] getSuccessDateRange()
Get the success date range requested (validate method must be called first).

Returns:
date range

getStlDateRange

public Date[] getStlDateRange()
Get the STL date range requested (validate method must be called first).

Returns:
date range

validate

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

Overrides:
validate in class org.apache.struts.action.ActionForm

reset

public void reset(org.apache.struts.action.ActionMapping map,
                  javax.servlet.http.HttpServletRequest req)
Overrides:
reset in class org.apache.struts.action.ActionForm

HiRISE

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