Class BasePropertiesBean

  • All Implemented Interfaces:
    StatefulObject
    Direct Known Subclasses:
    RunnerPropertiesBean

    public class BasePropertiesBean
    extends RememberState
    This form bean contains a map of properties and tracks its state. It is being used in several forms for representing properties of various plugins, like VCS support and build runners.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasePropertiesBean​(java.util.Map<java.lang.String,​java.lang.String> properties)
      Constructs new bean from the specified map of properties
      BasePropertiesBean​(java.util.Map<java.lang.String,​java.lang.String> properties, java.util.Map<java.lang.String,​java.lang.String> defaultProperties)
      Constructs new bean from specified map of current properties and default properties
    • Constructor Detail

      • BasePropertiesBean

        public BasePropertiesBean​(@Nullable
                                  java.util.Map<java.lang.String,​java.lang.String> properties)
        Constructs new bean from the specified map of properties
        Parameters:
        properties - map of properties
      • BasePropertiesBean

        public BasePropertiesBean​(@NotNull
                                  java.util.Map<java.lang.String,​java.lang.String> properties,
                                  @NotNull
                                  java.util.Map<java.lang.String,​java.lang.String> defaultProperties)
        Constructs new bean from specified map of current properties and default properties
        Parameters:
        properties - current (actual) properties
        defaultProperties - default properties
        Since:
        8.1
    • Method Detail

      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Returns map of properties stored in this bean.
        Returns:
        map of properties stored in this bean.
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.String value)
        Sets specified value to a property with specified name.
        Parameters:
        name - name of the property
        value - value of the property
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Overwrites all of the properties stored in this bean with specified map.
        Parameters:
        properties - map of the properties
      • clearProperties

        public void clearProperties()
        Clears properties.
      • getEncryptedPropertyValue

        public java.lang.String getEncryptedPropertyValue​(java.lang.String propertyName)
        Returns encrypted form of the specified property.
        Parameters:
        propertyName - name of the property
        Returns:
        encrypted value of the property
      • getDefaultProperties

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getDefaultProperties()
        Returns:
        default values for properties
        Since:
        8.1