Class TypeEditorHandler

    • Constructor Detail

      • TypeEditorHandler

        public TypeEditorHandler()
    • 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 class JcmsFormHandler
      • 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 class JcmsFormHandler
        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 check
        inputName - 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