|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.ActionForm HiRISE.HiReport.form.PageSortForm HiRISE.HiReport.form.TimeRangeForm HiRISE.HiReport.form.OrbitCycleForm HiRISE.HiReport.form.AdvancedSearchForm
public class AdvancedSearchForm
Form for observation-based listings. This captures any and all information pertaining to a query that could return zero or more observations. It internally has a TimeRangeModel. Upon validation, this will be updated to contain the min and max time for the query.
Field Summary | |
---|---|
protected boolean |
active
If true, include the not retired |
protected String |
by
Do search by distance in km or degrees? |
protected boolean |
cap
If true, include captioned observations |
protected float |
cenLat
Center latitude ('ocentric) |
protected float |
cenLon
Center longitude (east) |
protected String |
description
description or comment text |
protected boolean |
highStability
If true, include high stability |
static String |
ID
CVS ID |
protected float |
maxLat
Maximum latitude ('ocentric) |
protected float |
maxLon
Maximum longitude (east) |
protected float |
maxLs
Maximum solar longitude |
protected int |
maxMy
Maximum Mars year |
protected float |
minLat
Minimum latitude ('ocentric) |
protected float |
minLon
Minimum longitude (east) |
protected float |
minLs
Minimum solar longitude |
protected int |
minMy
Minimum Mars year |
protected boolean |
nadir
If true, include roll angle == 0 |
protected boolean |
nocap
If true, include uncaptioned observations |
protected boolean |
nonstereo
If true, include non-stereo |
protected boolean |
nopub
If true, include unreleased observations |
protected boolean |
normStability
If true, include norm stability |
protected String |
observation
observation pattern, may or may not be full observation ID |
protected boolean |
offnadir
If true, include roll angle != 0 |
protected String[] |
phase
Mission phases |
static String[] |
PHASES
Options array for mission phases |
protected String |
planner
Name of planner |
protected String[] |
product
Product (has) values |
protected boolean |
pub
If true, include publicly released observations |
protected float |
range
Range from center (degrees) |
protected boolean |
retired
If true, include retired |
protected boolean |
sc
If true, search comment |
protected boolean |
sd
If true, search description |
protected String |
season
season name, corresponding to one of the keys in the seasons map |
protected static Map<String,int[]> |
seasons
Maps range choices to Calendar unit fields |
protected boolean |
sn
If true, search notes |
protected boolean |
sp
If true, search planner's note |
protected boolean |
sr
If true, search science rationale |
protected boolean |
ss
If true, search stl_description |
protected String[] |
status
Status values |
static String[] |
STATUSES
Options array for status values |
protected boolean |
stereo
If true, include stereo |
protected String |
suggester
User name from People table |
protected int |
suggestion
Suggestion id |
protected String[] |
tag
Tag values |
protected String |
tagger
Tagger username |
protected String[] |
target
Target array |
static String[] |
TARGETS
Options array for target names |
protected String[] |
theme
science theme array |
static String[] |
THEMES
Options array for science themes |
protected String |
username
User name of the suggester |
protected boolean |
word
If true, do a whole-word search |
Fields inherited from class HiRISE.HiReport.form.OrbitCycleForm |
---|
maxCycle, maxOrbit, minCycle, minOrbit |
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 | |
---|---|
AdvancedSearchForm()
|
Method Summary | ||
---|---|---|
protected
|
checkArray(T t,
T[] array,
String key,
org.apache.struts.action.ActionErrors errors,
String msg)
Check that an item is in an array, which may be unsorted. |
|
boolean |
getActive()
|
|
String |
getBy()
Get the value of by (units of range, either km or deg) |
|
boolean |
getCap()
Returns true if captioned observations will be included, false if excluded |
|
float |
getCenLat()
|
|
float |
getCenLon()
|
|
String |
getDescription()
Get the description being searched on |
|
boolean |
getHighStability()
|
|
String |
getMaxDate()
Get the max date, or null if no max date has been input |
|
float |
getMaxLat()
|
|
float |
getMaxLon()
|
|
float |
getMaxLs()
Get the maximum solar longitude |
|
int |
getMaxMy()
Get the maximum Mars year |
|
String |
getMinDate()
Get the start date, or null if no min date has been input |
|
float |
getMinLat()
|
|
float |
getMinLon()
|
|
float |
getMinLs()
Get the minimum solar longitude |
|
int |
getMinMy()
Get the minimum Mars year |
|
boolean |
getNadir()
|
|
boolean |
getNocap()
Returns true if non-captioned observations will be included, false if excluded |
|
boolean |
getNonstereo()
|
|
boolean |
getNopub()
Returns true if non-public observations will be included, false if excluded |
|
boolean |
getNormStability()
|
|
String |
getObservation()
|
|
boolean |
getOffnadir()
|
|
String[] |
getPhase()
Get the mission phase names |
|
String[] |
getPhases()
Get the array of possible (abbreviated) mission phase names. |
|
String |
getPlanner()
Get the planner name |
|
String[] |
getProduct()
Get the product names |
|
boolean |
getPub()
Returns true if public observations will be included, false if excluded |
|
float |
getRange()
|
|
boolean |
getRetired()
|
|
boolean |
getSc()
|
|
boolean |
getSd()
|
|
String |
getSeason()
|
|
String[] |
getSeasons()
Get the array of possible season names. |
|
boolean |
getSn()
|
|
boolean |
getSp()
|
|
boolean |
getSr()
|
|
boolean |
getSs()
|
|
String[] |
getStatus()
Get the status values |
|
String[] |
getStatuses()
Get the array of possible status values. |
|
boolean |
getStereo()
|
|
String |
getSuggester()
|
|
int |
getSuggestion()
|
|
String[] |
getTag()
Get the tag names |
|
String |
getTagger()
|
|
String[] |
getTarget()
Get the target names |
|
String[] |
getTargets()
Get the array of possible target names. |
|
String[] |
getTheme()
Get the science theme. |
|
String[] |
getThemes()
Get the array of possible science themes. |
|
String |
getUsername()
|
|
boolean |
getWord()
|
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Reset parameters |
|
void |
setActive(boolean active)
|
|
void |
setBy(String by)
Set the value of by (units of range, either km or deg) |
|
void |
setCap(boolean cap)
Set to true to include captioned observations, false to exclude non-captioned observations |
|
void |
setCenLat(float cenLat)
|
|
void |
setCenLon(float cenLon)
|
|
void |
setDescription(String description)
Set the description being searched on |
|
void |
setHighStability(boolean highStability)
|
|
void |
setMaxLat(float maxLat)
|
|
void |
setMaxLon(float maxLon)
|
|
void |
setMaxLs(float maxLs)
Set the maximum solar longitude |
|
void |
setMaxMy(int maxMy)
Set the maximum Mars year |
|
void |
setMinLat(float minLat)
|
|
void |
setMinLon(float minLon)
|
|
void |
setMinLs(float minLs)
Set the minimum solar longitude |
|
void |
setMinMy(int minMy)
Set the minimum Mars year |
|
void |
setNadir(boolean nadir)
|
|
void |
setNocap(boolean nocap)
Set to true to include non-captioned observations, false to exclude non-captioned observations |
|
void |
setNonstereo(boolean nonstereo)
|
|
void |
setNopub(boolean nopub)
Set to true to include non-public observations, false to exclude non-public observations |
|
void |
setNormStability(boolean normStability)
|
|
void |
setObservation(String observation)
|
|
void |
setOffnadir(boolean offnadir)
|
|
void |
setPhase(String... phase)
Set the mission phase names |
|
void |
setPlanner(String planner)
Set the planner name |
|
void |
setProduct(String... product)
Set products |
|
void |
setPub(boolean pub)
Set to true to include public observations, false to exclude non-public observations |
|
void |
setRange(float range)
|
|
void |
setRetired(boolean retired)
|
|
void |
setSc(boolean sc)
|
|
void |
setSd(boolean sd)
|
|
void |
setSeason(String season)
|
|
void |
setSn(boolean sn)
|
|
void |
setSp(boolean sp)
|
|
void |
setSr(boolean sr)
|
|
void |
setSs(boolean ss)
|
|
void |
setStatus(String... status)
Set the status values |
|
void |
setStereo(boolean stereo)
|
|
void |
setSuggester(String suggester)
|
|
void |
setSuggestion(int suggestion)
|
|
void |
setTag(String... tag)
Set tag names |
|
void |
setTagger(String tagger)
|
|
void |
setTarget(String... target)
Set the target names |
|
void |
setTheme(String... theme)
Set the science theme |
|
void |
setUsername(String username)
|
|
void |
setWord(boolean word)
|
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Validate the form input |
Methods inherited from class HiRISE.HiReport.form.OrbitCycleForm |
---|
getMaxCycle, getMaxOrbit, getMinCycle, getMinOrbit, getNextMaxCycle, getNextMaxOrbit, getNextMinCycle, getNextMinOrbit, getPrevMaxCycle, getPrevMaxOrbit, getPrevMinCycle, getPrevMinOrbit, setMaxCycle, setMaxOrbit, setMinCycle, setMinOrbit |
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, 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 |
---|
public static final String ID
public static final String[] PHASES
public static String[] TARGETS
public static final String[] STATUSES
public static final String[] THEMES
protected static Map<String,int[]> seasons
protected String[] phase
protected String[] status
protected String[] product
protected String[] tag
protected String tagger
protected String[] target
protected String description
protected String[] theme
protected float minLs
protected float maxLs
protected int minMy
protected int maxMy
protected int suggestion
protected float minLat
protected float maxLat
protected float minLon
protected float maxLon
protected float cenLat
protected float cenLon
protected float range
protected String planner
protected String season
protected String observation
protected boolean highStability
protected boolean normStability
protected boolean stereo
protected boolean nonstereo
protected boolean nadir
protected boolean offnadir
protected boolean sc
protected boolean sd
protected boolean ss
protected boolean sr
protected boolean sn
protected boolean sp
protected String suggester
protected String username
protected boolean retired
protected boolean active
protected boolean word
protected String by
protected boolean pub
protected boolean nopub
protected boolean cap
protected boolean nocap
Constructor Detail |
---|
public AdvancedSearchForm()
Method Detail |
---|
public String[] getPhases()
public String[] getTargets()
public String[] getThemes()
public String[] getSeasons()
public String[] getStatuses()
public String getPlanner()
public void setPlanner(String planner)
planner
- name of plannerpublic String getBy()
public void setBy(String by)
by
- search bypublic String getDescription()
public void setDescription(String description)
description
- textpublic void setPhase(String... phase)
phase
- mission phasespublic void setTarget(String... target)
target
- name of targetspublic void setProduct(String... product)
product
- product IDspublic void setTag(String... tag)
tag
- Tag namespublic void setStatus(String... status)
status
- values for statuspublic String[] getPhase()
public String[] getTarget()
public String[] getStatus()
public String[] getTag()
public String[] getProduct()
public String[] getTheme()
public void setTheme(String... theme)
theme
- themepublic float getMinLs()
public void setMinLs(float minLs)
minLs
- degrees solar longitudepublic float getMaxLs()
public void setMaxLs(float maxLs)
maxLs
- degrees solar longitudepublic int getMinMy()
public int getMaxMy()
public void setMinMy(int minMy)
minMy
- minimum Mars yearpublic void setMaxMy(int maxMy)
maxMy
- maximum Mars yearpublic float getMinLat()
public float getMaxLat()
public void setMinLat(float minLat)
public void setMaxLat(float maxLat)
public float getMinLon()
public float getMaxLon()
public void setMinLon(float minLon)
public void setMaxLon(float maxLon)
public float getCenLat()
public float getCenLon()
public void setCenLat(float cenLat)
public void setCenLon(float cenLon)
public float getRange()
public void setRange(float range)
public int getSuggestion()
public void setSuggestion(int suggestion)
public void setSeason(String season)
public String getSeason()
public String getObservation()
public void setObservation(String observation)
public boolean getHighStability()
public void setHighStability(boolean highStability)
public boolean getNormStability()
public void setNormStability(boolean normStability)
public boolean getStereo()
public void setStereo(boolean stereo)
public boolean getNonstereo()
public void setNonstereo(boolean nonstereo)
public boolean getNadir()
public void setNadir(boolean nadir)
public boolean getOffnadir()
public void setOffnadir(boolean offnadir)
public void setSc(boolean sc)
public void setSd(boolean sd)
public void setSs(boolean ss)
public void setSr(boolean sr)
public void setSn(boolean sn)
public void setSp(boolean sp)
public boolean getSc()
public boolean getSd()
public boolean getSs()
public boolean getSr()
public boolean getSn()
public boolean getSp()
public String getSuggester()
public void setSuggester(String suggester)
public String getUsername()
public void setUsername(String username)
public String getTagger()
public void setTagger(String tagger)
public boolean getActive()
public void setActive(boolean active)
public boolean getRetired()
public void setRetired(boolean retired)
public boolean getWord()
public void setWord(boolean word)
public boolean getPub()
public void setPub(boolean pub)
pub
- true = include public, false = excludepublic boolean getNopub()
public void setNopub(boolean nopub)
nopub
- true = include non-public, false = excludepublic boolean getCap()
public void setCap(boolean cap)
cap
- true = include captioned, false = excludepublic boolean getNocap()
public void setNocap(boolean nocap)
nocap
- true = include non-captioned, false = excludepublic String getMinDate()
TimeRangeForm
getMinDate
in class TimeRangeForm
public String getMaxDate()
TimeRangeForm
getMaxDate
in class TimeRangeForm
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
PageSortForm
reset
in class PageSortForm
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
validate
in class OrbitCycleForm
protected <T> void checkArray(T t, T[] array, String key, org.apache.struts.action.ActionErrors errors, String msg)
T
- Type of itemt
- itemarray
- The arraykey
- Message keyerrors
- Array of errorsmsg
- Message for user
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |