com.atlassian.jira.rest.v2.admin
Class ApplicationPropertiesResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.admin.ApplicationPropertiesResource

public class ApplicationPropertiesResource
extends Object


Nested Class Summary
static class ApplicationPropertiesResource.Property
           
 
Constructor Summary
ApplicationPropertiesResource(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ApplicationPropertiesService applicationPropertiesService)
           
 
Method Summary
 javax.ws.rs.core.Response getProperty(String key, String permissionLevel, String keyFilter)
          Returns an application property.
 javax.ws.rs.core.Response setProperty(String key, String value)
           
 javax.ws.rs.core.Response setPropertyViaRestfulTable(String key, ApplicationPropertyBean applicationPropertyBean)
          Modify an application property via PUT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationPropertiesResource

public ApplicationPropertiesResource(JiraAuthenticationContext authenticationContext,
                                     PermissionManager permissionManager,
                                     ApplicationPropertiesService applicationPropertiesService)
Method Detail

getProperty

public javax.ws.rs.core.Response getProperty(String key,
                                             String permissionLevel,
                                             String keyFilter)
Returns an application property.

Parameters:
key - a String containing the property key
permissionLevel - when fetching a list specifies the permission level of all items in the list see ApplicationPropertiesService.EditPermissionLevel
keyFilter - when fetching a list allows the list to be filtered by the property's start of key e.g. "jira.lf.*" whould fetch only those permissions that are editable and whose keys start with "jira.lf.". This is a regex.
Returns:
an application property.

setPropertyViaRestfulTable

public javax.ws.rs.core.Response setPropertyViaRestfulTable(String key,
                                                            ApplicationPropertyBean applicationPropertyBean)
Modify an application property via PUT. The "value" field present in the PUT will override thee existing value.


setProperty

public javax.ws.rs.core.Response setProperty(String key,
                                             String value)


Copyright © 2002-2014 Atlassian. All Rights Reserved.