Class RestUserAccessTokenService
java.lang.Object
com.atlassian.bamboo.plugins.rest.service.RestUserAccessTokenService
-
Constructor Summary
ConstructorDescriptionRestUserAccessTokenService
(AccessTokenService accessTokenService, BambooUserManager bambooUserManager, PaginationService paginationService, com.atlassian.struts.TextProvider textProvider) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccessToken
(String userName, String tokenName, Set<AccessTokenPermission> permissions, Integer daysUntilExpiry) getUserTokens
(String userName, PageRequest pageRequest, Expansion expansion, javax.ws.rs.core.UriInfo uriInfo) void
revokeAccessToken
(String userName, String tokenId)
-
Constructor Details
-
RestUserAccessTokenService
@Inject public RestUserAccessTokenService(AccessTokenService accessTokenService, BambooUserManager bambooUserManager, PaginationService paginationService, com.atlassian.struts.TextProvider textProvider)
-
-
Method Details
-
getUserTokens
public RestPageModel<RestAccessToken> getUserTokens(String userName, PageRequest pageRequest, Expansion expansion, javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException - Throws:
NotFoundException
-
revokeAccessToken
public void revokeAccessToken(String userName, String tokenId) throws NotFoundException, WebValidationException -
createAccessToken
public RestAccessToken createAccessToken(String userName, String tokenName, Set<AccessTokenPermission> permissions, Integer daysUntilExpiry) throws WebValidationException - Throws:
WebValidationException
-