|
||||||||||
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.jcms.caddy.CaddyPopupHandler
public class CaddyPopupHandler
This handler is used to add or remove content to the caddy.
Field Summary | |
---|---|
protected int |
action
|
static int |
ACTION_ADD
|
static int |
ACTION_ADD_CATEGORYS_CHILDREN
|
static String |
ACTION_ADD_CATEGORYS_CHILDREN_STR
|
static String |
ACTION_ADD_STR
|
static int |
ACTION_CLEAR
|
static String |
ACTION_CLEAR_STR
|
static int |
ACTION_NOACTION
|
static int |
ACTION_REMOVE
|
static String |
ACTION_REMOVE_STR
|
static int |
ACTION_REPLACE
|
static String |
ACTION_REPLACE_STR
|
protected boolean |
checkPstatus
|
protected Class<? extends Data> |
dataClass
|
protected HashSet<Data> |
dataSet
|
protected String |
groupQueryString
|
protected String |
memberQueryString
|
protected String |
queryString
|
static String |
REVISION
|
protected String |
workspaceQueryString
|
Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
---|
AJAX_REQUEST_ATTRIBUTES, 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, 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 | |
---|---|
CaddyPopupHandler()
|
Method Summary | |
---|---|
protected void |
add()
Add all data to the caddy. |
protected void |
addCategorysChildren()
For all categories in the dataSet, add their descendant. |
protected void |
clear()
Clear the caddy. |
Class<? extends Data> |
getDataClass()
|
String |
getDataType()
|
protected void |
remove()
Remove all data from the caddy. |
protected void |
replace()
Replace all data from the caddy. |
protected void |
retrieveResultFromGroupQuery()
Use the group query string to retrieve more results in the dataSet. |
protected void |
retrieveResultFromMemberQuery()
Use the member query string to retrieve more results in the dataSet. |
protected void |
retrieveResultFromQuery()
Use the query string to retrieve more results in the dataSet. |
protected void |
retrieveResultFromWorkspaceQuery()
Use the workspace query string to retrieve more results in the dataSet. |
void |
setAction(String str)
Define the type of action to do. |
void |
setCheckPstatus(String check)
Set whether to check for pstatus when using query string (default is true) |
void |
setDataType(String str)
Define the type of data we want to display. |
void |
setGroupQueryString(String groupQueryString)
Set the group query string to query Data to add or remove to caddy. |
void |
setId(String id)
Set id of Data to add or remove to caddy. |
void |
setIds(String[] ids)
Set ids of Data to add or remove to caddy. |
void |
setMemberQueryString(String memberQueryString)
Set the member query string to query Data to add or remove to caddy. |
void |
setQueryString(String queryString)
Set the query string to query Data to add or remove to caddy. |
void |
setWorkspaceQueryString(String workspaceQueryString)
Set the workspace query string to query Data to add or remove to caddy. |
boolean |
validate()
Effectively trigger the action of this handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String ACTION_ADD_STR
public static final String ACTION_REMOVE_STR
public static final String ACTION_REPLACE_STR
public static final String ACTION_ADD_CATEGORYS_CHILDREN_STR
public static final String ACTION_CLEAR_STR
public static final int ACTION_NOACTION
public static final int ACTION_ADD
public static final int ACTION_REMOVE
public static final int ACTION_REPLACE
public static final int ACTION_ADD_CATEGORYS_CHILDREN
public static final int ACTION_CLEAR
protected int action
protected Class<? extends Data> dataClass
protected HashSet<Data> dataSet
protected String queryString
protected String groupQueryString
protected String memberQueryString
protected String workspaceQueryString
protected boolean checkPstatus
Constructor Detail |
---|
public CaddyPopupHandler()
Method Detail |
---|
public boolean validate() throws IOException
IOException
- on errorprotected void retrieveResultFromQuery()
protected void retrieveResultFromGroupQuery()
protected void retrieveResultFromMemberQuery()
protected void retrieveResultFromWorkspaceQuery()
protected void add()
protected void remove()
protected void replace()
protected void clear()
protected void addCategorysChildren()
public Class<? extends Data> getDataClass()
public String getDataType()
public void setAction(String str)
str
- the action to perform, as a stringpublic void setDataType(String str)
str
- the data type to display, "Category", "Workspace", etc...public void setId(String id)
id
- an id of Data to add/remove from the caddypublic void setIds(String[] ids)
ids
- an array of Data's id to add/remove from the caddypublic void setQueryString(String queryString)
queryString
- a querystring as generated from QueryHandlerpublic void setGroupQueryString(String groupQueryString)
groupQueryString
- a querystring as generated from GroupQueryHandlerpublic void setMemberQueryString(String memberQueryString)
memberQueryString
- a querystring as generated from MemberQueryHandlerpublic void setWorkspaceQueryString(String workspaceQueryString)
workspaceQueryString
- a querystring as generated from WorkspaceQueryHandlerpublic void setCheckPstatus(String check)
check
- true
to check pstatus during query, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |