Class PropertiesEditorHandler

    • Field Detail

      • AUTHORIZED_PASSWORD_PROPERTIES_PROP

        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
        Since:
        JCMS-7431
        See Also:
        Constant Field Values
      • allProperties

        public static final JProperties allProperties
      • cacheData_fileSet

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

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

        public static final java.util.Map<java.io.File,​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()
                              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
      • 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 !
        Parameters:
        propKey - a propert key
        Returns:
        unsuffixed property or null
      • getFilteredProperties

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

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

        public static boolean isPropertyModified​(java.lang.String propKey)
        Check if the specified property value has been modified
        Parameters:
        propKey - property key to check
        Returns:
        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.
        Parameters:
        propKey - property key to check
        Returns:
        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.
        Parameters:
        propKey - property key to check
        Returns:
        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)