Class BasePropertiesBean
- java.lang.Object
-
- jetbrains.buildServer.controllers.RememberState
-
- jetbrains.buildServer.controllers.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 propertiesBasePropertiesBean(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearProperties()
Clears properties.java.util.Map<java.lang.String,java.lang.String>
getDefaultProperties()
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, getField, getRememberedState, isFieldModified, isStateModified, normalizeLineFeeds, rememberState
-
-
-
-
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) propertiesdefaultProperties
- 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 propertyvalue
- 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
-
-