Class PropertiesEditorHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class PropertiesEditorHandler extends JcmsFormHandler
Handler providing property edition
Since:
JCMS-6735
  • Field Details

    • AUTHORIZED_PASSWORD_PROPERTIES_PROP

      public static final 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:
    • cacheData_fileSet

      public static final Set<File> cacheData_fileSet
    • cacheData_lastModifiedTime

      public static final Map<File,Long> cacheData_lastModifiedTime
    • originalPropertiesPerFileLoaded

      public static final Map<File,JProperties> originalPropertiesPerFileLoaded
    • modifiedPropertiesCache

      public static final Map<String,Boolean> modifiedPropertiesCache
    • authorizedPasswordProperties

      public static final Set<String> authorizedPasswordProperties
  • Constructor Details

    • PropertiesEditorHandler

      public PropertiesEditorHandler()
  • Method Details

    • processAction

      public boolean processAction() throws 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:
      IOException - IO Exception
    • getUnsuffixedProperty

      public static String getUnsuffixedProperty(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 Map<String,String> getFilteredProperties()
      Retrieve the properties to display (with filter applied)
      Returns:
      a ordered map (never return null)
    • getOriginalPropertiesPerFileLoaded

      public static Map<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(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(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(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 String getText()
    • setText

      public void setText(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(String... propKeys)
    • getPropKeys

      public String[] getPropKeys()
    • setPropValues

      public void setPropValues(String... propValues)
    • getPropValues

      public String[] getPropValues()
    • setOpSave

      public void setOpSave(String opSave)