Class BasePropertiesBean
- java.lang.Object
-
- jetbrains.buildServer.controllers.RememberState
-
- jetbrains.buildServer.controllers.BasePropertiesBean
-
- All Implemented Interfaces:
StatefulObject
- Direct Known Subclasses:
OAuthConnectionBean
,OptionPropertiesBean
,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(Map<String,String> properties)
Constructs new bean from the specified map of propertiesBasePropertiesBean(Map<String,String> properties, Map<String,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.Map<String,String>
getDefaultProperties()
String
getEncryptedPropertyValue(String propertyName)
Returns encrypted form of the specified property.Map<String,String>
getProperties()
Returns map of properties stored in this bean.void
setProperties(Map<String,String> properties)
Overwrites all of the properties stored in this bean with specified map.void
setProperty(String name, 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 Map<String,String> properties)
Constructs new bean from the specified map of properties- Parameters:
properties
- map of properties
-
BasePropertiesBean
public BasePropertiesBean(@NotNull Map<String,String> properties, @NotNull Map<String,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 Map<String,String> getProperties()
Returns map of properties stored in this bean.- Returns:
- map of properties stored in this bean.
-
setProperty
public void setProperty(String name, 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(Map<String,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 String getEncryptedPropertyValue(String propertyName)
Returns encrypted form of the specified property.- Parameters:
propertyName
- name of the property- Returns:
- encrypted value of the property
-
-