Class RestUserAccessTokenService
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.service.RestUserAccessTokenService
-
@Component public class RestUserAccessTokenService extends Object
-
-
Constructor Summary
Constructors Constructor Description RestUserAccessTokenService(AccessTokenService accessTokenService, BambooUserManager bambooUserManager, PaginationService paginationService, com.atlassian.struts.TextProvider textProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestAccessToken
createAccessToken(String userName, String tokenName, Set<AccessTokenPermission> permissions, Integer daysUntilExpiry)
RestPageModel<RestAccessToken>
getUserTokens(String userName, PageRequest pageRequest, Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)
void
revokeAccessToken(String userName, String tokenId)
-
-
-
Constructor Detail
-
RestUserAccessTokenService
@Inject public RestUserAccessTokenService(AccessTokenService accessTokenService, BambooUserManager bambooUserManager, PaginationService paginationService, com.atlassian.struts.TextProvider textProvider)
-
-
Method Detail
-
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
-
-