|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.context.JcmsContext
com.jalios.jcms.context.JcmsJspContext
com.jalios.jcmsplugin.explorer.ExplorerHandler
public class ExplorerHandler
ExplorerHandler is a JavaBean which retrieve and update an Explorer instance. Invoke ExplorerHandler JavaBean to :
| Field Summary |
|---|
| Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
|---|
BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, JS_HEADER, jsboMap, jsboSet, jsfoMap, jsfoSet, out, pageContext, REVISION, SHOW_EDIT_ICON, STYLE_HEADER |
| Fields inherited from class com.jalios.jcms.context.JcmsContext |
|---|
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDebug, isLogged, loggedMember, request, response, userLang, userLocale, workspace |
| Fields inherited from interface com.jalios.util.JaliosConstants |
|---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
| Constructor Summary | |
|---|---|
ExplorerHandler()
|
|
| Method Summary | |
|---|---|
Explorer |
getExplorer()
Retrieves the Explorer instance managed by this handler. |
boolean |
isAjaxRequest()
Checks if the current request is an ajax request or if it is a the 'first' request used to create/init the explorer. |
void |
setExAjax(boolean isAjax)
Defines if this request is an ajax request or not. |
void |
setExCatMode(String catMode)
Sets the category refinement mode to use. |
void |
setExCids(String cids)
Sets all the categories to be used for refinement |
void |
setExContentTypes(String[] contentTypes)
Sets the content type refinement to use in the Explorer |
void |
setExFields(String[] fields)
Sets the fields that should be displayed in explorer view. |
void |
setExId(String exId)
Sets the Explorer id that will be manipulated by this handler. |
void |
setExOcids(String ocids)
Sets the categories to open in the TreeCat |
void |
setExPreviewId(String previewId)
Sets the id of the Publication to preview in the explorer |
void |
setExPstatus(String[] pstatus)
Sets the pstatus to use for refinement in the Explorer |
void |
setExSearchInFiles(boolean searchInFiles)
Sets whether to perform search in files or not |
void |
setExShowInvisiblePubs(boolean showInvisiblePubs)
Sets whether to display invisible publication or not |
void |
setExSrc(String src)
Sets the new source to be used by the Explorer |
void |
setExText(String text)
Sets the text to search |
void |
setExToggleCid(String catId)
Sets a category to be added/remove (toggled) from the refinement option of the Explorer |
void |
setExTypes(String[] types)
Sets the type refinement to be use in the Explorer |
void |
setExViewMode(String viewMode)
Sets the new view mode value to be use by the Explorer. |
void |
setExWrkspc(String wrkspcId)
Sets the workspace to be used by explorer for refinement |
boolean |
validate(boolean create)
Compute and update the Explorer being worked on base on request parameters set by this Handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExplorerHandler()
| Method Detail |
|---|
public boolean validate(boolean create)
create - true to create a new Explorer instance if no Explorer
could be found from the exId parameter, false to skip processing.
public Explorer getExplorer()
public boolean isAjaxRequest()
setExAjax(boolean).
isAjaxRequest in class JcmsContextpublic void setExAjax(boolean isAjax)
isAjax - true to inform that this request is an ajax requestpublic void setExId(String exId)
exId - the Explorer IDpublic void setExViewMode(String viewMode)
viewMode - the new view mode value to use, from ExplorerUtils.getAvailableViewModes()public void setExSrc(String src)
src - a source from ExplorerUtils.getAvailableSrc()public void setExWrkspc(String wrkspcId)
wrkspcId - a Workspace ID or anyhing else to reset workspace refinementpublic void setExCatMode(String catMode)
catMode - a string indicating the mode to use, choosen from "one", "and", "or".public void setExCids(String cids)
cids - an string with Categories' id seperated with commapublic void setExOcids(String ocids)
ocids - an array of Categories' idpublic void setExToggleCid(String catId)
catId - an id of a Categorypublic void setExText(String text)
text - whatever text to searchpublic void setExTypes(String[] types)
types - an array of String, each string being a classname, eg. {"Content", "generated.Article"}public void setExContentTypes(String[] contentTypes)
contentTypes - an array of String, each string being a content type regexp from
the allowed values ExplorerUtils.getAvailableContentTypes(), eg. {"text/*", "application/msword"}public void setExPstatus(String[] pstatus)
pstatus - an array of String, each string being a pstatus, eg. {"-10", "20"}public void setExShowInvisiblePubs(boolean showInvisiblePubs)
showInvisiblePubs - true to display invisible publication, false otherwisepublic void setExSearchInFiles(boolean searchInFiles)
searchInFiles - true to search in content of files, false otherwisepublic void setExPreviewId(String previewId)
previewId - a Publication idpublic void setExFields(String[] fields)
fields - an array of field name e.g. { "id", "title", "mdate" }
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||