|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alltimeflashdreamer.filelister.SearchParameters
Title: SearchParameters
Description: This class stores the settings of one FileLister search parameter input/constellation. It is ready to be queried by SQLQueryBuilder or extending classes to build the appropriate SQL query string(s).
Organization: All Time Flash Dreamer
Field Summary | |
(package private) static int |
NOTSPECIFIED
place holder value for "not specified" or "not defined" (this is -1) |
Constructor Summary | |
(package private) |
SearchParameters()
The empty constructor initializes the class with the application's default values. |
(package private) |
SearchParameters(HttpServletRequest request)
Constructor reads the URL input parameters regarding the search settings that need to be stored for each (consecutive) search. |
Method Summary | |
(package private) boolean |
getBooleanInput(String sURLInput)
Returns true only if the given input equals "true", else false is returned. |
(package private) static long |
getDefaultMultiplier()
Returns the default multiplier value (1024, indicating KB). |
(package private) Date |
getEndingDate()
Returns the current ending date or null, if not defined. |
String |
getEndingDateOutput()
Returns the currently set ending date value, as a String which is empty in case no ending date size has yet been defined by the user. |
(package private) long |
getMaximumMultiplier()
Returns the current maximum multiplier. |
String |
getMaximumMultiplierOutput()
Returns the whole list of option tags to be filled into the maximum size's multiplier select box, having the correct entry selected. |
(package private) long |
getMaximumSize()
Returns the current maximum size value or -1, if not defined. |
String |
getMaximumSizeOutput()
Returns the currently set maximum value, as a String which is empty in case no maximum size has yet been defined by the user. |
(package private) long |
getMinimumMultiplier()
Returns the current minimum multiplier value. |
String |
getMinimumMultiplierOutput()
Returns the whole list of option tags to be filled into the minimum size's multiplier select box, having the correct entry selected. |
(package private) long |
getMinimumSize()
Returns the current minimum size value or -1, if not defined. |
String |
getMinimumSizeOutput()
Returns the currently set minimum value, as a String which is empty in case no minimum size has yet been defined by the user. |
String |
getSearchString()
Returns the search string entered by the user for this specific search (cycle). |
(package private) Date |
getStartingDate()
Returns the current starting date or null, if not defined. |
String |
getStartingDateOutput()
Returns the currently set starting date value, as a String which is empty in case no starting date size has yet been defined by the user. |
(package private) void |
initializeDefaultValues()
Initializes the class with default values (only). |
boolean |
isCaseSensitiveSearch()
Returns whether the search string shall be handled in the case sensitive fashion or not. |
boolean |
isDirectoryListing()
Tells whether the directories shall be listed. |
boolean |
isExactMatch()
Returns whether the search string shall be matched exactly or not. |
boolean |
isFileListing()
Tells whether the files shall be listed. |
boolean |
isListingAllEntries()
Returns whether all contents shall be listed (client entered the empty string as the search string) or not. |
boolean |
isUsingRegExp()
Returns whether the user selected to use regular expressions for the search string or not. |
(package private) void |
setCaseSensitiveSearch(boolean bCaseSensitiveSearch)
Sets the bCaseSensitiveSearch attribute. |
(package private) void |
setDirectoryListing(boolean bListDirectories)
Set the bListDirectories attribute. |
(package private) void |
setEndingDate(Date dtEndingDate)
Sets the given ending date. |
(package private) void |
setExactMatch(boolean bExactMatch)
Sets the bExactMatch attribute. |
(package private) void |
setFileListing(boolean bListFiles)
Set the bListFiles attribute. |
(package private) void |
setMaximumMultiplier(long lMaximumMultiplier)
Sets the current maximum multiplier value. |
(package private) void |
setMaximumSize(long lMaximumSize)
Sets the given maximum size value or -1, if lower than -1. |
(package private) void |
setMinimumMultiplier(long lMinimumMultiplier)
Sets the current minimum multiplier value. |
(package private) void |
setMinimumSize(long lMinimumSize)
Sets the given minimum size value or -1, if lower than -1. |
(package private) void |
setSearchString(String sSearchString)
Sets the sSearchString attribute. |
(package private) void |
setStartingDate(Date dtStartingDate)
Sets the given starting date. |
(package private) void |
setUsingRegExp(boolean bUseRegExp)
Sets the bUseRegExp attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int NOTSPECIFIED
Constructor Detail |
SearchParameters(HttpServletRequest request) throws FileListerException
request
- where to read the URL input from
FileListerException
- wrapper for each detected "bad input"SearchParameters()
Method Detail |
public boolean isDirectoryListing()
public boolean isFileListing()
public boolean isUsingRegExp()
public boolean isCaseSensitiveSearch()
public boolean isExactMatch()
public String getSearchString()
public boolean isListingAllEntries()
public String getMinimumSizeOutput()
public String getMaximumSizeOutput()
public String getStartingDateOutput()
public String getEndingDateOutput()
public String getMinimumMultiplierOutput()
public String getMaximumMultiplierOutput()
void setDirectoryListing(boolean bListDirectories)
bListDirectories
- list directories or not?void setFileListing(boolean bListFiles)
bListFiles
- list files or not?void setUsingRegExp(boolean bUseRegExp)
bUseRegExp
- use regexp or not?void setCaseSensitiveSearch(boolean bCaseSensitiveSearch)
bCaseSensitiveSearch
- search case-sensitively or not?void setExactMatch(boolean bExactMatch)
bExactMatch
- search exact match or not?void setSearchString(String sSearchString)
sSearchString
- search string of user?long getMinimumSize()
void setMinimumSize(long lMinimumSize)
lMinimumSize
- the new minimum sizelong getMaximumSize()
void setMaximumSize(long lMaximumSize)
lMaximumSize
- the new maximum sizeDate getStartingDate()
void setStartingDate(Date dtStartingDate)
dtStartingDate
- a new starting date or null, to unset itDate getEndingDate()
void setEndingDate(Date dtEndingDate)
dtEndingDate
- a new ending date or null, to unset itlong getMinimumMultiplier()
void setMinimumMultiplier(long lMinimumMultiplier)
lMinimumMultiplier
- at least 1long getMaximumMultiplier()
void setMaximumMultiplier(long lMaximumMultiplier)
lMaximumMultiplier
- at least 1void initializeDefaultValues()
boolean getBooleanInput(String sURLInput)
sURLInput
- the input to parse
static long getDefaultMultiplier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |