public class PublicationCaddyManagerHandler extends AbstractCaddyManagerHandler
Caddy
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
adate |
protected java.lang.String |
authorId |
protected Group[] |
authorizedGroups |
protected int |
authorizedGroupsAddCount |
protected java.util.TreeSet<Member> |
authorizedMemberSet |
protected int |
authorizedMemberSetAddCount |
protected java.util.TreeSet<Category> |
categorySet |
protected java.util.Date |
commonAdate |
protected java.lang.String |
commonAuthorId |
protected Group[] |
commonAuthorizedGroups |
protected java.util.TreeSet<Member> |
commonAuthorizedMemberSet |
protected java.util.TreeSet<Category> |
commonCategorySet |
protected java.lang.Class<? extends Publication> |
commonClass |
protected java.util.Date |
commonEdate |
protected java.lang.String |
commonMainLanguage |
protected java.util.Date |
commonPdate |
protected java.lang.String[] |
commonTemplates |
protected boolean |
commonTracked |
protected boolean |
commonTrackedAvailable |
protected Group[] |
commonUpdateGroups |
protected java.util.TreeSet<Member> |
commonUpdateMemberSet |
protected Workflow |
commonWF |
protected WFState |
commonWFState |
protected java.lang.String |
commonWSId |
protected java.util.Date |
edate |
protected boolean |
generateFriendlyURLs |
protected boolean |
isTracked |
protected boolean |
isTrackedProvided |
protected java.lang.String |
mainLanguage |
protected boolean |
majorUpdate |
protected Member |
newAuthor |
protected Workspace |
newWS |
protected java.lang.String |
newWSId |
protected boolean |
noAdate |
protected boolean |
noCategory |
protected boolean |
noCommonCategory |
protected boolean |
noEdate |
protected boolean |
noPdate |
protected boolean |
noReadRight |
protected boolean |
noUpdateRight |
protected java.lang.String |
opRefine |
protected java.util.Date |
pdate |
protected int |
pstatus |
protected java.lang.String[] |
refcids |
protected java.lang.String[] |
reftypes |
protected boolean |
removeFriendlyURLs |
static java.lang.String |
REVISION |
protected java.lang.String[] |
templates |
protected Group[] |
updateGroups |
protected int |
updateGroupsAddCount |
protected java.util.TreeSet<Member> |
updateMemberSet |
protected int |
updateMemberSetAddCount |
protected Workflow |
wf |
applyInEmptyFields, deleteDataExtension, doSearchAndReplace, ignoreIntegrityCheck, opClearCaddy, opDelete, openTab, opPreview, opRemoveCaddy, opUpdate, PREVIOUS_TAB, replaceLangList, replacePattern, searchPattern, useRegExp
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, 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 |
---|
PublicationCaddyManagerHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
compute()
This methods computes all the common attributes of the publication in the caddy.
|
protected void |
computeWorkingPubSet() |
Member |
getAuthor() |
java.lang.String |
getAuthorId() |
int |
getAuthorizedGroupsAddCount() |
int |
getAuthorizedGroupsCount() |
int |
getAuthorizedMemberSetCount() |
java.util.Date |
getAvailableAdate() |
Member |
getAvailableAuthor() |
Group[] |
getAvailableAuthorizedGroups() |
java.util.Set<Member> |
getAvailableAuthorizedMemberSet() |
java.util.Date |
getAvailableEdate() |
Workspace |
getAvailableNewWS() |
java.util.Date |
getAvailablePdate() |
java.lang.String[] |
getAvailableTemplates() |
Group[] |
getAvailableUpdateGroups() |
java.util.Set<Member> |
getAvailableUpdateMemberSet() |
java.util.SortedSet<Category> |
getCategorySet() |
java.lang.Class<? extends Publication> |
getCommonClass() |
java.lang.String |
getCommonMainLanguage()
Retrieve the mainlanguage common to all publication, if any.
|
boolean |
getCommonTracked()
Retrieve the tracked value common to all publication, this getter is
only valid if
isCommonTrackedAvailable() is true. |
WFState |
getCommonWFState() |
Workflow |
getCommonWorkflow() |
boolean |
getGenerateFriendlyURLs()
Check whether friendly URL should be automatically generated from publication's category and title.
|
boolean |
getNoAdate()
Get the value of noAdate.
|
boolean |
getNoCategory()
Gets the value of noCategory
|
boolean |
getNoCommonCategory()
Gets the value of noCommonCategory
|
boolean |
getNoEdate()
Get the value of noEdate.
|
boolean |
getNoPdate()
Get the value of noPdate.
|
boolean |
getNoReadRight()
Get the value of noReadRight.
|
boolean |
getNoUpdateRight()
Get the value of noUpdateRight.
|
int |
getPstatus()
Get the value of pstatus.
|
boolean |
getRemoveFriendlyURLs()
Check if friendly url will be removed during update.
|
java.lang.String[] |
getTemplates()
Retrieve the templates value that were asked to be set for publication.
|
int |
getUpdateGroupsAddCount() |
int |
getUpdateGroupsCount() |
int |
getUpdateMemberSetAddCount() |
int |
getUpdateMemberSetCount() |
boolean |
isCommonTrackedAvailable()
Check if a common tracked value was found for all publication of the caddy
|
boolean |
isExpanded(Category cat,
java.lang.String inputName)
Check if the specified category has been expanded in the treecat
|
boolean |
isTypeHomogeneous()
Check if publication in the caddy are of same class.
|
boolean |
isWFHomogeneous()
Check if publication in the caddy use the same Workflow.
|
boolean |
processAction()
Method to be implemented to check/validate action to be performed and process them.
|
void |
setAdate(java.lang.String v)
Set the value of adate.
|
void |
setAuthorId(java.lang.String v) |
void |
setAuthorizedGroups(java.lang.String[] v) |
void |
setAuthorizedGroupsAddCount(int v) |
void |
setAuthorizedMemberIds(java.lang.String[] mbrIds)
Set the value of authorizedMemberIds.
|
void |
setAuthorizedMemberSetAddCount(int v) |
void |
setCids(java.lang.String[] cids)
Set the value of cids.
|
void |
setEdate(java.lang.String v)
Set the value of edate.
|
void |
setGenerateFriendlyURLs(boolean generate)
Set whether friendly URL should be automatically generated from publication's category and title.
|
void |
setMainLanguage(java.lang.String lang)
Set the main language to assign to all publication.
|
void |
setMajorUpdate(java.lang.String v)
Set whether the update perform by the caddy on publication should be a major updated
|
void |
setNewWSId(java.lang.String v) |
void |
setNoAdate(boolean v)
Set the value of noAdate.
|
void |
setNoCategory(boolean v)
Set the value of noCategory.
|
void |
setNoCommonCategory(boolean v)
Set the value of noCommonCategory.
|
void |
setNoEdate(boolean v)
Set the value of noEdate.
|
void |
setNoPdate(boolean v)
Set the value of noPdate.
|
void |
setNoReadRight(boolean v)
Set the value of noReadRight.
|
void |
setNoUpdateRight(boolean v)
Set the value of noUpdateRight.
|
void |
setOpRefine(java.lang.String v) |
void |
setPdate(java.lang.String v)
Set the value of pdate.
|
void |
setPstatus(int v)
Set the value of pstatus.
|
void |
setRefineCids(java.lang.String[] refcids)
Sets the cids to be used in refine operation to select publications which belong to
the corresponding categories (remove all the others from the caddy).
|
void |
setRefineTypes(java.lang.String[] reftypes)
Important: This setter trigger an immediate action modifying the caddy content!
|
void |
setRemoveFriendlyURLs(boolean remove)
Set if friendly urls should be removed for all publication of the caddy
|
void |
setTemplates(java.lang.String[] templates)
Set the templates to define for the set of publication in the caddy.
|
void |
setTracked(boolean track)
Set whether publication should be tracked or not.
|
void |
setUpdateGroups(java.lang.String[] v) |
void |
setUpdateGroupsAddCount(int v) |
void |
setUpdateMemberIds(java.lang.String[] mbrIds)
Set the value of updateMemberIds.
|
void |
setUpdateMemberSetAddCount(int v) |
boolean |
validateCommonPdateEdate() |
deleteDataExtension, getControllerContext, getOpenTab, getReplacePattern, getSearchPattern, isApplyingInEmptyFields, isDeletingDataExtension, isIgnoringIntegrityCheck, isPreviewing, isSearchAndReplaceLangSelected, isTabForced, isUsingRegExp, performRemoveCaddy, previewSearchAndReplace, processMultipleStatus, searchAndReplace, setApplyInEmptyFields, setDeleteDataExtension, setIgnoreIntegrityCheck, setOpClearCaddy, setOpDelete, setOpenTab, setOpPreview, setOpRemoveCaddy, setOpUpdate, setRemoveIds, setReplacePattern, setSearchAndReplaceLang, setSearchPattern, setUseRegExp, validateRemoveCaddy, validateSearchAndReplace
afterValidation, checkMissingField, 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
protected java.lang.String opRefine
protected java.lang.String[] refcids
protected java.lang.String[] reftypes
protected boolean noCategory
protected boolean noCommonCategory
protected java.lang.String authorId
protected java.lang.String commonAuthorId
protected java.lang.String newWSId
protected java.lang.String commonWSId
protected boolean commonTracked
protected boolean commonTrackedAvailable
protected boolean isTrackedProvided
protected boolean isTracked
protected java.lang.String[] templates
protected java.lang.String[] commonTemplates
protected int pstatus
protected java.util.Date pdate
protected java.util.Date commonPdate
protected java.util.Date edate
protected java.util.Date commonEdate
protected java.util.Date adate
protected java.util.Date commonAdate
protected boolean noPdate
protected boolean noEdate
protected boolean noAdate
protected java.lang.String commonMainLanguage
protected java.lang.String mainLanguage
protected boolean majorUpdate
protected boolean removeFriendlyURLs
protected boolean generateFriendlyURLs
protected boolean noReadRight
protected java.util.TreeSet<Member> authorizedMemberSet
protected java.util.TreeSet<Member> commonAuthorizedMemberSet
protected int authorizedMemberSetAddCount
protected Group[] authorizedGroups
protected Group[] commonAuthorizedGroups
protected int authorizedGroupsAddCount
protected boolean noUpdateRight
protected Group[] updateGroups
protected Group[] commonUpdateGroups
protected int updateGroupsAddCount
protected java.util.TreeSet<Member> updateMemberSet
protected java.util.TreeSet<Member> commonUpdateMemberSet
protected int updateMemberSetAddCount
protected java.util.TreeSet<Category> categorySet
protected java.util.TreeSet<Category> commonCategorySet
protected java.lang.Class<? extends Publication> commonClass
protected Workflow commonWF
protected WFState commonWFState
protected Workflow wf
protected Member newAuthor
protected Workspace newWS
protected void computeWorkingPubSet()
protected void compute()
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 AbstractCaddyManagerHandler
java.io.IOException
public boolean validateCommonPdateEdate()
public void setOpRefine(java.lang.String v)
public void setRefineCids(java.lang.String[] refcids)
refcids
- The id of the category that is to be used to select a subset of the caddy.public void setRefineTypes(java.lang.String[] reftypes)
reftypes
- The types to keep in the caddy.public java.util.SortedSet<Category> getCategorySet()
public boolean isExpanded(Category cat, java.lang.String inputName)
cat
- the category to check, must not be nullinputName
- this parameter is not usedpublic boolean isWFHomogeneous()
public Workflow getCommonWorkflow()
public WFState getCommonWFState()
public boolean isTypeHomogeneous()
public java.lang.Class<? extends Publication> getCommonClass()
public java.lang.String getAuthorId()
public Member getAuthor()
public void setAuthorId(java.lang.String v)
public Workspace getAvailableNewWS()
public void setNewWSId(java.lang.String v)
public java.lang.String[] getTemplates()
public void setTemplates(java.lang.String[] templates)
templates
- an array of template name, or null to skipppublic int getPstatus()
public void setPstatus(int v)
v
- Value to assign to pstatus.public void setPdate(java.lang.String v)
v
- Value to assign to pdate.public void setEdate(java.lang.String v)
v
- Value to assign to edate.public void setAdate(java.lang.String v)
v
- Value to assign to adate.public boolean getNoPdate()
public void setNoPdate(boolean v)
v
- Value to assign to noPdate.public boolean getNoEdate()
public void setNoEdate(boolean v)
v
- Value to assign to noEdate.public boolean getNoAdate()
public void setNoAdate(boolean v)
v
- Value to assign to noAdate.public void setAuthorizedMemberIds(java.lang.String[] mbrIds)
mbrIds
- Value to assign to authorizedMemberIds.public Group[] getAvailableAuthorizedGroups()
public Member getAvailableAuthor()
public java.lang.String[] getAvailableTemplates()
public void setAuthorizedGroups(java.lang.String[] v)
public void setAuthorizedGroupsAddCount(int v)
public void setAuthorizedMemberSetAddCount(int v)
public void setUpdateMemberSetAddCount(int v)
public int getAuthorizedGroupsCount()
public int getAuthorizedGroupsAddCount()
public java.util.Set<Member> getAvailableAuthorizedMemberSet()
public java.util.Set<Member> getAvailableUpdateMemberSet()
public java.util.Date getAvailablePdate()
public java.util.Date getAvailableEdate()
public java.util.Date getAvailableAdate()
public void setUpdateMemberIds(java.lang.String[] mbrIds)
mbrIds
- Value to assign to updateMemberIds.public Group[] getAvailableUpdateGroups()
public void setUpdateGroups(java.lang.String[] v)
public void setUpdateGroupsAddCount(int v)
public int getUpdateGroupsCount()
public int getUpdateGroupsAddCount()
public int getAuthorizedMemberSetCount()
public int getUpdateMemberSetCount()
public int getUpdateMemberSetAddCount()
public boolean getNoReadRight()
public void setNoReadRight(boolean v)
v
- Value to assign to noReadRight.public boolean getNoUpdateRight()
public void setNoUpdateRight(boolean v)
v
- Value to assign to noUpdateRight.public void setNoCategory(boolean v)
v
- Value to assign to noCategory.public boolean getNoCategory()
public void setNoCommonCategory(boolean v)
v
- Value to assign to noCommonCategory.public boolean getNoCommonCategory()
public void setCids(java.lang.String[] cids)
cids
- Value to assign to cids.public void setTracked(boolean track)
track
- true to enable reader tracker for all publication false to disable itpublic boolean isCommonTrackedAvailable()
public boolean getCommonTracked()
isCommonTrackedAvailable()
is true.public void setMainLanguage(java.lang.String lang)
lang
- an ISO-639 language codepublic java.lang.String getCommonMainLanguage()
public void setMajorUpdate(java.lang.String v)
v
- the value of this parameter is ignored, as long as this method is invoked the update will be a major updatepublic boolean getRemoveFriendlyURLs()
public void setRemoveFriendlyURLs(boolean remove)
remove
- true to remove friendly url, false to leave as ispublic boolean getGenerateFriendlyURLs()
public void setGenerateFriendlyURLs(boolean generate)
generate
- true to generate new friendly url (added to existing one), false to leave friendly url as isCopyright © 2001-2010 Jalios SA. All Rights Reserved.