From: <ty...@us...> - 2003-12-09 15:56:43
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/util In directory sc8-pr-cvs1:/tmp/cvs-serv20623 Modified Files: SearchProperties.java Log Message: Index: SearchProperties.java =================================================================== RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/util/SearchProperties.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SearchProperties.java 17 Nov 2003 19:39:59 -0000 1.1.1.1 --- SearchProperties.java 9 Dec 2003 15:56:40 -0000 1.2 *************** *** 25,34 **** import java.util.*; /** Helper Bean for values from the search ActionForm * @author Uwe van Heesch (tyron_E at users dot sf dot net) * @version 0.01 */ ! public class SearchProperties implements java.io.Serializable{ ! private Boolean online; private Boolean newFiles; --- 25,34 ---- import java.util.*; + /** Helper Bean for values from the search ActionForm * @author Uwe van Heesch (tyron_E at users dot sf dot net) * @version 0.01 */ ! public class SearchProperties implements java.io.Serializable { private Boolean online; private Boolean newFiles; *************** *** 38,163 **** private String searchString; private String unit; ! private Collection hosts; // for future use ! private Integer newInterval; //for future use; ! ! /** empty constructor for SearchProperties */ ! public SearchProperties(){ online = Boolean.FALSE; newFiles = Boolean.FALSE; ! searchOptions=""; ! size=""; count = new Integer(100); ! searchString=""; ! unit=""; hosts = new ArrayList(); newInterval = new Integer(0); } ! /** Sets the online field to passed Value * @param online Boolean online ! */ ! public void setOnline(Boolean online){ ! if(online != null) this.online = online; ! else this.online = Boolean.FALSE; } ! /** Sets the newFiles field to the passed value * @param newFiles Boolean newFiles true if only new results are to be shown ! */ ! public void setNewFiles(Boolean newFiles){ ! if(newFiles != null) this.newFiles = newFiles; ! else this.newFiles = Boolean.FALSE; } ! /** Sets the searchOptions field to passed value * @param searchOptions String searchOptions passes ether music, videos, all aor pictures ! */ ! public void setSearchOptions(String searchOptions){ this.searchOptions = searchOptions; } ! /** Sets the size field to passed value * @param size String size. Possible values: 0-10, 10-100,100-1000 ! */ ! public void setSize(String size){ this.size = size; } ! /** Sets the count field to the passed value * @param count Integer count sets the number of desired Results ! */ ! public void setCount(Integer count){ this.count = count; } ! /** Sets the searchString field to the passed value * @param searchString String searchString the whitespace seperated list of search words * ! */ ! public void setSearchString(String searchString){ this.searchString = searchString; } ! /** Sets the unit field to the passed value * @param unit String unit Possible values: B, KB, MB ! */ ! public void setUnit(String unit){ this.unit = unit; ! } ! ! /** Returns the value of the online field * @return Boolean The value of the online field ! */ ! public Boolean getOnline(){ return online; } ! /** Returns the value of the field newFiles * @return Boolean : True if only new results are to be shown ! */ ! public Boolean getNewFiles(){ return newFiles; } ! /** Return the value of the field searchOptions * @return String The search options. Possible values: music, videos, images, all ! */ ! public String getSearchOptions(){ return searchOptions; } ! /** return the value of the field size * @return String : The wanted file size without unit * ! */ ! public String getSize(){ return size; } ! /** Return the value of the field count * @return Integer The number of wanted results per computer ! */ ! public Integer getCount(){ return count; } ! /** Return the value of the field searchString * @return String The searchstring ! */ ! public String getSearchString(){ return searchString; } ! /** Return the value of the field unit * @return String The unit of the file size. Possible values: B,KB,MB ! */ ! public String getUnit(){ return unit; ! } ! ! } ! --- 38,163 ---- private String searchString; private String unit; ! private Collection hosts; // for future use ! private Integer newInterval; //for future use; ! ! /** empty constructor for SearchProperties */ ! public SearchProperties() { online = Boolean.FALSE; newFiles = Boolean.FALSE; ! searchOptions = ""; ! size = ""; count = new Integer(100); ! searchString = ""; ! unit = ""; hosts = new ArrayList(); newInterval = new Integer(0); } ! /** Sets the online field to passed Value * @param online Boolean online ! */ ! public void setOnline(Boolean online) { ! if (online != null) { this.online = online; ! } else { ! this.online = Boolean.FALSE; ! } } ! /** Sets the newFiles field to the passed value * @param newFiles Boolean newFiles true if only new results are to be shown ! */ ! public void setNewFiles(Boolean newFiles) { ! if (newFiles != null) { this.newFiles = newFiles; ! } else { this.newFiles = Boolean.FALSE; + } } ! /** Sets the searchOptions field to passed value * @param searchOptions String searchOptions passes ether music, videos, all aor pictures ! */ ! public void setSearchOptions(String searchOptions) { this.searchOptions = searchOptions; } ! /** Sets the size field to passed value * @param size String size. Possible values: 0-10, 10-100,100-1000 ! */ ! public void setSize(String size) { this.size = size; } ! /** Sets the count field to the passed value * @param count Integer count sets the number of desired Results ! */ ! public void setCount(Integer count) { this.count = count; } ! /** Sets the searchString field to the passed value * @param searchString String searchString the whitespace seperated list of search words * ! */ ! public void setSearchString(String searchString) { this.searchString = searchString; } ! /** Sets the unit field to the passed value * @param unit String unit Possible values: B, KB, MB ! */ ! public void setUnit(String unit) { this.unit = unit; ! } ! /** Returns the value of the online field * @return Boolean The value of the online field ! */ ! public Boolean getOnline() { return online; } ! /** Returns the value of the field newFiles * @return Boolean : True if only new results are to be shown ! */ ! public Boolean getNewFiles() { return newFiles; } ! /** Return the value of the field searchOptions * @return String The search options. Possible values: music, videos, images, all ! */ ! public String getSearchOptions() { return searchOptions; } ! /** return the value of the field size * @return String : The wanted file size without unit * ! */ ! public String getSize() { return size; } ! /** Return the value of the field count * @return Integer The number of wanted results per computer ! */ ! public Integer getCount() { return count; } ! /** Return the value of the field searchString * @return String The searchstring ! */ ! public String getSearchString() { return searchString; } ! /** Return the value of the field unit * @return String The unit of the file size. Possible values: B,KB,MB ! */ ! public String getUnit() { return unit; ! } ! } \ No newline at end of file |