Package com.jalios.jcms.handler
Class TypeEditorHandler
- java.lang.Object
-
- com.jalios.jcms.context.JcmsContext
-
- com.jalios.jcms.context.JcmsJspContext
-
- com.jalios.jcms.handler.JcmsFormHandler
-
- com.jalios.jcms.handler.TypeEditorHandler
-
- All Implemented Interfaces:
JcmsConstants
,TypeConstants
,JaliosConstants
public class TypeEditorHandler extends JcmsFormHandler implements TypeConstants
This form handler processes the Type Editor form.- Version:
- $Revision: 129328 $
- Author:
- Olivier Dedieu
- See Also:
Group
-
-
Field Summary
Fields Modifier and Type Field Description static int
FIELD_EDITOR_TAB
static int
FIELD_EDITOR_TAB_DB
static int
FIELD_LIST_TAB
static java.lang.String
NEW_TAB_ID
static int
PROPERTIES_TAB
static java.lang.String
REVISION
static int
TABS_TAB
static int
TEMPLATE_TAB
protected TypeProcessor
typeProcessor
-
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, csrfValidationEnabled, editFieldSet, formStep, noRedirect, noSendRedirect, opFinish, opNext, opPrevious, popupEdition, redirect, redirectOnClosePopup, workspaceForced
-
Fields 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_SET_ATTRIBUTE, jsboSet, 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, isDebugTemplatePath, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, userZoneId, 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
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, 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, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, 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_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, 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, 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, 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
-
Fields inherited from interface com.jalios.jcms.TypeConstants
CHANGE_LEVEL_CLASS, CHANGE_LEVEL_JSP, CHANGE_LEVEL_NONE, DISPLAY_TPLT_TAG, EXTENSIONS_XML, FIELD_ELT, FIELD_NEW_MARK, FIELD_UPDATED_MARK, FIELDS_ELT, FILE_INDEX_LISTENER, LINK_INDEX_LISTENER, OLD_TYPES_DIR, PACKAGE_NAME, QUERY_TPLT_TAG, TAB_ELT, TABS_ELT, TEMPLATE_TAG, TEMPLATES_SUFFIX, TEMPLATES_TAG, TITLE_ELT, TYPE_ELT, TYPE_FORCE_UPDATE_MARK, TYPE_NEW_MARK, TYPE_UPDATED_MARK, TYPES_DIR, TYPES_XML
-
-
Constructor Summary
Constructors Constructor Description TypeEditorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEditDatabase()
boolean
canEditJavaName()
boolean
canEditTypeRevision()
boolean
canEditTypeRole()
boolean
checkFieldEditorAvailability(java.lang.String editor)
Check if the given editor is available for the type of Publication to createjava.util.List<org.jdom.Element>
getAllowedSuperTypeList()
java.util.TreeSet
getAuthorizedGroupSet()
java.util.TreeSet
getCategorySet(java.lang.String inputName)
Returns the root set bound to the given inputNamejava.util.List<java.lang.Class>
getContentClassList()
java.lang.String
getFieldCatChooser()
int
getFieldCount()
java.lang.String
getFieldDataSource()
java.lang.String
getFieldDateFormat()
java.lang.String
getFieldDbrColumns()
java.lang.String
getFieldDbrKeyCol()
java.lang.String
getFieldDbrLabelCol()
java.lang.String
getFieldDbrOrderBy()
java.lang.String
getFieldDbrTable()
java.lang.String
getFieldDefault()
java.util.Map
getFieldDefaultTextMap()
java.lang.String
getFieldDescription()
java.util.Map
getFieldDescriptionMap()
java.lang.String
getFieldDescriptionType()
java.lang.String
getFieldEditor()
org.jdom.Element
getFieldElt()
java.lang.String
getFieldEnumChooser()
java.util.TreeSet
getFieldGroupSet()
java.lang.String
getFieldGrpChooser()
java.lang.String
getFieldLabel()
java.util.Map
getFieldLabelMap()
int
getFieldMaxRows()
java.lang.String
getFieldMbrChooser()
java.lang.String
getFieldName()
int
getFieldNextPos()
java.util.Map
getFieldOffLabelMap()
java.util.Map
getFieldOnLabelMap()
int
getFieldPrevPos()
java.lang.String
getFieldPubChooser()
int
getFieldResizeHeight()
int
getFieldResizeWidth()
java.lang.String
getFieldSqlrParams()
java.lang.String
getFieldSqlrQuery()
java.lang.String
getFieldSuperTypes()
java.lang.String
getFieldTab()
java.lang.String
getFieldTfChooser()
java.lang.String
getFieldType()
java.lang.String
getFieldTypeShort()
java.lang.String
getFieldUnitPos()
java.util.List
getInheritedFieldList()
java.lang.String[]
getMediaTypes()
int
getOpenTab()
java.util.List<java.lang.Class>
getPortletClassList()
java.lang.String
getRootClassName()
Gives the root Class Name of the typejava.util.TreeSet
getSelectedCatSet()
java.util.List
getSubEltList()
org.jdom.Element
getSuperElt()
java.util.List
getSuperEltList()
java.lang.String
getTabLabel(java.lang.String tabId)
java.lang.String
getTabLabel(org.jdom.Element fieldElt)
java.util.Map
getTabMap()
java.util.Map
getTabMLMap()
java.util.Map<java.lang.String,java.util.Set<TypeTemplateEntry>>
getTemplateUsageMapFromXml()
java.lang.String
getTitleDescription()
java.util.Map
getTitleDescriptionMap()
java.lang.String
getTitleLabel()
java.util.Map
getTitleLabelMap()
java.lang.String
getTypeCustomFormHandler()
java.lang.String
getTypeCustomInterfaces()
java.lang.String
getTypeCustomSuperFormHandler()
java.lang.String
getTypeDescription()
java.util.Map
getTypeDescriptionMap()
org.jdom.Element
getTypeElt()
Member
getTypeFormAuthor()
java.lang.String
getTypeFormRedirectMode()
java.lang.String
getTypeFormRedirectValue()
Workspace
getTypeFormWorkspace()
java.lang.String
getTypeLabel()
java.util.Map<java.lang.String,java.lang.String>
getTypeLabelMap()
java.lang.String
getTypeName()
int
getTypePos()
java.lang.String
getTypeSuperClass()
java.lang.String
getTypeTableName()
java.lang.String
getWysiwygConfigurationId()
protected void
init()
Method to implement if you need to initialize your handler from parameter received, prior to all security validation.boolean
isApplyNeeded()
boolean
isAudienced()
boolean
isCategorizable()
boolean
isContentEditor()
boolean
isCustomSuperClass()
boolean
isDatabase()
boolean
isDatabaseSupported()
boolean
isEditTitle()
boolean
isExpanded(Category cat, java.lang.String inputName)
boolean
isFieldAbstract()
boolean
isFieldBoolean()
boolean
isFieldCheckHtml()
boolean
isFieldCompactDisplay()
boolean
isFieldDataImage()
boolean
isFieldDate()
boolean
isFieldDateOnly()
boolean
isFieldDBRecord()
boolean
isFieldDisplayRoot()
boolean
isFieldDouble()
boolean
isFieldEditable()
boolean
isFieldEmail()
boolean
isFieldEnumerate()
boolean
isFieldFileDocument()
boolean
isFieldHidden()
boolean
isFieldHtml()
boolean
isFieldImage()
boolean
isFieldInline()
boolean
isFieldInteger()
boolean
isFieldMedia()
boolean
isFieldML()
boolean
isFieldMV()
boolean
isFieldOpenWindow()
boolean
isFieldParent()
boolean
isFieldRequired()
boolean
isFieldResize()
boolean
isFieldSearchable()
boolean
isFieldSQLQuery()
boolean
isFieldSQLResult()
boolean
isFieldString()
boolean
isFieldText()
boolean
isFieldType()
boolean
isFieldTypeArray()
boolean
isFieldTypeList()
boolean
isFieldTypeSet()
boolean
isFieldURL()
boolean
isFieldWiki()
boolean
isFormEditor()
boolean
isModified()
boolean
isPortletEditor()
boolean
isRestartNeeded()
boolean
isTitleML()
boolean
isTitleSearchable()
boolean
isTypeAbstract()
boolean
isTypeAdvancedTab()
boolean
isTypeCategoryTab()
boolean
isTypeDebatable()
boolean
isTypeFormNotify()
boolean
isTypeFormOneSubmit()
boolean
isTypeHbm()
boolean
isTypeOpenRole()
boolean
isTypeReadRightTab()
boolean
isTypeRevision()
boolean
isTypeTemplateTab()
boolean
isTypeUnitFieldEdition()
boolean
isTypeUpdateRightTab()
boolean
isTypeWorkflowTab()
boolean
isUGCEditor()
boolean
isVisible()
boolean
processAction()
Method to be implemented to check/validate action to be performed and process them.void
setAbstract(boolean v)
void
setCatChooser(java.lang.String v)
void
setCheckHtml(boolean v)
void
setCid(java.lang.String v)
void
setCols(int v)
void
setCompactDisplay(boolean v)
void
setDataImage(boolean v)
void
setDataSource(java.lang.String dataSource)
void
setDateFormat(java.lang.String v)
void
setDateOnly(boolean v)
void
setDbrColumns(java.lang.String dbrColumns)
void
setDbrKeyCol(java.lang.String dbrKeyCol)
void
setDbrLabelCol(java.lang.String dbrLabelCol)
void
setDbrOrderBy(java.lang.String dbrOrderBy)
void
setDbrTable(java.lang.String dbrTable)
void
setDecimals(int v)
void
setDefault(java.lang.String v)
void
setDefaultTexts(java.lang.String[] v)
void
setDescriptionType(java.lang.String v)
void
setDisplayRoot(boolean v)
void
setEditor(java.lang.String v)
void
setEditTitle(boolean v)
void
setEnumChooser(java.lang.String v)
void
setFieldDescriptions(java.lang.String[] v)
void
setFieldLabels(java.lang.String[] v)
void
setGids(java.lang.String[] v)
void
setGrpChooser(java.lang.String v)
void
setHidden(boolean v)
void
setHtml(boolean v)
void
setInline(boolean v)
void
setLabelList(java.lang.String[] v)
void
setMaxRows(int maxRows)
void
setMaxValue(double v)
void
setMbrChooser(java.lang.String v)
void
setMediaType(java.lang.String[] mediaTypes)
void
setMinValue(double v)
void
setMl(boolean v)
void
setName(java.lang.String v)
void
setNewFieldLabels(java.lang.String[] v)
void
setNewTab(java.lang.String v)
void
setOffLabels(java.lang.String[] v)
void
setOnLabels(java.lang.String[] v)
void
setOpAdd(java.lang.String v)
void
setOpCancel(java.lang.String v)
void
setOpDelete(java.lang.String v)
void
setOpenTab(int openTab)
void
setOpenWindow(boolean v)
void
setOpFieldDown(java.lang.String v)
void
setOpFieldUp(java.lang.String v)
void
setOpRefreshField(java.lang.String v)
void
setOpRefreshProperties(java.lang.String v)
void
setOpRestart(java.lang.String v)
void
setOpRevert(java.lang.String v)
void
setOpSave(java.lang.String v)
void
setOpUpdate(java.lang.String v)
void
setOpUpdateSuper(java.lang.String v)
void
setOpUpdateTabs(java.lang.String v)
void
setOpUpdateTemplate(java.lang.String v)
void
setOpUpdateTitle(java.lang.String v)
void
setParent(boolean v)
void
setPath(java.lang.String v)
void
setPattern(java.lang.String v)
void
setPos(int v)
void
setPubChooser(java.lang.String v)
void
setQuantity(java.lang.String v)
void
setRequired(boolean v)
void
setResize(boolean v)
void
setResizeHeight(int v)
void
setResizeWidth(int v)
void
setRows(int v)
void
setSearchable(boolean v)
void
setSize(int v)
void
setSqlrParams(java.lang.String sqlrParams)
void
setSqlrQuery(java.lang.String sqlrQuery)
void
setSuperTypes(java.lang.String superTypes)
void
setTab(java.lang.String v)
void
setTabGroup(java.lang.String v)
void
setTemplateDescriptions(java.lang.String[] v)
void
setTemplateLabels(java.lang.String[] v)
void
setTemplateNames(java.lang.String[] v)
void
setTemplatePaths(java.lang.String[] v)
void
setTemplateUsages(java.lang.String[] v)
void
setTfChooser(java.lang.String v)
void
setTitleDescriptions(java.lang.String[] v)
void
setTitleLabels(java.lang.String[] v)
void
setTruncate(java.lang.String v)
void
setType(java.lang.String v)
void
setTypeDescriptions(java.lang.String[] v)
void
setTypeLabels(java.lang.String[] v)
void
setTypeTabIds(java.lang.String[] values)
void
setTypeTabLabels(java.lang.String[] values)
void
setUnit(java.lang.String v)
void
setUnitPos(java.lang.String v)
protected void
setupModifiedRestartApply()
void
setValueList(java.lang.String v)
void
setWiki(boolean v)
void
setWysiwygConfigurationId(java.lang.String id)
boolean
showAbstract()
boolean
showDataImage()
boolean
showDataSource()
boolean
showDescription()
boolean
showEnum()
boolean
showFieldEditorTab()
boolean
showHidden()
boolean
showMaxRows()
boolean
showMultilingual()
boolean
showMultivalued()
boolean
showParentLink()
boolean
showRequired()
boolean
showSearchable()
boolean
showTab()
void
updateField(org.jdom.Element fieldElt)
-
Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler
afterValidation, checkMissingField, getAvailableMainLanguage, getClosePopupUrl, getControllerContext, getEditFieldSet, getFormStep, getFormStepCount, getFormStepFinishLabel, getFormStepHiddenFields, getFormStepLabels, getFormStepPrefixProp, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getModalRedirect, getMonolingualValue, getMonolingualValueArray, getMultilingualMainValue, getMultilingualMainValueArray, getMultilingualMLMap, getMultilingualMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, isFieldEdition, isFieldMissing, isFormStepClickable, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, mapStringArrayToMapStringList, mapStringListToMapStringArray, mustSendForbiddenOnCSRF, performFinish, performNext, performPrevious, processStatus, sanitize, sanitize, sendRedirect, sendRedirect, setEditField, setFormStep, setNoRedirect, setNoSendRedirect, setOpFinish, setOpNext, setOpPrevious, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, showCancelButton, showFinishButton, showNextButton, showPreviousButton, updateUploadedField, updateUploadedFields, updateUploadedFields, validate, validateCSRF, validateFinish, validateNext, validatePrevious
-
Methods inherited from class com.jalios.jcms.context.JcmsJspContext
addAvoidanceLink, addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHandlebarTemplate, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addPrefetchHeader, addStyleHeader, addStyleHeader, addWebAssets, checkAccess, checkAccess, checkCSRF, debugDisplayContext, disablePacker, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getAvoidanceLinks, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSFooterMap, getFinalCSSMap, getFinalJavaScriptSet, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getHandlebarTemplates, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptSet, getJSONBridge, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getPublication, getStyleHeaders, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isEditIcon, isEditIconForPublish, isEditIconForPublish, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, showEditIcon, showEditIcon, workaroundBrowserBaseHrefBug
-
Methods inherited from class com.jalios.jcms.context.JcmsContext
addCookie, addMsg, addMsg, addMsgSession, addMsgSession, addToastr, addToastr, addToastrSession, addToastrSession, applySelector, 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, getUploadedFile, getUploadedFileList, getUploadedFiles, getUploadedFiles, getUrlWithCommonUpdatedParams, getUserCountry, getUserLang, getUserLocale, getUserZoneId, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAdminZone, isAjaxRequest, isDBMember, isDebug, isDebugTemplate, isInFrontOffice, isLogged, isWebdavAccess, isWorkZone, removeMessage, removeMessage, retrieveUploadedFile, 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 Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
FIELD_LIST_TAB
public static final int FIELD_LIST_TAB
- See Also:
- Constant Field Values
-
PROPERTIES_TAB
public static final int PROPERTIES_TAB
- See Also:
- Constant Field Values
-
TEMPLATE_TAB
public static final int TEMPLATE_TAB
- See Also:
- Constant Field Values
-
TABS_TAB
public static final int TABS_TAB
- See Also:
- Constant Field Values
-
FIELD_EDITOR_TAB
public static final int FIELD_EDITOR_TAB
- See Also:
- Constant Field Values
-
FIELD_EDITOR_TAB_DB
public static final int FIELD_EDITOR_TAB_DB
- See Also:
- Constant Field Values
-
NEW_TAB_ID
public static final java.lang.String NEW_TAB_ID
- See Also:
- Constant Field Values
-
typeProcessor
protected TypeProcessor typeProcessor
-
-
Method Detail
-
getTypeElt
public org.jdom.Element getTypeElt()
-
getFieldElt
public org.jdom.Element getFieldElt()
-
getSuperElt
public org.jdom.Element getSuperElt()
-
getSuperEltList
public java.util.List getSuperEltList()
-
getSubEltList
public java.util.List getSubEltList()
-
getAllowedSuperTypeList
public java.util.List<org.jdom.Element> getAllowedSuperTypeList()
-
getInheritedFieldList
public java.util.List getInheritedFieldList()
-
setOpenTab
public void setOpenTab(int openTab)
-
getOpenTab
public int getOpenTab()
-
showFieldEditorTab
public boolean showFieldEditorTab()
-
init
protected void init()
Description copied from class:JcmsFormHandler
Method 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:
init
in classJcmsFormHandler
-
processAction
public boolean processAction() throws java.io.IOException
Description copied from class:JcmsFormHandler
Method 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:
processAction
in classJcmsFormHandler
- Returns:
- false if no redirection is needed, true otherwise
- Throws:
java.io.IOException
- IO Exception
-
getTemplateUsageMapFromXml
public java.util.Map<java.lang.String,java.util.Set<TypeTemplateEntry>> getTemplateUsageMapFromXml()
-
isEditTitle
public boolean isEditTitle()
-
checkFieldEditorAvailability
public boolean checkFieldEditorAvailability(java.lang.String editor)
Check if the given editor is available for the type of Publication to create- Parameters:
editor
- the editor- Returns:
- true if it is available
-
getCategorySet
public java.util.TreeSet getCategorySet(java.lang.String inputName)
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
-
isExpanded
public boolean isExpanded(Category cat, java.lang.String inputName)
- Parameters:
cat
- the category to checkinputName
- the name of the category input to check- Returns:
- true if the given category must be expanded
- Since:
- jcms-3.0
-
getTabMap
public java.util.Map getTabMap()
-
getTabLabel
public java.lang.String getTabLabel(org.jdom.Element fieldElt)
-
getTabLabel
public java.lang.String getTabLabel(java.lang.String tabId)
-
getTabMLMap
public java.util.Map getTabMLMap()
-
setOpFieldUp
public void setOpFieldUp(java.lang.String v)
-
setOpFieldDown
public void setOpFieldDown(java.lang.String v)
-
setOpUpdateTitle
public void setOpUpdateTitle(java.lang.String v)
-
setOpUpdateSuper
public void setOpUpdateSuper(java.lang.String v)
-
setOpUpdateTemplate
public void setOpUpdateTemplate(java.lang.String v)
-
setOpUpdateTabs
public void setOpUpdateTabs(java.lang.String v)
-
setOpAdd
public void setOpAdd(java.lang.String v)
-
setOpUpdate
public void setOpUpdate(java.lang.String v)
-
setOpDelete
public void setOpDelete(java.lang.String v)
-
setOpSave
public void setOpSave(java.lang.String v)
-
setOpRevert
public void setOpRevert(java.lang.String v)
-
setOpRestart
public void setOpRestart(java.lang.String v)
-
setOpRefreshField
public void setOpRefreshField(java.lang.String v)
-
setOpRefreshProperties
public void setOpRefreshProperties(java.lang.String v)
-
setOpCancel
public void setOpCancel(java.lang.String v)
-
setType
public void setType(java.lang.String v)
-
setPos
public void setPos(int v)
-
setEditTitle
public void setEditTitle(boolean v)
-
setName
public void setName(java.lang.String v)
-
setTypeLabels
public void setTypeLabels(java.lang.String[] v)
-
setTypeDescriptions
public void setTypeDescriptions(java.lang.String[] v)
-
setTypeTabLabels
public void setTypeTabLabels(java.lang.String[] values)
-
setTypeTabIds
public void setTypeTabIds(java.lang.String[] values)
-
setTitleLabels
public void setTitleLabels(java.lang.String[] v)
-
setTitleDescriptions
public void setTitleDescriptions(java.lang.String[] v)
-
setFieldLabels
public void setFieldLabels(java.lang.String[] v)
-
setNewFieldLabels
public void setNewFieldLabels(java.lang.String[] v)
-
setFieldDescriptions
public void setFieldDescriptions(java.lang.String[] v)
-
setDescriptionType
public void setDescriptionType(java.lang.String v)
-
setEditor
public void setEditor(java.lang.String v)
-
setRequired
public void setRequired(boolean v)
-
setHidden
public void setHidden(boolean v)
-
setMl
public void setMl(boolean v)
-
setCompactDisplay
public void setCompactDisplay(boolean v)
-
setDefault
public void setDefault(java.lang.String v)
-
setDefaultTexts
public void setDefaultTexts(java.lang.String[] v)
-
setLabelList
public void setLabelList(java.lang.String[] v)
-
setValueList
public void setValueList(java.lang.String v)
-
setSearchable
public void setSearchable(boolean v)
-
setWiki
public void setWiki(boolean v)
-
setHtml
public void setHtml(boolean v)
-
setWysiwygConfigurationId
public void setWysiwygConfigurationId(java.lang.String id)
-
getWysiwygConfigurationId
public java.lang.String getWysiwygConfigurationId()
-
setCheckHtml
public void setCheckHtml(boolean v)
-
setAbstract
public void setAbstract(boolean v)
-
setDataImage
public void setDataImage(boolean v)
-
setTruncate
public void setTruncate(java.lang.String v)
-
setSize
public void setSize(int v)
-
setRows
public void setRows(int v)
-
setCols
public void setCols(int v)
-
setInline
public void setInline(boolean v)
-
setPattern
public void setPattern(java.lang.String v)
-
setPath
public void setPath(java.lang.String v)
-
setOpenWindow
public void setOpenWindow(boolean v)
-
setResize
public void setResize(boolean v)
-
setResizeWidth
public void setResizeWidth(int v)
-
setResizeHeight
public void setResizeHeight(int v)
-
setOnLabels
public void setOnLabels(java.lang.String[] v)
-
setOffLabels
public void setOffLabels(java.lang.String[] v)
-
setMinValue
public void setMinValue(double v)
-
setMaxValue
public void setMaxValue(double v)
-
setDecimals
public void setDecimals(int v)
-
setUnit
public void setUnit(java.lang.String v)
-
setUnitPos
public void setUnitPos(java.lang.String v)
-
setParent
public void setParent(boolean v)
-
setDisplayRoot
public void setDisplayRoot(boolean v)
-
setCid
public void setCid(java.lang.String v)
-
setDateFormat
public void setDateFormat(java.lang.String v)
-
setDateOnly
public void setDateOnly(boolean v)
-
setEnumChooser
public void setEnumChooser(java.lang.String v)
-
setCatChooser
public void setCatChooser(java.lang.String v)
-
setMbrChooser
public void setMbrChooser(java.lang.String v)
-
setGrpChooser
public void setGrpChooser(java.lang.String v)
-
setPubChooser
public void setPubChooser(java.lang.String v)
-
setTfChooser
public void setTfChooser(java.lang.String v)
-
setGids
public void setGids(java.lang.String[] v)
-
setTab
public void setTab(java.lang.String v)
-
setNewTab
public void setNewTab(java.lang.String v)
-
setTabGroup
public void setTabGroup(java.lang.String v)
-
setQuantity
public void setQuantity(java.lang.String v)
-
setTemplateNames
public void setTemplateNames(java.lang.String[] v)
-
setTemplateUsages
public void setTemplateUsages(java.lang.String[] v)
-
setTemplatePaths
public void setTemplatePaths(java.lang.String[] v)
-
setTemplateLabels
public void setTemplateLabels(java.lang.String[] v)
-
setTemplateDescriptions
public void setTemplateDescriptions(java.lang.String[] v)
-
setDataSource
public void setDataSource(java.lang.String dataSource)
-
setSqlrQuery
public void setSqlrQuery(java.lang.String sqlrQuery)
-
setSqlrParams
public void setSqlrParams(java.lang.String sqlrParams)
-
setDbrTable
public void setDbrTable(java.lang.String dbrTable)
-
setDbrKeyCol
public void setDbrKeyCol(java.lang.String dbrKeyCol)
-
setDbrColumns
public void setDbrColumns(java.lang.String dbrColumns)
-
setDbrLabelCol
public void setDbrLabelCol(java.lang.String dbrLabelCol)
-
setDbrOrderBy
public void setDbrOrderBy(java.lang.String dbrOrderBy)
-
setSuperTypes
public void setSuperTypes(java.lang.String superTypes)
-
setMaxRows
public void setMaxRows(int maxRows)
-
setMediaType
public void setMediaType(java.lang.String[] mediaTypes)
-
getMediaTypes
public java.lang.String[] getMediaTypes()
-
canEditJavaName
public boolean canEditJavaName()
-
getTypeName
public java.lang.String getTypeName()
-
getTypeLabel
public java.lang.String getTypeLabel()
-
getTypeLabelMap
public java.util.Map<java.lang.String,java.lang.String> getTypeLabelMap()
-
getTypeDescription
public java.lang.String getTypeDescription()
-
getTypeDescriptionMap
public java.util.Map getTypeDescriptionMap()
-
getTitleLabel
public java.lang.String getTitleLabel()
-
getTitleLabelMap
public java.util.Map getTitleLabelMap()
-
getTitleDescription
public java.lang.String getTitleDescription()
-
getTitleDescriptionMap
public java.util.Map getTitleDescriptionMap()
-
isCategorizable
public boolean isCategorizable()
-
isVisible
public boolean isVisible()
-
isTitleSearchable
public boolean isTitleSearchable()
-
isTitleML
public boolean isTitleML()
-
isTypeCategoryTab
public boolean isTypeCategoryTab()
-
isTypeReadRightTab
public boolean isTypeReadRightTab()
-
isTypeUpdateRightTab
public boolean isTypeUpdateRightTab()
-
isTypeTemplateTab
public boolean isTypeTemplateTab()
-
isTypeWorkflowTab
public boolean isTypeWorkflowTab()
-
isTypeAdvancedTab
public boolean isTypeAdvancedTab()
-
isTypeAbstract
public boolean isTypeAbstract()
-
isTypeDebatable
public boolean isTypeDebatable()
-
isTypeUnitFieldEdition
public boolean isTypeUnitFieldEdition()
-
isAudienced
public boolean isAudienced()
-
isDatabaseSupported
public boolean isDatabaseSupported()
-
isDatabase
public boolean isDatabase()
-
canEditDatabase
public boolean canEditDatabase()
-
isTypeRevision
public boolean isTypeRevision()
-
canEditTypeRevision
public boolean canEditTypeRevision()
-
isTypeOpenRole
public boolean isTypeOpenRole()
-
canEditTypeRole
public boolean canEditTypeRole()
-
isTypeHbm
public boolean isTypeHbm()
-
getTypeTableName
public java.lang.String getTypeTableName()
-
isTypeFormOneSubmit
public boolean isTypeFormOneSubmit()
-
isTypeFormNotify
public boolean isTypeFormNotify()
-
getTypeFormAuthor
public Member getTypeFormAuthor()
-
getTypeFormWorkspace
public Workspace getTypeFormWorkspace()
-
getTypeFormRedirectMode
public java.lang.String getTypeFormRedirectMode()
-
getTypeFormRedirectValue
public java.lang.String getTypeFormRedirectValue()
-
getTypeSuperClass
public java.lang.String getTypeSuperClass()
-
isCustomSuperClass
public boolean isCustomSuperClass()
-
getTypeCustomFormHandler
public java.lang.String getTypeCustomFormHandler()
-
getTypeCustomSuperFormHandler
public java.lang.String getTypeCustomSuperFormHandler()
-
getTypeCustomInterfaces
public java.lang.String getTypeCustomInterfaces()
-
getAuthorizedGroupSet
public java.util.TreeSet getAuthorizedGroupSet()
-
getTypePos
public int getTypePos()
-
setupModifiedRestartApply
protected void setupModifiedRestartApply()
-
isApplyNeeded
public boolean isApplyNeeded()
-
isRestartNeeded
public boolean isRestartNeeded()
-
isModified
public boolean isModified()
-
isContentEditor
public boolean isContentEditor()
-
isPortletEditor
public boolean isPortletEditor()
-
isFormEditor
public boolean isFormEditor()
-
isUGCEditor
public boolean isUGCEditor()
-
getContentClassList
public java.util.List<java.lang.Class> getContentClassList()
-
getPortletClassList
public java.util.List<java.lang.Class> getPortletClassList()
-
getFieldCount
public int getFieldCount()
-
getFieldPrevPos
public int getFieldPrevPos()
-
getFieldNextPos
public int getFieldNextPos()
-
updateField
public void updateField(org.jdom.Element fieldElt)
-
getFieldName
public java.lang.String getFieldName()
-
getFieldType
public java.lang.String getFieldType()
-
getFieldTypeShort
public java.lang.String getFieldTypeShort()
-
isFieldMV
public boolean isFieldMV()
-
isFieldTypeArray
public boolean isFieldTypeArray()
-
isFieldTypeList
public boolean isFieldTypeList()
-
isFieldTypeSet
public boolean isFieldTypeSet()
-
isFieldString
public boolean isFieldString()
-
isFieldDate
public boolean isFieldDate()
-
isFieldInteger
public boolean isFieldInteger()
-
isFieldDouble
public boolean isFieldDouble()
-
isFieldBoolean
public boolean isFieldBoolean()
-
isFieldFileDocument
public boolean isFieldFileDocument()
-
getFieldLabel
public java.lang.String getFieldLabel()
-
getFieldLabelMap
public java.util.Map getFieldLabelMap()
-
getFieldEditor
public java.lang.String getFieldEditor()
-
isFieldEnumerate
public boolean isFieldEnumerate()
-
isFieldSQLQuery
public boolean isFieldSQLQuery()
-
isFieldDBRecord
public boolean isFieldDBRecord()
-
isFieldSQLResult
public boolean isFieldSQLResult()
-
isFieldText
public boolean isFieldText()
-
isFieldImage
public boolean isFieldImage()
-
isFieldMedia
public boolean isFieldMedia()
-
isFieldURL
public boolean isFieldURL()
-
isFieldEmail
public boolean isFieldEmail()
-
isFieldType
public boolean isFieldType()
-
isFieldEditable
public boolean isFieldEditable()
-
showDescription
public boolean showDescription()
-
showHidden
public boolean showHidden()
-
showEnum
public boolean showEnum()
-
showTab
public boolean showTab()
-
showRequired
public boolean showRequired()
-
showMultivalued
public boolean showMultivalued()
-
showMultilingual
public boolean showMultilingual()
-
showAbstract
public boolean showAbstract()
-
showDataImage
public boolean showDataImage()
-
showSearchable
public boolean showSearchable()
-
showParentLink
public boolean showParentLink()
-
showDataSource
public boolean showDataSource()
-
showMaxRows
public boolean showMaxRows()
-
isFieldRequired
public boolean isFieldRequired()
-
isFieldHidden
public boolean isFieldHidden()
-
isFieldCompactDisplay
public boolean isFieldCompactDisplay()
-
isFieldML
public boolean isFieldML()
-
getFieldDefault
public java.lang.String getFieldDefault()
-
getFieldDefaultTextMap
public java.util.Map getFieldDefaultTextMap()
-
getFieldDescription
public java.lang.String getFieldDescription()
-
getFieldDescriptionMap
public java.util.Map getFieldDescriptionMap()
-
getFieldDescriptionType
public java.lang.String getFieldDescriptionType()
-
getFieldOnLabelMap
public java.util.Map getFieldOnLabelMap()
-
getFieldOffLabelMap
public java.util.Map getFieldOffLabelMap()
-
getFieldTab
public java.lang.String getFieldTab()
-
isFieldSearchable
public boolean isFieldSearchable()
-
isFieldWiki
public boolean isFieldWiki()
-
isFieldHtml
public boolean isFieldHtml()
-
isFieldCheckHtml
public boolean isFieldCheckHtml()
-
isFieldAbstract
public boolean isFieldAbstract()
-
isFieldDataImage
public boolean isFieldDataImage()
-
isFieldInline
public boolean isFieldInline()
-
isFieldOpenWindow
public boolean isFieldOpenWindow()
-
isFieldResize
public boolean isFieldResize()
-
getFieldResizeWidth
public int getFieldResizeWidth()
-
getFieldResizeHeight
public int getFieldResizeHeight()
-
isFieldDateOnly
public boolean isFieldDateOnly()
-
getFieldDateFormat
public java.lang.String getFieldDateFormat()
-
getFieldUnitPos
public java.lang.String getFieldUnitPos()
-
getSelectedCatSet
public java.util.TreeSet getSelectedCatSet()
-
isFieldParent
public boolean isFieldParent()
-
isFieldDisplayRoot
public boolean isFieldDisplayRoot()
-
getFieldEnumChooser
public java.lang.String getFieldEnumChooser()
-
getFieldCatChooser
public java.lang.String getFieldCatChooser()
-
getFieldMbrChooser
public java.lang.String getFieldMbrChooser()
-
getFieldGrpChooser
public java.lang.String getFieldGrpChooser()
-
getFieldPubChooser
public java.lang.String getFieldPubChooser()
-
getFieldTfChooser
public java.lang.String getFieldTfChooser()
-
getFieldGroupSet
public java.util.TreeSet getFieldGroupSet()
-
getFieldDataSource
public java.lang.String getFieldDataSource()
-
getFieldMaxRows
public int getFieldMaxRows()
-
getFieldSqlrQuery
public java.lang.String getFieldSqlrQuery()
-
getFieldSqlrParams
public java.lang.String getFieldSqlrParams()
-
getFieldDbrTable
public java.lang.String getFieldDbrTable()
-
getFieldDbrKeyCol
public java.lang.String getFieldDbrKeyCol()
-
getFieldDbrColumns
public java.lang.String getFieldDbrColumns()
-
getFieldDbrLabelCol
public java.lang.String getFieldDbrLabelCol()
-
getFieldDbrOrderBy
public java.lang.String getFieldDbrOrderBy()
-
getFieldSuperTypes
public java.lang.String getFieldSuperTypes()
-
getRootClassName
public java.lang.String getRootClassName()
Gives the root Class Name of the type- Returns:
- the rootClassName
- Since:
- JCMS-6.0.2
-
-