|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.admin.ApplicationPropertiesServiceImpl
public class ApplicationPropertiesServiceImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.admin.ApplicationPropertiesService |
---|
ApplicationPropertiesService.EditPermissionLevel |
Constructor Summary | |
---|---|
ApplicationPropertiesServiceImpl(ApplicationPropertiesStore applicationPropertiesStore,
com.atlassian.event.api.EventPublisher eventPublisher,
PermissionManager permissionManager,
JiraAuthenticationContext authenticationContext,
FeatureManager featureManager)
|
Method Summary | |
---|---|
protected ApplicationPropertyChangeEvent |
createEvent(ApplicationPropertyMetadata metadata,
String oldValue,
String newValue)
|
ApplicationProperty |
getApplicationProperty(String key)
Retrieves a property with the given key. |
List<ApplicationProperty> |
getEditableApplicationProperties(ApplicationPropertiesService.EditPermissionLevel permissionLevel,
String keyFilter)
Retrieves all properties that can be edited dynamically by the user. |
List<ApplicationProperty> |
getEditableApplicationProperties(String 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationPropertiesServiceImpl(ApplicationPropertiesStore applicationPropertiesStore, com.atlassian.event.api.EventPublisher eventPublisher, PermissionManager permissionManager, JiraAuthenticationContext authenticationContext, FeatureManager featureManager)
Method Detail |
---|
public List<ApplicationProperty> getEditableApplicationProperties(String permissionLevel, String keyFilter)
ApplicationPropertiesService
getEditableApplicationProperties
in interface ApplicationPropertiesService
permissionLevel
- the level EditPermissionLevel as a string the all returned values should containkeyFilter
- may be null. Filter the list of properties by which keys start with keyFilter
public boolean hasPermissionForLevel(String permissionLevel)
ApplicationPropertiesService
hasPermissionForLevel
in interface ApplicationPropertiesService
public List<ApplicationProperty> getEditableApplicationProperties(ApplicationPropertiesService.EditPermissionLevel permissionLevel, String keyFilter) throws DataAccessException
ApplicationPropertiesService
getEditableApplicationProperties
in interface ApplicationPropertiesService
permissionLevel
- the level EditPermissionLevel as a string the all returned values should containkeyFilter
- may be null. Filter the list of properties by which keys start with keyFilter
DataAccessException
- if there is a problem with the backing store.public ApplicationProperty getApplicationProperty(String key)
ApplicationPropertiesService
getApplicationProperty
in interface ApplicationPropertiesService
key
- the property's key.
public Validated<ApplicationProperty> setApplicationProperty(String key, String value)
ApplicationPropertiesService
setApplicationProperty
in interface ApplicationPropertiesService
key
- the key.value
- the string representation of the value.
protected ApplicationPropertyChangeEvent createEvent(ApplicationPropertyMetadata metadata, String oldValue, String newValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |