public class UserPropertyResource extends Object
Modifier | Constructor and Description |
---|---|
protected |
UserPropertyResource(UserPropertyService userPropertyService,
JiraAuthenticationContext authenticationContext,
JiraBaseUrls jiraBaseUrls,
I18nHelper i18n,
ResponseFactory responseFactory,
UserManager userManager,
SelfLinkBuilder selfLinkBuilder) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteProperty(String userKey,
String username,
String propertyKey)
Removes the property from the user identified by the key or by the id.
|
javax.ws.rs.core.Response |
getPropertiesKeys(String userKey,
String username)
Returns the keys of all properties for the user identified by the key or by the id.
|
javax.ws.rs.core.Response |
getProperty(String userKey,
String username,
String propertyKey)
Returns the value of the property with a given key from the user identified by the key or by the id.
|
javax.ws.rs.core.Response |
setProperty(String userKey,
String username,
String propertyKey,
javax.servlet.http.HttpServletRequest request)
Sets the value of the specified user's property.
|
protected UserPropertyResource(UserPropertyService userPropertyService, JiraAuthenticationContext authenticationContext, JiraBaseUrls jiraBaseUrls, I18nHelper i18n, ResponseFactory responseFactory, UserManager userManager, SelfLinkBuilder selfLinkBuilder)
public javax.ws.rs.core.Response getPropertiesKeys(String userKey, String username)
username
- username of the user whose properties are to be returneduserKey
- key of the user whose properties are to be returnedpublic javax.ws.rs.core.Response setProperty(String userKey, String username, String propertyKey, @Context javax.servlet.http.HttpServletRequest request)
You can use this resource to store a custom data against the user identified by the key or by the id. The user who stores the data is required to have permissions to administer the user.
username
- username of the user whose property is to be setuserKey
- key of the user whose property is to be setpropertyKey
- the key of the user's property. The maximum length of the key is 255 bytes.request
- the request containing value of the user'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.public javax.ws.rs.core.Response getProperty(String userKey, String username, String propertyKey)
username
- username of the user whose property is to be returneduserKey
- key of the user whose property is to be returnedEntityPropertyBean
.public javax.ws.rs.core.Response deleteProperty(String userKey, String username, String propertyKey)
username
- username of the user whose property is to be removeduserKey
- key of the user whose property is to be removedCopyright © 2002-2021 Atlassian. All Rights Reserved.