Class PropertiesEditorHandler

    • Field Detail


        public static final java.lang.String AUTHORIZED_PASSWORD_PROPERTIES_PROP
        Name of the property in which other properties name can be declared to authorized their edition in the advanced editor even if they are sensitive properties
        See Also:
        Constant Field Values
      • allProperties

        public static final JProperties allProperties
      • cacheData_fileSet

        public static final java.util.Set<> cacheData_fileSet
      • cacheData_lastModifiedTime

        public static final java.util.Map<,​java.lang.Long> cacheData_lastModifiedTime
      • originalPropertiesPerFileLoaded

        public static final java.util.Map<,​JProperties> originalPropertiesPerFileLoaded
      • modifiedPropertiesCache

        public static final java.util.Map<java.lang.String,​java.lang.Boolean> modifiedPropertiesCache
      • authorizedPasswordProperties

        public static final java.util.Set<java.lang.String> authorizedPasswordProperties
    • Constructor Detail

      • PropertiesEditorHandler

        public PropertiesEditorHandler()
    • Method Detail

      • processAction

        public boolean processAction()
        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.

        processAction in class JcmsFormHandler
        false if no redirection is needed, true otherwise
        Throws: - IO Exception
      • getUnsuffixedProperty

        public static java.lang.String getUnsuffixedProperty​(java.lang.String propKey)
        Return the unsuffixed property *if this propery uses a custom editor and it must be stored without suffix*. Otherwise return null !
        propKey - a propert key
        unsuffixed property or null
      • getFilteredProperties

        public java.util.Map<java.lang.String,​java.lang.String> getFilteredProperties()
        Retrieve the properties to display (with filter applied)
        a ordered map (never return null)
      • getOriginalPropertiesPerFileLoaded

        public static java.util.Map<,​JProperties> getOriginalPropertiesPerFileLoaded()
        Retrieve a Map of properties for each file that was loaded in the channel properties
        a map, never retur null
      • isPropertyModified

        public static boolean isPropertyModified​(java.lang.String propKey)
        Check if the specified property value has been modified
        propKey - property key to check
        true if property was modified, false otherwise
      • isMainPluginProperty

        public static boolean isMainPluginProperty​(java.lang.String propKey)
        Check if the specified property was specified in the main plugin properties.
        propKey - property key to check
        true if property is in main plugin plugin.prop, false otherwise
      • isDisplayableProperty

        public static boolean isDisplayableProperty​(java.lang.String propKey)
        Check if the specified property value can be displayed to user.
        propKey - property key to check
        true if property can be displayed, false otherwise
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)
      • isOnlyModifiedProp

        public boolean isOnlyModifiedProp()
      • setOnlyModifiedProp

        public void setOnlyModifiedProp​(boolean onlyModifiedProp)
      • isIncludeLangProp

        public boolean isIncludeLangProp()
      • setIncludeLangProp

        public void setIncludeLangProp​(boolean includeLangProp)
      • setPropKeys

        public void setPropKeys​(java.lang.String... propKeys)
      • getPropKeys

        public java.lang.String[] getPropKeys()
      • setPropValues

        public void setPropValues​(java.lang.String... propValues)
      • getPropValues

        public java.lang.String[] getPropValues()
      • setOpSave

        public void setOpSave​(java.lang.String opSave)