jetbrains.buildServer.controllers
Class BasePropertiesBean

java.lang.Object
  extended by jetbrains.buildServer.controllers.RememberState
      extended by jetbrains.buildServer.controllers.BasePropertiesBean
All Implemented Interfaces:
StatefulObject

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
BasePropertiesBean(java.util.Map<java.lang.String,java.lang.String> properties)
          Constructs new bean from the specified map of properties
 
Method Summary
 void clearProperties()
          Clears properties.
 java.lang.String getEncryptedPropertyValue(java.lang.String propertyName)
          Returns encrypted form of the specified property.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Returns map of properties stored in this bean.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Overwrites all of the properties stored in this bean with specified map.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets specified value to a property with specified name.
 
Methods inherited from class jetbrains.buildServer.controllers.RememberState
findField, forgetState, isFieldModified, isStateModified, rememberState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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