public class ProjectPropertyResource extends Object
Constructor and Description |
---|
ProjectPropertyResource(ProjectPropertyService projectPropertyService,
JiraAuthenticationContext authContext,
JiraBaseUrls jiraBaseUrls,
I18nHelper i18n) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteProperty(String projectIdOrKey,
String propertyKey)
Removes the property from the project identified by the key or by the id.
|
javax.ws.rs.core.Response |
getPropertiesKeys(String projectIdOrKey)
Returns the keys of all properties for the project identified by the key or by the id.
|
javax.ws.rs.core.Response |
getProperty(String projectIdOrKey,
String propertyKey)
Returns the value of the property with a given key from the project identified by the key or by the id.
|
javax.ws.rs.core.Response |
setProperty(String projectIdOrKey,
String propertyKey,
javax.servlet.http.HttpServletRequest request)
Sets the value of the specified project's property.
|
public ProjectPropertyResource(ProjectPropertyService projectPropertyService, JiraAuthenticationContext authContext, JiraBaseUrls jiraBaseUrls, I18nHelper i18n)
@ExperimentalApi public javax.ws.rs.core.Response getPropertiesKeys(String projectIdOrKey)
projectIdOrKey
- the project from which keys will be returned.@ExperimentalApi public javax.ws.rs.core.Response setProperty(String projectIdOrKey, String propertyKey, @Context javax.servlet.http.HttpServletRequest request)
You can use this resource to store a custom data against the project identified by the key or by the id. The user who stores the data is required to have permissions to administer the project.
projectIdOrKey
- the project on which the property will be set.propertyKey
- the key of the project's property. The maximum length of the key is 255 bytes.request
- the request containing value of the project's property. The value has to a valid, non-empty JSON conforming
to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.@ExperimentalApi public javax.ws.rs.core.Response getProperty(String projectIdOrKey, String propertyKey)
projectIdOrKey
- the project from which the property will be returned.propertyKey
- the key of the property to return.EntityPropertyBean
.@ExperimentalApi public javax.ws.rs.core.Response deleteProperty(String projectIdOrKey, String propertyKey)
projectIdOrKey
- the project from which the property will be removed.propertyKey
- the key of the property to remove.Copyright © 2002-2022 Atlassian. All Rights Reserved.