public class

ApplicationPropertiesServiceImpl

extends Object
implements ApplicationPropertiesService
java.lang.Object
   ↳ com.atlassian.jira.bc.admin.ApplicationPropertiesServiceImpl

Summary

Public Constructors
ApplicationPropertiesServiceImpl(ApplicationPropertiesStore applicationPropertiesStore, EventPublisher eventPublisher, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, FeatureManager featureManager)
Public Methods
ApplicationProperty getApplicationProperty(String key)
Retrieves a property with the given key.
List<ApplicationProperty> getEditableApplicationProperties(String permissionLevel, String keyFilter)
Retrieves all properties that can be edited dynamically by the user.
List<ApplicationProperty> getEditableApplicationProperties(ApplicationPropertiesService.EditPermissionLevel permissionLevel, String keyFilter)
Retrieves all properties that can be edited dynamically by the user.
boolean hasPermissionForLevel(String permissionLevel)
Checks if the user has the permission to fetch values at the permissionLevel requested.
Validated<ApplicationProperty> setApplicationProperty(String key, String value)
Stores the given value for the given key in the underlying data store.
Protected Methods
ApplicationPropertyChangeEvent createEvent(ApplicationPropertyMetadata metadata, String oldValue, String newValue)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.admin.ApplicationPropertiesService

Public Constructors

public ApplicationPropertiesServiceImpl (ApplicationPropertiesStore applicationPropertiesStore, EventPublisher eventPublisher, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, FeatureManager featureManager)

Public Methods

public ApplicationProperty getApplicationProperty (String key)

Retrieves a property with the given key.

Parameters
key the property's key.
Returns
  • the property or null if there is no property with that key.

public List<ApplicationProperty> getEditableApplicationProperties (String permissionLevel, String keyFilter)

Retrieves all properties that can be edited dynamically by the user.

Parameters
permissionLevel the level EditPermissionLevel as a string the all returned values should contain
keyFilter may be null. Filter the list of properties by which keys start with keyFilter
Returns
  • the properties.

public List<ApplicationProperty> getEditableApplicationProperties (ApplicationPropertiesService.EditPermissionLevel permissionLevel, String keyFilter)

Retrieves all properties that can be edited dynamically by the user.

Parameters
permissionLevel the level EditPermissionLevel as a string the all returned values should contain
keyFilter may be null. Filter the list of properties by which keys start with keyFilter
Returns
  • the properties.

public boolean hasPermissionForLevel (String permissionLevel)

Checks if the user has the permission to fetch values at the permissionLevel requested.

Returns
  • true if they are allowed the list

public Validated<ApplicationProperty> setApplicationProperty (String key, String value)

Stores the given value for the given key in the underlying data store.

Parameters
key the key.
value the string representation of the value.
Returns
  • the property in full that corresponds to the new state of the property.

Protected Methods

protected ApplicationPropertyChangeEvent createEvent (ApplicationPropertyMetadata metadata, String oldValue, String newValue)