@Component public class RestUserAccessTokenService extends Object
Constructor and Description |
---|
RestUserAccessTokenService(AccessTokenService accessTokenService,
BambooUserManager bambooUserManager,
PaginationService paginationService,
com.atlassian.struts.TextProvider textProvider) |
Modifier and Type | Method and Description |
---|---|
RestAccessToken |
createAccessToken(String userName,
String tokenName,
Set<AccessTokenPermission> permissions) |
RestPageModel<RestAccessToken> |
getUserTokens(String userName,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo) |
void |
revokeAccessToken(String userName,
String tokenId) |
@Inject public RestUserAccessTokenService(AccessTokenService accessTokenService, BambooUserManager bambooUserManager, PaginationService paginationService, com.atlassian.struts.TextProvider textProvider)
public RestPageModel<RestAccessToken> getUserTokens(String userName, PageRequest pageRequest, Expansion expansion, javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
NotFoundException
public void revokeAccessToken(String userName, String tokenId) throws NotFoundException, WebValidationException
public RestAccessToken createAccessToken(String userName, String tokenName, Set<AccessTokenPermission> permissions) throws WebValidationException
WebValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.