|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.context.JcmsContext com.jalios.jcms.context.JcmsJspContext com.jalios.jcms.caddy.CaddyPopinHandler
public class CaddyPopinHandler
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 |
caddyUpdated
|
protected boolean |
checkPstatus
|
protected Class<? extends Data> |
dataClass
|
protected HashSet<Data> |
dataSet
|
protected HashSet<String> |
dbMemberIdSet
|
protected String |
dbMemberQueryString
|
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, isDBMember, 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 | |
---|---|
CaddyPopinHandler()
|
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()
|
boolean |
isCaddyUpdated()
Check if the caddy was updated from the invocation to this handler. |
protected void |
remove()
Remove all data from the caddy. |
protected void |
replace()
Replace all data from the caddy. |
protected void |
retrieveResultFromDBMemberQuery()
Use the member query string to retrieve more results in the dataSet. |
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 |
setCadAction(String str)
Define the type of action to do. |
void |
setCadCheckPstatus(String check)
Set whether to check for pstatus when using query string (default is true) |
void |
setCadDataType(String str)
Define the type of data we want to display. |
void |
setCadDbMemberQueryString(String dbMemberQueryString)
Set the DBMember query string to query Data to add or remove to caddy. |
void |
setCadGroupQueryString(String groupQueryString)
Set the group query string to query Data to add or remove to caddy. |
void |
setCadId(String id)
Set id of Data to add or remove to caddy. |
void |
setCadIds(String[] ids)
Set ids of Data to add or remove to caddy. |
void |
setCadMemberQueryString(String memberQueryString)
Set the member query string to query Data to add or remove to caddy. |
void |
setCadQueryString(String queryString)
Set the query string to query Data to add or remove to caddy. |
void |
setCadWorkspaceQueryString(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 HashSet<String> dbMemberIdSet
protected String queryString
protected String groupQueryString
protected String memberQueryString
protected String dbMemberQueryString
protected String workspaceQueryString
protected boolean checkPstatus
protected boolean caddyUpdated
Constructor Detail |
---|
public CaddyPopinHandler()
Method Detail |
---|
public boolean validate() throws IOException
IOException
- on errorprotected void retrieveResultFromQuery()
protected void retrieveResultFromGroupQuery()
protected void retrieveResultFromMemberQuery()
protected void retrieveResultFromDBMemberQuery()
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 setCadAction(String str)
str
- the action to perform, as a stringpublic void setCadDataType(String str)
str
- the data type to display, "Category", "Workspace", etc...public void setCadId(String id)
id
- an id of Data to add/remove from the caddypublic void setCadIds(String[] ids)
ids
- an array of Data's id to add/remove from the caddypublic void setCadQueryString(String queryString)
queryString
- a querystring as generated from QueryHandlerpublic void setCadGroupQueryString(String groupQueryString)
groupQueryString
- a querystring as generated from GroupQueryHandlerpublic void setCadMemberQueryString(String memberQueryString)
memberQueryString
- a querystring as generated from MemberQueryHandlerpublic void setCadDbMemberQueryString(String dbMemberQueryString)
dbMemberQueryString
- a querystring as generated from DBMemberQueryHandlerpublic void setCadWorkspaceQueryString(String workspaceQueryString)
workspaceQueryString
- a querystring as generated from WorkspaceQueryHandlerpublic void setCadCheckPstatus(String check)
check
- true
to check pstatus during query, false
otherwise.public boolean isCaddyUpdated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |