Class ManagedConfigurationItemBuilder
java.lang.Object
com.atlassian.jira.config.managedconfiguration.ManagedConfigurationItemBuilder
This builder can be used to modify the properties of an existing
ManagedConfigurationItem
.- Since:
- v5.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builder
(ManagedConfigurationItem source) setConfigurationItemAccessLevel
(ConfigurationItemAccessLevel configurationItemAccessLevel) Set theConfigurationItemAccessLevel
for this itemsetDescriptionI18nKey
(String descriptionI18nKey) Set the description keysetItemType
(ManagedConfigurationItemType itemType) setManaged
(boolean managed) Set whether this item is managed or notsetSource
(com.atlassian.plugin.Plugin plugin) Set the owner/manager of the item
-
Constructor Details
-
ManagedConfigurationItemBuilder
public ManagedConfigurationItemBuilder()
-
-
Method Details
-
builder
-
setId
-
setItemId
-
setItemType
-
setManaged
Set whether this item is managed or not- Parameters:
managed
- the flag- Returns:
- the builder
-
setConfigurationItemAccessLevel
public ManagedConfigurationItemBuilder setConfigurationItemAccessLevel(ConfigurationItemAccessLevel configurationItemAccessLevel) Set theConfigurationItemAccessLevel
for this item- Parameters:
configurationItemAccessLevel
- the level- Returns:
- the builder
-
setSource
Set the owner/manager of the item- Parameters:
plugin
- the plugin who owns/manages this item- Returns:
- the builder
-
setSource
-
setDescriptionI18nKey
Set the description key- Parameters:
descriptionI18nKey
- the key- Returns:
- the builder
-
build
- Returns:
- the newly constructed instance of
ManagedConfigurationItem
.
-