public class PubBrowserHandler extends JcmsFormHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ability |
protected boolean |
caddyFilter |
protected Category |
category |
protected java.lang.Class |
currentClass |
protected boolean |
detailMode |
protected java.lang.String[] |
documentKinds |
protected Group[] |
groups |
protected boolean |
isAllMode |
protected boolean |
isContentMode |
protected boolean |
isDeleteMode |
protected boolean |
isFormMode |
protected boolean |
isMineMode |
protected boolean |
isPortletMode |
protected boolean |
isUGCMode |
protected Member |
member |
static java.lang.String |
MINE_GROUPS |
static java.lang.String |
MINE_PORTAL |
protected java.lang.String |
mode |
static java.lang.String |
MODE_ALL |
static java.lang.String |
MODE_DELETE |
static java.lang.String |
MODE_MINE |
protected java.lang.String |
oldType |
protected boolean |
pagerAll |
protected int |
pageSize |
protected java.util.TreeSet |
portals |
protected int |
pstatus |
static java.lang.String |
PUBBROWSER_QUERY
QueryHandler attribute used to indicate that we are processing a pub browser query.
|
protected int |
pubCount |
protected QueryResultSet |
qrs |
protected QueryHandler |
queryHandler |
protected java.util.Set |
resultSet |
static java.lang.String |
REVISION |
protected boolean |
showAllTypesFilter |
protected boolean |
showCaddy |
protected boolean |
showCategories |
protected boolean |
showReadRightsPub |
protected boolean |
sortReverse |
protected java.lang.String |
sortType |
protected int |
start |
protected java.util.List<java.lang.Class<?>> |
subTypeList |
protected java.lang.Class |
superClass |
protected java.lang.String |
text |
protected boolean |
workspaceFilter |
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced
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, jsboSet, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, workspace
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
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 and Description |
---|
PubBrowserHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPublish()
Return true if LoggedMember can publish current type
|
java.lang.String |
getAbility()
Retrieves the current the portal element's ability defined for this handler.
|
Category |
getCategory()
Return the refine category
|
java.lang.Class |
getCurrentClass()
Return the refine class
|
java.lang.String[] |
getDocumentKinds()
Retrieve the kind of document defined for this PubBrowser
|
Group[] |
getGroups()
Return all the groups
|
Member |
getMember()
Return the refine member
|
java.lang.Class |
getOldTypeClass()
Return the old type
|
java.lang.String |
getOpCaddy()
Deprecated.
use
isCaddyFilter() |
java.util.TreeSet |
getPortals() |
java.util.TreeSet |
getPortalSet() |
int |
getPstatus() |
java.lang.String |
getPubBrowserDescription()
Returns the description of the pubBrowser class
|
java.lang.String |
getPubBrowserTitle(java.lang.Class clazz)
Returns the title of the pubBrowser
|
int |
getPubCount() |
QueryHandler |
getQueryHandler() |
java.lang.String |
getQueryStatusMessage(java.lang.String userLang) |
java.util.Set |
getResultSet()
Return the result of publication
|
Group |
getSelectedGroup()
Return the selected group
|
java.util.List<java.lang.Class<?>> |
getSubTypeList() |
java.lang.Class |
getSuperClass()
Return the refine super class
|
java.lang.String |
getText() |
boolean |
isAllMode()
Return true if pubBrowser show All Publication
|
boolean |
isCaddyFilter()
Retrieve a boolean (as a string) indicating if the pub browser is filtered using content of the caddy
|
boolean |
isContentMode()
Return true if pubBrowser show Content
|
boolean |
isDeleteMode()
Return true if pubBrowser show Deleted Publication
|
boolean |
isDetailMode()
Return if the table is in detailed mode
|
boolean |
isFormMode()
Return true if pubBrowser show Form
|
boolean |
isHybrid() |
boolean |
isMineMode()
Return true if pubBrowser show My Publication
|
boolean |
isPortletMode()
Return true if pubBrowser show Portlet
|
boolean |
isUGCMode()
Return true if pubBrowser show UGC
|
boolean |
isWorkspaceFilter() |
boolean |
processAction()
Method to be implemented to check/validate action to be performed and process them.
|
protected void |
queryData()
Execute the query to prepare resultSet
|
boolean |
selectGroup(Group g)
Return true if the current group should be selected
|
boolean |
selectPortal(Portal p)
Return true if the current portal should be selected
|
void |
setAbility(java.lang.String ability)
Sets the portal element's ability to match when PortalElement are found.
|
void |
setCaddyFilter(boolean filter)
Set whether content of pub browser should be filtered by using content in caddy.
|
void |
setCid(java.lang.String cid) |
void |
setClassname(java.lang.String type) |
void |
setDetail(boolean detail) |
void |
setDocumentKinds(java.lang.String[] kinds)
Set the kind of document to match for this PubBrowser
|
void |
setGid(java.lang.String gid) |
void |
setMid(java.lang.String mid) |
void |
setMode(java.lang.String mode) |
void |
setOldType(java.lang.String string) |
void |
setOpCaddy(java.lang.String filter)
Deprecated.
|
void |
setPagerAll(boolean pagerAll) |
void |
setPageSize(int pageSize) |
void |
setPortalId(java.lang.String portalId) |
void |
setPstatus(int i) |
void |
setReverse(boolean reverse) |
void |
setShowCategories(boolean b)
Set the value of showCategories to b except if this parameter is forced as request parameter
|
void |
setShowReadRightPubs(boolean v) |
void |
setSort(java.lang.String sort) |
void |
setStart(int start) |
void |
setSuper(java.lang.String superType) |
void |
setText(java.lang.String string) |
void |
setWorkspaceFilter(boolean workspaceFilter) |
boolean |
showAllTypesFilter() |
boolean |
showCaddy() |
boolean |
showCategories()
Return true if pubBrowser must show Category tree
|
boolean |
showGroupFilter() |
boolean |
showMemberFilter() |
boolean |
showPortalFilter() |
boolean |
showPstatusFilter() |
boolean |
showQueryStatusMessage() |
boolean |
showTextFilter() |
afterValidation, checkMissingField, getControllerContext, getEditFieldSet, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, init, isFieldEdition, isFieldMissing, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, processStatus, sendRedirect, sendRedirect, setEditField, setNoRedirect, setNoSendRedirect, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, updateUploadedField, updateUploadedFields, validate
addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addPrefetchHeader, addStyleHeader, addStyleHeader, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSMap, getFinalJavaScriptSet, getFormElementCount, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptSet, getJSONBridge, getPackVersion, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getPublication, getStyleHeaders, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setFormElementCount, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, showEditIcon, workaroundBrowserBaseHrefBug
addCookie, addMsg, addMsg, addMsgSession, addMsgSession, applySelector, forceWorkspaceUpdate, getBaseUrl, getBrowser, getCaddy, getContextPath, getErrorMsg, getErrorMsgList, getErrorMsgSession, getErrorMsgSessionList, getInfoMsg, getInfoMsgList, getInfoMsgSession, getInfoMsgSessionList, getLoggedMember, getMsgList, getMsgSessionList, getRequest, getResponse, getSession, getUploadedFile, getUploadedFileList, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAjaxRequest, isDBMember, isDebug, isInFrontOffice, isLogged, isWebdavAccess, removeMessage, removeMessage, retrieveUploadedFile, select, sendForbidden, sendForbidden, sendRedirect, sendRedirect, sendRedirect, setErrorMsg, setErrorMsg, setErrorMsgSession, setErrorMsgSession, setInfoMsg, setInfoMsg, setInfoMsgSession, setInfoMsgSession, setLoggedMember, setRequest, setResponse, setWarningMsg, setWarningMsg, setWarningMsgSession, setWarningMsgSession, validateRegexp, validateSchedule
public static final java.lang.String REVISION
public static final java.lang.String PUBBROWSER_QUERY
public static final java.lang.String MINE_PORTAL
public static final java.lang.String MINE_GROUPS
public static final java.lang.String MODE_MINE
public static final java.lang.String MODE_ALL
public static final java.lang.String MODE_DELETE
protected QueryHandler queryHandler
protected java.lang.Class superClass
protected java.lang.Class currentClass
protected Member member
protected Category category
protected Group[] groups
protected java.lang.String mode
protected boolean showCategories
protected boolean showAllTypesFilter
protected boolean showReadRightsPub
protected boolean showCaddy
protected boolean detailMode
protected QueryResultSet qrs
protected java.util.Set resultSet
protected java.util.TreeSet portals
protected int pstatus
protected java.lang.String oldType
protected java.lang.String text
protected boolean caddyFilter
protected boolean workspaceFilter
protected java.lang.String ability
protected java.lang.String[] documentKinds
protected int start
protected int pageSize
protected boolean pagerAll
protected int pubCount
protected java.lang.String sortType
protected boolean sortReverse
protected boolean isContentMode
protected boolean isPortletMode
protected boolean isFormMode
protected boolean isUGCMode
protected boolean isDeleteMode
protected boolean isAllMode
protected boolean isMineMode
protected java.util.List<java.lang.Class<?>> subTypeList
public boolean processAction() throws java.io.IOException
JcmsFormHandler
Default implementation is to return false. No need to call super method.
This method may NOT be invoked at all if security validation are not met.
You must ensure your handler and JSP can work properly without any code invoked
in this method.
processAction
in class JcmsFormHandler
java.io.IOException
protected void queryData() throws LogException
LogException
public java.lang.Class getOldTypeClass()
public java.lang.Class getSuperClass()
public java.lang.Class getCurrentClass()
public Member getMember()
public Category getCategory()
public Group[] getGroups()
public boolean canPublish()
public java.util.TreeSet getPortals()
public java.util.TreeSet getPortalSet()
public boolean showCategories()
public boolean showAllTypesFilter()
public boolean showCaddy()
public boolean isDetailMode()
public boolean selectGroup(Group g)
public Group getSelectedGroup()
public boolean selectPortal(Portal p)
public boolean isPortletMode()
public boolean isFormMode()
public boolean isContentMode()
public boolean isUGCMode()
public boolean isDeleteMode()
public boolean isAllMode()
public boolean isMineMode()
public boolean showPstatusFilter()
public boolean showGroupFilter()
public boolean showMemberFilter()
public boolean showPortalFilter()
public boolean showTextFilter()
public java.util.Set getResultSet()
public int getPubCount()
public java.lang.String getPubBrowserTitle(java.lang.Class clazz)
clazz
- public java.lang.String getPubBrowserDescription()
public java.util.List<java.lang.Class<?>> getSubTypeList()
public void setSuper(java.lang.String superType)
public void setClassname(java.lang.String type)
public void setMode(java.lang.String mode)
public void setMid(java.lang.String mid)
public void setDetail(boolean detail)
public void setCid(java.lang.String cid)
public void setPortalId(java.lang.String portalId)
public void setGid(java.lang.String gid)
public void setShowCategories(boolean b)
public int getPstatus()
public void setPstatus(int i)
public void setOldType(java.lang.String string)
public java.lang.String getText()
public void setText(java.lang.String string)
public void setOpCaddy(java.lang.String filter)
setCaddyFilter(boolean)
filter
- true to display only content from caddy, false to use normal behaviorpublic java.lang.String getOpCaddy()
isCaddyFilter()
public void setCaddyFilter(boolean filter)
filter
- true to display only content from caddy, false to use normal behaviorpublic boolean isCaddyFilter()
public boolean isWorkspaceFilter()
public void setWorkspaceFilter(boolean workspaceFilter)
public void setAbility(java.lang.String ability)
ability
- an ability choosen from the PortalElement.getAllAbilities()
public java.lang.String getAbility()
public void setDocumentKinds(java.lang.String[] kinds)
kinds
- an array of document kind (e.g "pdf", "image", "spreadsheet", ...)public java.lang.String[] getDocumentKinds()
public QueryHandler getQueryHandler()
public void setStart(int start)
public void setPageSize(int pageSize)
public void setPagerAll(boolean pagerAll)
public void setSort(java.lang.String sort)
public void setReverse(boolean reverse)
public void setShowReadRightPubs(boolean v)
public boolean isHybrid()
public boolean showQueryStatusMessage()
public java.lang.String getQueryStatusMessage(java.lang.String userLang)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.