@Internal public interface AccessTokenDao extends BambooObjectDao<MutableAccessToken>
Modifier and Type | Method and Description |
---|---|
long |
countByUserName(String userName) |
long |
countTokensWithPermission(AccessTokenPermission accessTokenPermission)
Count number of access tokens with given permission
|
void |
deleteByUserName(String userName)
Delete all user's tokens
|
Optional<MutableAccessToken> |
findByTokenId(String tokenId) |
List<MutableAccessToken> |
findByUserName(String userName)
Get all user's tokens
|
long |
scrollTokensForExport(Consumer<MutableAccessToken> exportXmlConsumer)
Scroll through all AccessToken records and pass them to consumer
|
boolean |
tokenWithNameAndUserNameExists(String userName,
String tokenName)
Check if user has token with name
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@NotNull Optional<MutableAccessToken> findByTokenId(String tokenId)
tokenId
- Optional.empty()
@NotNull List<MutableAccessToken> findByUserName(String userName)
userName
- void deleteByUserName(String userName)
userName
- long countByUserName(String userName)
userName
- boolean tokenWithNameAndUserNameExists(@NotNull String userName, @NotNull String tokenName)
userName
- tokenName
- long scrollTokensForExport(Consumer<MutableAccessToken> exportXmlConsumer)
long countTokensWithPermission(@NotNull AccessTokenPermission accessTokenPermission)
accessTokenPermission
- Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.