Class EditPublicationHandler
- All Implemented Interfaces:
JcmsConstants,JaliosConstants
- Direct Known Subclasses:
AbstractEditDBFaqEntryHandler,AbstractEditFaqEntryHandler,AddArticleHandler,DocUploadHandler,DuplicateModalHandler,EditFileDocumentHandler,EditFormHandler,EditPortalElementHandler,generated.EditShortcutHandler,ValidateStateChangePublicationHandler
Publication forms.- Author:
- Olivier Dedieu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Stringprotected Memberprotected intprotected intprotected booleanprotected String[]protected intprotected booleanstatic final Stringstatic final Stringprotected booleanprotected Dateprotected Map<String, FieldStatus> static final StringRequest attribute used to indicate EditPublicationHandler is invoked in context of full (legacy) edit template.static final StringRequest attribute used to indicate EditPublicationHandler is invoked in context of advanced modal.static final Stringprotected booleanprotected Workflowprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intstatic final StringSession attribute name used to store the last Publication not created, by user request.protected Stringprotected Stringprotected booleanprotected intprotected booleanprotected booleanprotected booleanprotected intprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Datestatic final Stringprotected intprotected Class<? extends Publication> protected Publicationprotected booleanprotected Stringprotected booleanprotected intprotected String[]protected Member[]protected Datestatic final StringRequest attribute which can be specified to show/hide the major update option in modal footer.static final StringRequest attribute which can be specified to show/hide the button to switch from advanced/simple edition in modal footer.protected booleanprotected booleanstatic final StringRequest attribute used to indicate EditPublicationHandler is invoked in context of simple modal.protected booleanprotected String[]protected Stringprotected Stringprotected intprotected intprotected booleanprotected booleanprotected booleanprotected booleanbooleanbooleanprotected Workflowprotected Stringprotected Publicationprotected WSTypeEntryFields inherited from class com.jalios.jcms.handler.EditDataHandler
id, isDeleteForced, opCancel, opCreate, opDelete, opRefresh, opUpdate, resultOpCreate, resultOpDelete, resultOpUpdateFields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, csrfValidationEnabled, editFieldSet, formStep, noRedirect, noSendRedirect, op, openTabId, opFinish, opNext, opPrevious, popupEdition, redirect, redirectOnClosePopup, workspaceForcedFields inherited from class com.jalios.jcms.context.JcmsJspContext
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_FOOTER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_MODULE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, jsboSet, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADERFields inherited from class com.jalios.jcms.context.JcmsContext
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isDebugTemplatePath, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, userZoneId, workspaceFields 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_YEARFields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GENERATIONAL_STORE_DIRECTORY, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, 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, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PHOTO_XLARGE, PHOTO_XLARGE_HEIGHT, PHOTO_XLARGE_PROP_PREFIX, PHOTO_XLARGE_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, SVGSPRITE_ICON_PREFIX, TEMPLATE_TAB, THEME_DIR, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, TYPES_UNKNOWN_CLASS_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if current user is allowed to display the edit form in current context.booleanReturns true if the loggedMember cannot read this publication.booleanvoidcompleteRemovedCatSetWithTypeFieldRootCat(Set<Category> removedCatSet) Complete the set of categories root which must be removed from the fields in the categories tab, with the root categories of the current type field.protected booleanbooleanstatic voiddoWorkflowUpdate(Publication origPub, Publication updatedPub, EditPublicationHandler handler) Get the value of anchor.intintCategory[]intRetrieve the classification level current available for the edition in progressgetAvailableField(String field) Get value of the given field calling getAvailable{field}().booleanintbooleanbooleanbooleangetAvailableTemplateEntry(String usage) String[]getAvailableTitle(String lang) booleanbooleanbooleanCheck if default read rights should be used.booleanCheck if default update rights should be used.getCategorySet(String inputName) Returns the root set bound to the given inputNameRetrieve a settings suitable to edit a classification level in the current context.protected StringBuild a controller context.This method should be overriden by sub-classesThis method should be overriden by sub-classesThis method should be overriden by sub-classesReturns the default template usage used to display the publication.This method should be overriden by sub-classesThis method should be overriden by sub-classesRetrieve the current value of the doNotStore option.getFieldStatus(String fieldName) Returns the FieldStatus for the given field.Retrieve the title to use in the full modal.getHiddenCatSet(Set<Category> typeRemovedCatSet) booleanReturns true if workspace compliance is ignored ; false otherwise.getMemberSetAssignedToRole(String roleId) Get the redirect value to be used in the modals with modalRedirect.jspf and the request attribute 'modal.redirect'.intint<T extends Publication>
TgetPublication(Class<T> cl) Class<? extends Publication> Retrieve the categories root which must be removed from the fields in the categories tab.booleanbooleanRetrieve the title to use in the simple modal.getTabLabel(String tabId) getTitleFieldValue(boolean isTitleML) Retrieve an UNESCAPED version of the title(s).Returns the label of the edited type.intintReturns the css class used for style, and javascript window resize in footer in popup edition.booleanReturns true if workspace compliance warning message is ignored ; false otherwise.booleanCheck if tabs decoration should be displayed in edit pub if only one tab was displayed.protected voidinit()Method to implement if you need to initialize your handler from parameter received, prior to all security validation.protected voidprotected booleanprotected booleanprotected booleanbooleanbooleanbooleanCheck if the classification tab should be hidden or notprotected booleanisCommonRightTabHidden(boolean isReadTab) booleanbooleanbooleanisDBType()Returns true if the publication class extends DBData.booleanisExpanded(Category cat, String inputName) booleanisFieldEdition(String field) booleanisForm()booleanReturns true if the form step are clickable.booleanCheck if this EditPublicationHandler is invoked in context of full (legacy) edit pub form.booleanCheck if this EditPublicationHandler is invoked in context of full modal.booleanisLocked()Returns true if the publication is (weakly) locked (by another Member).booleanCheck if this EditPublicationHandler is invoked in context of simple or full modal.booleanbooleanbooleanCheck if this EditPublicationHandler is invoked in context of simple modal.booleanReturns true if the publication is locked (strong lock) by another Member.booleanbooleanbooleanbooleanprotected voidlock()protected booleanCheck behavior to apply on CSRF error.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanEffectively update the publication so it is put in the trash.booleanbooleanEffectively update the publication so it is removed from trash.booleanvoidprepare()booleanMethod to be implemented to check/validate action to be performed and process them.protected booleanprocessStatus(ControllerStatus status) Process the ControllerStatus: do nothing if OK, or send on forbidden, or put a warning message in the request.protected voidvoidInvalidate any computed cache of the categorySet valueprotected voidvoidvoidSet the value of anchor.voidvoidvoidsetAuthorForced(boolean v, Member author) voidvoidvoidvoidvoidvoidsetClassificationLevel(int level) Set the classification level to assign to the edited publicationvoidsetCreateFromPublicationChooser(boolean createFromPublicationChooser) voidsetDoNotStore(String str) Request that create operation is not stored after successful validation.voidvoidsetFields(Publication pub) Set the common (Publication) fields.voidsetFriendlyURL(String[] v) voidSet the value of id.voidsetIgnoreWorkspaceCompliance(boolean v) Set or disabled workspace compliance check.voidsetInternalWf(String internalWf) voidsetItemPos(int v) voidvoidvoidvoidvoidvoidsetOpenTab(int openTab) Set the open tabvoidvoidsetOpMerge(String v) voidvoidsetOpTrash(String v) Request publication to be moved in trash.voidvoidRequest publication to be moved outside trash and restored to its previous state.voidvoidvoidsetPstatus(int v) voidsetReadAck(boolean v) voidvoidvoidvoidvoidsetShowAllTabs(boolean v) voidsetShowContentTabOnly(boolean v) voidsetSilentUpdate(String val) voidIf true skip the ESN activityvoidsetTemplates(String[] v) voidvoidsetTracked(boolean v) voidsetUpdateGroupIds(String[] v) voidsetUpdateMemberIds(String[] v) voidsetUpdateMemberSetAddCount(int v) voidsetUseDefaultCategories(boolean useDefaultCategories) voidsetUseDefaultReadRights(boolean useDefaultReadRights) Explicitely request the use of default read rights instead of any read rights that might be specified.voidsetUseDefaultUpdateRights(boolean useDefaultUpdateRights) Explicitely request the use of default update rights instead of any update rights that might be specified.voidvoidsetWorkspaceComplianceWarning(boolean workspaceComplianceWarning) Set or disabled workspace compliance warning message.voidsetWSTypeEntry(WSTypeEntry wste) Force the WSTypeEntry to use with the specified onebooleanbooleanReturns true if the "Force deletion" option must be proposed.booleanbooleanbooleanReturns true if the lock warning message must be displayed.booleanbooleanCheck if the "Major update" checkbox should be displayed in modal footer.booleanCheck if the "Advanced edition" or "Simple edition" button should be displayed in modal footer.booleanbooleanbooleanbooleanCheck if the fields provided by the super type of the current type should be grouped in collapsible, or place inline.booleanCheck if the title field should be displayed inside the main tab (instead of being displayed in the edit form header).booleanprotected voidunlock()voidupdateCids(String[] v) Update the cids (this method is called by setCids() and all setCidsXXX() methods)booleanCheck if weak lock should used in modal edition (set when opened, released on close/cancel).booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturns true if the publication class can be published in workspace.booleanbooleanbooleanbooleanbooleanCheck all condition required are met to authorize current publication to be put in the trash.booleanbooleanCheck all condition required are met to authorize current publication to be removed from the trash.booleanbooleanprotected booleanMethods inherited from class com.jalios.jcms.handler.EditDataHandler
afterValidation, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, getAvailableData, getAvailableDataArray, getAvailableExtraDataMap, getAvailableExtraDBDataMap, getDeleteRedirect, getEnumLabels, getEnumValues, getId, getTabGroupMaxCount, handleRestResponse, isExtraDataHidden, isFirstAccess, processDataId, processDataIds, processDataIds, processMLData, processMLDataArray, restValidation, setExtraDBKeys, setExtraDBValues, setExtraKeys, setExtraValues, setFields, setForceDelete, setOpCancel, setOpCreate, setOpDelete, setOpRefresh, setOpUpdate, validateCancel, validateRefresh, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocumentMethods inherited from class com.jalios.jcms.handler.JcmsFormHandler
canStartProcess, checkMissingField, getBackgroundProcess, getEditFieldSet, getFormStep, getFormStepCount, getFormStepFinishLabel, getFormStepHiddenFields, getFormStepLabels, getFormStepPrefixProp, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getMonolingualValue, getMonolingualValueArray, getMultilingualMainValue, getMultilingualMainValueArray, getMultilingualMLMap, getMultilingualMLMapArray, getOpenTabId, getRedirect, getRedirectOnClosePopup, getWorkspace, isFieldMissing, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, mapStringArrayToMapStringList, mapStringListToMapStringArray, performFinish, performNext, performPrevious, sanitize, sanitize, sendRedirect, sendRedirect, setEditField, setFormStep, setNoRedirect, setNoSendRedirect, setOpenTabId, setOpFinish, setOpNext, setOpPrevious, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, showCancelButton, showFinishButton, showNextButton, showPreviousButton, startProcess, updateUploadedFields, validate, validateCSRF, validateFinish, validateNext, validatePreviousMethods inherited from class com.jalios.jcms.context.JcmsJspContext
addAvoidanceLink, addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHandlebarTemplate, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addJavaScriptModule, addPrefetchHeader, addStyleHeader, addStyleHeader, addSvgSpriteIcon, addWebAssets, canAccessAdminArea, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getAvoidanceLinks, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSFooterMap, getFinalCSSMap, getFinalJavaScriptModuleSet, getFinalJavaScriptSet, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHandlebarTemplates, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptModuleSet, getJavaScriptSet, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getStyleHeaders, getSvgSprites, getSvgSpritesHtml, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isEditIconForPublish, isEditIconForPublish, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, showEditIcon, showEditIconMethods inherited from class com.jalios.jcms.context.JcmsContext
addMsg, addMsg, addMsgSession, addMsgSession, addToastr, addToastr, addToastrSession, addToastrSession, applySelector, canAccessAdminArea, copyMsgListToMsgSessionList, forceWorkspaceUpdate, getBaseUrl, getBrowser, getCaddy, getContextPath, getErrorMsg, getErrorMsgList, getErrorMsgSession, getErrorMsgSessionList, getInfoMsg, getInfoMsgList, getInfoMsgSession, getInfoMsgSessionList, getLoggedMember, getMsgList, getMsgSessionList, getRequest, getResponse, getSession, getSuccessMsg, getSuccessMsgList, getSuccessMsgSession, getSuccessMsgSessionList, getToastrCollection, getToastrSessionCollection, getUploadedFiles, getUploadedFiles, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getUserZoneId, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAdminZone, isAjaxRequest, isDBMember, isDebug, isDebugTemplate, isInFrontOffice, isLogged, isWorkZone, removeMessage, removeMessage, removeMsg, select, sendError, sendError, sendForbidden, sendForbidden, sendRedirect, sendRedirect, sendRedirect, setErrorMsg, setErrorMsg, setErrorMsgSession, setErrorMsgSession, setInfoMsg, setInfoMsg, setInfoMsgSession, setInfoMsgSession, setLoggedMember, setRequest, setResponse, setSuccessMsg, setSuccessMsg, setSuccessMsgSession, setSuccessMsgSession, setWarningMsg, setWarningMsg, setWarningMsgSession, setWarningMsgSession, updateWorkspace, validateRegexp, validateSchedule
-
Field Details
-
ID_TOKEN
- See Also:
-
DISPLAY_URL_TOKEN
- See Also:
-
PREVIEW_URL_TOKEN
- See Also:
-
CTX_SKIP_ACTIVITY
- See Also:
-
LAST_PUBLICATION_NOT_STORED
Session attribute name used to store the last Publication not created, by user request.Creation can be cancelled with
doNotStore=trueparameter.
Used by "work/lastPublicationXml.jsp" to dump the last Data content as XML.- See Also:
-
FULL_EDIT
Request attribute used to indicate EditPublicationHandler is invoked in context of full (legacy) edit template.- Since:
- 11.0.0 / JCMS-11723
- See Also:
-
SIMPLE_MODAL
Request attribute used to indicate EditPublicationHandler is invoked in context of simple modal.- Since:
- 11.0.0 / JCMS-11723
- See Also:
-
FULL_MODAL
Request attribute used to indicate EditPublicationHandler is invoked in context of advanced modal.- Since:
- 11.0.0 / JCMS-11723
- See Also:
-
SHOW_MODAL_EDITION_CHANGE
Request attribute which can be specified to show/hide the button to switch from advanced/simple edition in modal footer.- Since:
- 11.0.0 / JCMS-11723
- See Also:
-
SHOW_MAJOR_UPDATE_OPTION
Request attribute which can be specified to show/hide the major update option in modal footer.- Since:
- 11.0.0 / JCMS-11723
- See Also:
-
opMerge
protected boolean opMerge -
opAddItem
protected boolean opAddItem -
opAddItemReadRights
protected boolean opAddItemReadRights -
opAddItemUpdateRights
protected boolean opAddItemUpdateRights -
majorUpdate
protected boolean majorUpdate -
opTrash
protected boolean opTrash -
opUntrash
protected boolean opUntrash -
title
-
titleML
-
cids
-
templates
-
pstatus
protected int pstatus -
oldPstatus
protected int oldPstatus -
pdate
-
edate
-
sdate
-
adate
-
wfNote
-
authorizedMemberSetAddCount
protected int authorizedMemberSetAddCount -
authorizedGroupsAddCount
protected int authorizedGroupsAddCount -
updateMemberSetAddCount
protected int updateMemberSetAddCount -
updateGroupsAddCount
protected int updateGroupsAddCount -
restrictUpdateRights
protected boolean restrictUpdateRights -
classificationLevel
protected int classificationLevel -
anchor
-
isTracked
protected boolean isTracked -
readAck
protected boolean readAck -
mainLanguage
-
friendlyURLSet
-
roleIds
-
roleMembers
-
roleMap
-
publication
-
pubClass
-
wste
-
wf
-
internalWf
-
author
-
isAuthorForced
protected boolean isAuthorForced -
categorySet
-
authorizedMemberSet
-
authorizedGroupSet
-
updateMemberSet
-
updateGroupSet
-
attachWorkspaceSet
-
openTab
protected int openTab -
showAllTabs
protected boolean showAllTabs -
showContentTabOnly
protected boolean showContentTabOnly -
typeLabel
-
isContentType
protected boolean isContentType -
isPortletType
protected boolean isPortletType -
isFormType
protected boolean isFormType -
isUGCType
protected boolean isUGCType -
isDBType
protected boolean isDBType -
reviewRating
protected int reviewRating -
listToProcess
-
itemPos
protected int itemPos -
workingPub
-
fieldStatusMap
-
doNotStore
protected boolean doNotStore -
opLock
protected boolean opLock -
opUnlock
protected boolean opUnlock -
opRequestUnlock
protected boolean opRequestUnlock -
checkMemberForRequestUnlock
protected boolean checkMemberForRequestUnlock -
requestUnlockMessage
-
ignoreWorkspaceCompliance
protected boolean ignoreWorkspaceCompliance -
skipActivity
protected boolean skipActivity -
createFromPublicationChooser
protected boolean createFromPublicationChooser -
useDefaultCategories
protected boolean useDefaultCategories -
useDefaultCategoriesModified
protected boolean useDefaultCategoriesModified -
useDefaultReadRights
protected boolean useDefaultReadRights -
useDefaultReadRightsModified
protected boolean useDefaultReadRightsModified -
useDefaultUpdateRights
public boolean useDefaultUpdateRights -
useDefaultUpdateRightsModified
public boolean useDefaultUpdateRightsModified
-
-
Constructor Details
-
EditPublicationHandler
public EditPublicationHandler()
-
-
Method Details
-
getDataClass
- Specified by:
getDataClassin classEditDataHandler
-
getPublicationClass
-
getPublication
- Overrides:
getPublicationin classJcmsJspContext- Returns:
- the current Content or Form if not null, or the Portlet (or null). Slow: we DO NOT cache this value (so do not use this getter every 2millisecs).
-
getPublication
-
setInternalWf
-
getAvailableInternalWorkflow
-
getWorkflow
-
getWSTypeEntry
-
setWSTypeEntry
Force the WSTypeEntry to use with the specified one- Parameters:
wste- must not be null- Since:
- jcms-10.0.6 / JCMS-8724
-
getTabLabel
-
init
protected void init()Description copied from class:JcmsFormHandlerMethod to implement if you need to initialize your handler from parameter received, prior to all security validation.You must absolutely not perform any action which modify data or site configuration.
Therefore it is strongly recommend NOT TO implement this method, or use very wisely.
- Overrides:
initin classJcmsFormHandler
-
completeRemovedCatSetWithTypeFieldRootCat
Complete the set of categories root which must be removed from the fields in the categories tab, with the root categories of the current type field.This method is only invoked by
work/doEditCommonPubAttribute_categories.jspfjust before rendering the category field- Parameters:
removedCatSet- the removedCatSet already computed, must not be null- Since:
- 11.0.0
getRemovedCatSet()
-
getRemovedCatSet
Retrieve the categories root which must be removed from the fields in the categories tab.- Returns:
- a Set of Category, never return null
- Since:
- 11.0.0
-
getOldPstatus
public int getOldPstatus() -
processAction
Description copied from class:JcmsFormHandlerMethod to be implemented to check/validate action to be performed and process them.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.
- Overrides:
processActionin classEditDataHandler- Returns:
- false if no redirection is needed, true otherwise
- Throws:
IOException- IO Exception
-
mustSendForbiddenOnCSRF
protected boolean mustSendForbiddenOnCSRF()Description copied from class:JcmsFormHandlerCheck behavior to apply on CSRF error.Default behavior is to send forbidden redirect, this method allows the redirection to be skipped and form to be displayed.
Override with extreme precaution, if you want to display form on CSRF error, make sure user is authorized to access data manipulated.
- Overrides:
mustSendForbiddenOnCSRFin classJcmsFormHandler- Returns:
- true to send forbidden (default), false to display form with current user data. In both case processAction is not invoked.
-
canDisplayEditForm
protected boolean canDisplayEditForm()Checks if current user is allowed to display the edit form in current context.Important : this method only performs ADDITIONAL verification targeted only for the UI access control, it MUST be invoked in edit form JSP, after the validate() method which provides the low level security features.
- Returns:
- true if UI can be displayed, false otherwise
- Since:
- JCMS-11620
-
validateBeforeOp
public boolean validateBeforeOp() -
releaseDBWorkingPub
protected void releaseDBWorkingPub() -
useWeakLockInModal
public boolean useWeakLockInModal()Check if weak lock should used in modal edition (set when opened, released on close/cancel).Default behavior is to read property
channel.weak-lock-in-modal.enabledwith false as default value.- Returns:
- true if weak lock should be used, false otherwise
- Since:
- 11.0.0 / JCMS-11723
-
lock
protected void lock() -
unlock
protected void unlock() -
sendRedirect
- Overrides:
sendRedirectin classEditDataHandler- Throws:
IOException
-
getClosePopupUrl
- Overrides:
getClosePopupUrlin classJcmsFormHandler
-
initWorkspace
protected void initWorkspace() -
validateMember
- Throws:
IOException
-
validateForm
Returns true if the publication class can be published in workspace.- Returns:
- true if the publication class can be published in workspace.
- Throws:
IOException- if an exception occurs- Since:
- jcms-8.0.3, jcms-9.0.1
-
validateWorkspace
- Throws:
IOException
-
processStatus
Description copied from class:JcmsFormHandlerProcess the ControllerStatus: do nothing if OK, or send on forbidden, or put a warning message in the request.- Overrides:
processStatusin classJcmsFormHandler- Parameters:
status- the ControllerStatus to be processed- Returns:
- true when status is OK, false if status was a failure (forbidden or anything else)
- Throws:
IOException- if an error occurs
-
validateFieldFormat
public boolean validateFieldFormat() -
validateCreate
- Throws:
IOException
-
performCreate
- Throws:
IOException
-
internalPerformCreate
- Throws:
IOException
-
getControllerContext
Description copied from class:JcmsFormHandlerBuild a controller context. I.E. add request, response and loggedMember.- Overrides:
getControllerContextin classEditDataHandler- Returns:
- the HashMap which contains the context
-
validateUpdate
- Throws:
IOException
-
performUpdate
- Throws:
IOException
-
internalPerformUpdate
- Throws:
IOException
-
workflowHasNotBeenChanged
protected boolean workflowHasNotBeenChanged() -
doWorkflowUpdate
public static void doWorkflowUpdate(Publication origPub, Publication updatedPub, EditPublicationHandler handler) -
setSilentUpdate
-
validateDelete
- Throws:
IOException
-
performDelete
- Throws:
IOException
-
internalPerformDelete
- Throws:
IOException
-
validateMerge
public boolean validateMerge() -
performMerge
- Throws:
IOException
-
validateTrash
Check all condition required are met to authorize current publication to be put in the trash.- Returns:
- true if operation can be performed, false otherwise
- Throws:
IOException- if this exception occures- Since:
- jcms-10.0.5 / JCMS-8353
-
performTrash
Effectively update the publication so it is put in the trash.- Returns:
- true, indicating a redirect must be performed
- Throws:
IOException- if this exception occures- Since:
- jcms-10.0.5 / JCMS-8353
-
validateUntrash
Check all condition required are met to authorize current publication to be removed from the trash.- Returns:
- true if operation can be performed, false otherwise
- Throws:
IOException- if this exception occures- Since:
- jcms-10.0.5 / JCMS-8353
-
performUntrash
Effectively update the publication so it is removed from trash.- Returns:
- true, indicating a redirect must be performed
- Throws:
IOException- if this exception occures- Since:
- jcms-10.0.5 / JCMS-8353
-
validateLock
- Throws:
IOException
-
performLock
- Throws:
IOException
-
validateUnlock
- Throws:
IOException
-
performUnlock
- Throws:
IOException
-
validateRequestUnlock
- Throws:
IOException
-
performRequestUnlock
- Throws:
IOException
-
validateAddItem
public boolean validateAddItem() -
performAddItem
- Throws:
IOException
-
validateAddItemReadRights
public boolean validateAddItemReadRights() -
performAddItemReadRights
- Throws:
IOException
-
validateAddItemUpdateRights
public boolean validateAddItemUpdateRights() -
performAddItemUpdateRights
- Throws:
IOException
-
performCancel
- Overrides:
performCancelin classEditDataHandler- Throws:
IOException
-
getModalRedirect
Description copied from class:JcmsFormHandlerGet the redirect value to be used in the modals with modalRedirect.jspf and the request attribute 'modal.redirect'.- Overrides:
getModalRedirectin classEditDataHandler- Returns:
- redirect value
-
performRefresh
- Overrides:
performRefreshin classEditDataHandler- Throws:
IOException
-
prepare
public void prepare() -
setFields
Set the common (Publication) fields. This method is also a hook for sub-classed to fill some field (or do anything else) before a create or an update.- Parameters:
pub- the publication to set the fields- Since:
- jcms-4.0
-
isFieldEdition
- Overrides:
isFieldEditionin classJcmsFormHandler- Parameters:
field- field name- Returns:
- true if this handler is invoked to edit only some fields of the data
- See Also:
-
isDBType
public boolean isDBType()Returns true if the publication class extends DBData.- Returns:
- true if the publication class extends DBData.
- Since:
- jcms-6.0.0
-
showWFRole
public boolean showWFRole() -
showReaderTracker
public boolean showReaderTracker()- Returns:
- true if reader tracker input choice must be displayed for current Publication edited
-
showReadAck
public boolean showReadAck() -
showAttachWorkspaceSet
public boolean showAttachWorkspaceSet() -
showMainLanguage
public boolean showMainLanguage() -
isFullEdit
public boolean isFullEdit()Check if this EditPublicationHandler is invoked in context of full (legacy) edit pub form.- Returns:
- true if full (legacy) edit JSP modal, false otherwise
- Since:
- 11.0.0 / JCMS-11723
-
isSimpleModal
public boolean isSimpleModal()Check if this EditPublicationHandler is invoked in context of simple modal.- Returns:
- true if simple modal, false otherwise
- Since:
- 11.0.0 / JCMS-11723
-
isFullModal
public boolean isFullModal()Check if this EditPublicationHandler is invoked in context of full modal.- Returns:
- true if simple modal, false otherwise
- Since:
- 11.0.0 / JCMS-11723
-
isModalEdition
public boolean isModalEdition()Check if this EditPublicationHandler is invoked in context of simple or full modal.- Returns:
- true if simple modal, false otherwise
- Since:
- 11.0.0 / JCMS-11723
-
setCreateFromPublicationChooser
public void setCreateFromPublicationChooser(boolean createFromPublicationChooser) -
isCreateFromPublicationChooser
public boolean isCreateFromPublicationChooser() -
isPublicationCreatedFromChooser
public boolean isPublicationCreatedFromChooser() -
getSimpleModalTitle
Retrieve the title to use in the simple modal.Default behavior is to read I18N property
ui.work.form.header.simple-modal-title.{CurrentTypeShortName}.- Returns:
- the title to use or an empty string to use default title computed by ModalTag
- Since:
- 11.0.0 / JCMS-11723
-
getFullModalTitle
Retrieve the title to use in the full modal.Default behavior is to read I18N property
ui.work.form.header.full-modal-title.{CurrentTypeShortName}or to default togetSimpleModalTitle().- Returns:
- the title to use or an empty string to use default title computed by ModalTag
- Since:
- 11.0.0 / JCMS-11723
-
showModalEditionChange
public boolean showModalEditionChange()Check if the "Advanced edition" or "Simple edition" button should be displayed in modal footer.The default implementation of this method is to check for request attribute
SHOW_MODAL_EDITION_CHANGE. If the attribute is not set, the button is displayed only when editing an existing publication (i.e.getPublication()is not null), and hidden when creating a new one.You can set the attribute to a custom value or provide a custom FormHandler to override this behavior.
See jcore/modalPubFormHandler.jspf for use of this method.
- Returns:
- true to display the button, false to hide it
- Since:
- 11.0.0 / JCMS-11723
-
showMajorUpdate
public boolean showMajorUpdate()Check if the "Major update" checkbox should be displayed in modal footer.The default implementation of this method is to check for request attribute
SHOW_MAJOR_UPDATE_OPTIONor default to true when in full modal, false otherwise.You can set the attribute to a custom value or provide a custom FormHandler to override this behavior.
See jcore/modalPubFormHandler.jspf for use of this method.
- Returns:
- true to display the button, false to hide it
- Since:
- 11.0.0 / JCMS-11723
-
showSuperFieldsInCollapsible
public boolean showSuperFieldsInCollapsible()Check if the fields provided by the super type of the current type should be grouped in collapsible, or place inline.- Returns:
- true to place super fields in a collapsible, false to place super fields inline (after current fields)
- Since:
- 11.0.0
-
showSDate
public boolean showSDate() -
showFriendlyURL
public boolean showFriendlyURL() -
showLanguageChooser
public boolean showLanguageChooser()- Returns:
- true if channel is multilingual and current Publication type has at least one multilingual field.
-
showForceDelete
public boolean showForceDelete()Returns true if the "Force deletion" option must be proposed.- Returns:
- true if the "Force deletion" option must be proposed.
- Since:
- jcms-5.5.0
-
isLocked
public boolean isLocked()Returns true if the publication is (weakly) locked (by another Member).- Returns:
- true if the publication is (weakly) locked (by another Member).
- Since:
- jcms-5.7.0
-
isStrongLocked
public boolean isStrongLocked()Returns true if the publication is locked (strong lock) by another Member.- Returns:
- true if the publication is locked (strong lock) by another Member.
- Since:
- jcms-5.7.0
-
checkStrongLock
public boolean checkStrongLock() -
showLockWarning
public boolean showLockWarning()Returns true if the lock warning message must be displayed.- Returns:
- true if the lock warning message must be displayed.
- Since:
- jcms-5.7.0
-
setOpenTab
public void setOpenTab(int openTab) Set the open tab- Parameters:
openTab- the tab to open- Since:
- jcms-4.0
-
getOpenTab
public int getOpenTab()- Returns:
- the open tab
- Since:
- jcms-4.0
-
isTabForced
public boolean isTabForced()- Returns:
- true if a tab has been forced
- Since:
- jcms-4.0
-
containsHiddenParts
public boolean containsHiddenParts()- Returns:
- true if there is at least one tab hidden
- Since:
- jcms-5.7.1
-
containsHiddenFields
protected boolean containsHiddenFields() -
setShowAllTabs
public void setShowAllTabs(boolean v) -
getShowAllTabs
public boolean getShowAllTabs() -
setShowContentTabOnly
public void setShowContentTabOnly(boolean v) -
getShowContentTabOnly
public boolean getShowContentTabOnly() -
isContentTabOnly
public boolean isContentTabOnly() -
hideSingleTab
public boolean hideSingleTab()Check if tabs decoration should be displayed in edit pub if only one tab was displayed.- Returns:
- true to hide tab decoration if there is only one single tab. false to display tab decoration anyway.
- Since:
- 11.0.0 / JCMS-11630
-
showTitleFieldInMainTab
public boolean showTitleFieldInMainTab()Check if the title field should be displayed inside the main tab (instead of being displayed in the edit form header).- Since:
- 11.0.0 / JCMS-11333 / use of new tabs in publication edit form
-
isCategoryTabHidden
public boolean isCategoryTabHidden() -
isReadRightTabHidden
public boolean isReadRightTabHidden() -
isUpdateRightTabHidden
public boolean isUpdateRightTabHidden() -
isClassificationTabHidden
public boolean isClassificationTabHidden()Check if the classification tab should be hidden or not- Returns:
- true to hide tab, false to display it
- Since:
- 10.0.8 / JCMS-10746
-
isCommonRightTabHidden
protected boolean isCommonRightTabHidden(boolean isReadTab) -
isTemplateTabHidden
public boolean isTemplateTabHidden() -
isWorkflowTabHidden
public boolean isWorkflowTabHidden() -
isAdvancedTabHidden
public boolean isAdvancedTabHidden() -
setUseDefaultCategories
public void setUseDefaultCategories(boolean useDefaultCategories) -
getAvailableUseDefaultCategories
public boolean getAvailableUseDefaultCategories() -
getAvailableCategories
-
getCategorySet
Returns the root set bound to the given inputName- Parameters:
inputName- the name of category set to get- Returns:
- a Set of Category
- Since:
- jcms-3.0
-
resetCategorySet
public void resetCategorySet()Invalidate any computed cache of the categorySet value- Since:
- jcms-10.0.6 / JCMS-8724
-
getHiddenCatSet
- Parameters:
typeRemovedCatSet- the root of categories for custom fields- Returns:
- the hidden categories
- Since:
- jcms-5.6.2
-
isExpanded
- Parameters:
cat- the categoryinputName- the name of the input- Returns:
- true if the given category must be expanded
- Since:
- jcms-3.0
-
getTitleFieldValue
Retrieve an UNESCAPED version of the title(s).DO NOT print this value in HTML without proper encoding.
- Parameters:
isTitleML- true if the title is multilingual- Returns:
- a String (for monolingual title) or a Map<String,String> (for multilingual title)
-
getAvailableTitle
-
getAllAvailableTitleML
-
getAvailableTitleML
-
getAvailableTitle
-
getAvailableTemplateEntry
-
getAvailableTemplates
-
getAvailablePstatus
public int getAvailablePstatus() -
getAvailablePdate
-
getAvailableEdate
-
getAvailableSdate
-
getAvailableAdate
-
getAvailableWFNote
-
setUseDefaultReadRights
public void setUseDefaultReadRights(boolean useDefaultReadRights) Explicitely request the use of default read rights instead of any read rights that might be specified.- Parameters:
useDefaultReadRights- true to request use of default authorize group/member Set instead of the specified authorized group/member ids, false to use specified value.- Since:
- jcms-10.0.4 / JCMS-7744
- See Also:
-
getAvailableUseDefaultReadRights
public boolean getAvailableUseDefaultReadRights()Check if default read rights should be used.If corresponding setter was not invoked at all, the behavior is as follow :
- if authorized group/member set value are specified they are used, otherwise
- for create operation, the default rights are used
- for updated operation, the existing publication rights are used
- Returns:
- true to use default authorized group/member Set, false for behavior describe above.
- Since:
- jcms-10.0.4 / JCMS-7744
- See Also:
-
getAvailableAuthorizedMemberSet
-
getDefaultAuthorizedMemberSet
This method should be overriden by sub-classes- Returns:
- the default authorized member Set (never retun null).
- Since:
- jcms-3.0
-
getAvailableAuthorizedGroupSet
-
getAuthorizedGroupsCount
public int getAuthorizedGroupsCount() -
getUpdateGroupsCount
public int getUpdateGroupsCount() -
getDefaultAuthorizedGroupSet
This method should be overriden by sub-classes- Returns:
- the default authorized group Set (never return null).
- Since:
- jcms-3.0
-
getDefaultCategorySet
This method should be overriden by sub-classes- Returns:
- the default category Set.
- Since:
- jcms-3.0
-
setUseDefaultUpdateRights
public void setUseDefaultUpdateRights(boolean useDefaultUpdateRights) Explicitely request the use of default update rights instead of any update rights that might be specified.- Parameters:
useDefaultUpdateRights- true to request use of default update group/member Set instead of the specified update group/member ids, false to use specified value.- Since:
- jcms-10.0.4 / JCMS-7744
- See Also:
-
getAvailableUseDefaultUpdateRights
public boolean getAvailableUseDefaultUpdateRights()Check if default update rights should be used.If corresponding setter was not invoked at all, the behavior is as follow :
- if authorized group/member set value are specified they are used, otherwise
- for create operation, the default rights is used
- for updated operation, the existing publication rights are used
- Returns:
- true to use default update group/member Set, false for behavior describe above.
- Since:
- jcms-10.0.4 / JCMS-7744
- See Also:
-
getAvailableUpdateMemberSet
-
getDefaultUpdateMemberSet
This method should be overriden by sub-classes- Returns:
- the default update member Set (never retun null).
- Since:
- jcms-4.0
-
getAvailableUpdateGroupSet
-
getDefaultUpdateGroupSet
This method should be overriden by sub-classes- Returns:
- the default update group Set (never retun null).
- Since:
- jcms-4.0
-
getAvailableRestrictUpdateRights
public boolean getAvailableRestrictUpdateRights() -
setRestrictUpdateRights
-
getAvailableClassificationLevel
public int getAvailableClassificationLevel()Retrieve the classification level current available for the edition in progress- Returns:
- a classification level
- Since:
- 10.0.8 / JCMS-10746
-
setClassificationLevel
public void setClassificationLevel(int level) Set the classification level to assign to the edited publication- Parameters:
level- a value from 0 for unclassified publication toClassificationManager.getMaximumLevel()(included) for highly classified publication. 0 if used if null is specified.- Since:
- 10.0.8 / JCMS-10746
-
getClassificationLevelSettings
Retrieve a settings suitable to edit a classification level in the current context.- Returns:
- a new EnumerateSettings instance
- Since:
- 10.0.8 / JCMS-10746
-
getAvailableAuthor
- Returns:
- the selected author
- Since:
- jcms-5.0.0
-
setAuthorForced
-
updateCids
Update the cids (this method is called by setCids() and all setCidsXXX() methods)- Parameters:
v- the cids- Since:
- jcms-4.0
-
getDefaultTemplateUsage
Returns the default template usage used to display the publication. This default tempalte may change between Content and Portlets- Returns:
- String the default usage
- Since:
- jcms-6.0.0
-
setOpUpdateMajor
-
setOpMerge
-
setOpLock
-
setOpUnlock
-
setOpRequestUnlock
-
setCheckMemberForRequestUnlock
-
setRequestUnlockMessage
-
setOpAddItem
-
setOpAddItemReadRights
-
setOpAddItemUpdateRights
-
setMajorUpdate
-
getAvailableMajorUpdate
public boolean getAvailableMajorUpdate() -
setOpTrash
Request publication to be moved in trash.Any invocation of this setter will request the trash action (value itself is ignored)
- Parameters:
v- any value- Since:
- jcms-10.0.5 / JCMS-8353
-
setOpUntrash
Request publication to be moved outside trash and restored to its previous state.Any invocation of this setter will request the untrash action (value itself is ignored)
- Parameters:
v- any value- Since:
- jcms-10.0.5 / JCMS-8353
-
getAvailableField
Description copied from class:EditDataHandlerGet value of the given field calling getAvailable{field}(). Called by widgets and meta templates See alsoEditDataHandler.getEnumValues(String)andEditDataHandler.getEnumLabels(String, String)- Overrides:
getAvailableFieldin classEditDataHandler- Parameters:
field- the field name- Returns:
- Object return by getAvailable
-
isForm
public boolean isForm()- Returns:
- true if this handler is dedicated to Form sub-class processing. Overrided by EditFormHandler.
- Since:
- jcms-4.0
-
setItemPos
public void setItemPos(int v) -
setId
Set the value of id.- Overrides:
setIdin classEditDataHandler- Parameters:
id- Value to assign to id.
-
setTitle
-
setCids
-
setAuthor
-
setTemplates
-
setPstatus
public void setPstatus(int v) -
setPdate
-
setEdate
-
setSdate
-
setAdate
-
setWfNote
-
setAuthorizedMemberSetAddCount
public void setAuthorizedMemberSetAddCount(int v) -
getAuthorizedMemberSetCount
public int getAuthorizedMemberSetCount() -
setAuthorizedMemberIds
-
setAuthorizedGroupIds
-
setUpdateMemberSetAddCount
public void setUpdateMemberSetAddCount(int v) -
getUpdateMemberSetCount
public int getUpdateMemberSetCount() -
setUpdateMemberIds
-
setUpdateGroupIds
-
getAnchor
Get the value of anchor.- Returns:
- Value of anchor.
-
setAnchor
Set the value of anchor.- Parameters:
v- Value to assign to anchor.
-
setTracked
public void setTracked(boolean v) -
getAvailableTracked
public boolean getAvailableTracked() -
setReadAck
public void setReadAck(boolean v) -
getAvailableReadAck
public boolean getAvailableReadAck() -
getAvailableWorkspace
- Returns:
- Returns the workspace.
-
setMainLanguage
-
getAvailableMainLanguage
- Overrides:
getAvailableMainLanguagein classJcmsFormHandler- Returns:
- the main language of the publication.
-
setFriendlyURL
-
getAvailableFriendlyURLSet
- Returns:
- the friendly urls HashMap (including the default language)
- Since:
- jcms-5.5.0
-
setRoleId
-
getAvailableRoleMap
- Returns:
- the roleMap
- Since:
- jcms-5.5.0
-
getMemberSetAssignedToRole
- Parameters:
roleId- a WFRole id- Returns:
- the set of member assigned to the given roleId
- Since:
- jcms-5.5.0
-
getTypeLabel
Returns the label of the edited type.- Returns:
- the label of the edited type.
- Since:
- jcms-5.7.0
-
cannotRead
public boolean cannotRead()Returns true if the loggedMember cannot read this publication.- Returns:
- true if the loggedMember cannot read this publication.
- Since:
- jcms-5.7.0
-
getWorkAreaCss
Returns the css class used for style, and javascript window resize in footer in popup edition.- Returns:
- the css class used for style, and javascript window resize in footer in popup edition.
- Since:
- jcms-5.7.0
-
getFieldStatus
Returns the FieldStatus for the given field.- Parameters:
fieldName- the name of the field- Returns:
- the FieldStatus for the given field (never null).
- Since:
- jcms-6.0.1
-
setDoNotStore
Request that create operation is not stored after successful validation.If enabled, the Data is validated, but not stored in JStore or JcmsDB, instead the Data is added has a session attribute
LAST_PUBLICATION_NOT_STORED.Can be used with redirect value "work/lastPublicationXml.jsp" to dump the Data content as XML.
Default is false.
- Parameters:
str- a boolean value as string- Since:
- jcms-9.0.0
- See Also:
-
getDoNotStore
Retrieve the current value of the doNotStore option.See
setDoNotStore(String)for complete information of behavior introduced by this option.- Returns:
- a String representation of the doNotStore boolean option, true if create operation should be skipped, false if operation should be performed as usual
- See Also:
-
setIgnoreWorkspaceCompliance
public void setIgnoreWorkspaceCompliance(boolean v) Set or disabled workspace compliance check. If workspace compliance is enabled and the publication type cannot be published in the selected workspace, another workspace will be searched.- Parameters:
v- the value- Since:
- jcms-9.0.0
-
getIgnoreWorkspaceCompliance
public boolean getIgnoreWorkspaceCompliance()Returns true if workspace compliance is ignored ; false otherwise.- Returns:
- true if workspace compliance is ignored ; false otherwise.
- Since:
- jcms-9.0.0
-
getWorkspaceComplianceWarning
public boolean getWorkspaceComplianceWarning()Returns true if workspace compliance warning message is ignored ; false otherwise.- Returns:
- true if workspace compliance warning message is ignored ; false otherwise.
- Since:
- jcms-9.0.2
-
setWorkspaceComplianceWarning
public void setWorkspaceComplianceWarning(boolean workspaceComplianceWarning) Set or disabled workspace compliance warning message. If workspace compliance is enabled and the publication type cannot be published in the selected workspace, a warning message is displayed to the user.- Parameters:
workspaceComplianceWarning- the value- Since:
- jcms-9.0.2
-
setAttachWorkspaceIds
-
getAvailableAttachWorkspaceSet
-
setSkipActivity
If true skip the ESN activity- Parameters:
v- the value- Since:
- jcms-10.0.0
-
getAvailableSkipActivity
public boolean getAvailableSkipActivity() -
isFormStepClickable
public boolean isFormStepClickable()Description copied from class:JcmsFormHandlerReturns true if the form step are clickable.- Overrides:
isFormStepClickablein classJcmsFormHandler- Returns:
- true if the form step are clickable.
-
getWorkspaceSettings
-