|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kiurubeans.KiuruHandler
|
+--kiurubeans.SearchHandler
|
+--kiurubeans.PersonSearch
Used for searches on the person table.
| Field Summary |
| Fields inherited from class kiurubeans.SearchHandler |
RESET_SEARCH, SUBMIT_SEARCH |
| Fields inherited from class kiurubeans.KiuruHandler |
NO_ACTION |
| Constructor Summary | |
PersonSearch()
Constructs a new instance of PersonSearch. |
|
| Method Summary | |
protected void |
doClearActionState(javax.servlet.http.HttpServletRequest request)
Default implementation of clearing action state. |
protected void |
doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
Ensures empty request parameters are cleared when entity is posted. |
static RS2 |
getPersonIdsFromSpaceGroup(int spacegroupid)
Returns person information for given spacegroup. |
java.lang.String |
getPersonName()
Getter for attribute name |
RS2 |
getPersons()
Returns all persons with code match. |
RS2 |
getPersonsFromSpaceGroup(int spacegroupid)
Returns person information for given spacegroup. |
void |
resetSearch()
Implementation for RESET_SEARCH |
void |
setPersonName(java.lang.String name)
Setter for attribute name |
void |
submitSearch()
Implementation for SUBMIT_SEARCH |
| Methods inherited from class kiurubeans.SearchHandler |
assignDefaultOrder, clearEmptyParameters, defaultAction, fieldIndexOf, getMaxState, getOrder, getOrderClause, getVisibleFields, getVisibleFields, setContinueSearch, setOrder, setSubmitSearch, setVisibleFields, setVisibleFields |
| Methods inherited from class kiurubeans.KiuruHandler |
addError, addNotice, getEnumState, getError, getLangId, getOk, getUser, performAction, resetActionState, resetErrorState, setEnumState, setError, setOk, setUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersonSearch()
| Method Detail |
public java.lang.String getPersonName()
public void setPersonName(java.lang.String name)
name - person name used in query stringpublic void submitSearch()
submitSearch in class SearchHandlerpublic void resetSearch()
resetSearch in class SearchHandler
public static RS2 getPersonIdsFromSpaceGroup(int spacegroupid)
throws java.lang.Exception
spacegroupid - spacegroup to be searched
java.lang.Exception - if problems with db connection
public RS2 getPersonsFromSpaceGroup(int spacegroupid)
throws java.lang.Exception
spacegroupid - spacegroup to be searched
java.lang.Exception - if problems with db connection
public RS2 getPersons()
throws java.lang.Exception
java.lang.Exception - if problems with db connectionprotected void doClearActionState(javax.servlet.http.HttpServletRequest request)
doClearActionState in class SearchHandlerrequest - The request-object of the JSP.SearchHandler.doClearActionState(HttpServletRequest)protected void doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
If bean is used in a JSP, this should be called in the beginning of page. If form content is "" or null it is not sent via HTTP, so those fields must be cleared manually.
doClearEmptyParameters in class SearchHandlerrequest - HTTP request with parametersSearchHandler.clearEmptyParameters(HttpServletRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||