|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiurubeans.KiuruHandler | +--kiurubeans.SearchHandler | +--kiurubeans.SpaceGroupSearch
Implement space group searching, ordering & filtering
Field Summary |
Fields inherited from class kiurubeans.SearchHandler |
RESET_SEARCH, SUBMIT_SEARCH |
Fields inherited from class kiurubeans.KiuruHandler |
NO_ACTION |
Constructor Summary | |
SpaceGroupSearch()
Constructs a new instance of SpaceSearch. |
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 clearer when entity is posted. |
static RS2 |
getFavoriteSpaceGroup(int userId)
Returns favorite spacegroupid of user with given id, null if not exists. |
java.lang.String |
getSpaceGroupName()
Getter for attribute spaceGroupName |
RS2 |
getSpaceGroups()
Returns all spacegroups. |
RS2 |
getSpaceGroupsMatched()
Returns all accessible spacegroups with code match User must be set! |
RS2 |
getSpaceGroupsOfSpace(int spaceid)
Returns all public spacegroups in which space of given spaceid belongs. |
RS2 |
getSpaceGroupsWithAccessLevel()
Returns all spacegroups where user has access rights. |
void |
resetSearch()
Implementation for RESET_SEARCH |
void |
setSpaceGroupName(java.lang.String name)
Setter for attribute spaceGroupName |
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 SpaceGroupSearch()
Method Detail |
public java.lang.String getSpaceGroupName()
public void setSpaceGroupName(java.lang.String name)
name
- new name for spacegroupprotected 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 SearchHandler
request
- HTTP request with parametersSearchHandler.clearEmptyParameters(HttpServletRequest)
protected void doClearActionState(javax.servlet.http.HttpServletRequest request)
doClearActionState
in class SearchHandler
request
- The request-object of the JSP.SearchHandler.doClearActionState(HttpServletRequest)
public static RS2 getFavoriteSpaceGroup(int userId) throws java.lang.Exception
userId
- user whose favorites we are searching
java.lang.Exception
- if problems with db connectionpublic void submitSearch()
submitSearch
in class SearchHandler
public void resetSearch()
resetSearch
in class SearchHandler
public RS2 getSpaceGroupsMatched() throws java.lang.Exception
java.lang.Exception
- if problems with db connectionpublic RS2 getSpaceGroups() throws java.lang.Exception
java.lang.Exception
- if problems with db connectionpublic RS2 getSpaceGroupsWithAccessLevel() throws java.lang.Exception
java.lang.Exception
- if problems with db connectionpublic RS2 getSpaceGroupsOfSpace(int spaceid) throws java.lang.Exception
spaceid
- input space id
java.lang.Exception
- if problems with db connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |