public final class ModulePersonalAccessTokens.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAPersonalAccessToken> |
create(CMAPersonalAccessToken token,
CMACallback<CMAPersonalAccessToken> callback)
Create a new personal access token.
|
CMACallback<CMAArray<CMAPersonalAccessToken>> |
fetchAll(CMACallback<CMAArray<CMAPersonalAccessToken>> callback)
Fetch all personal access tokens.
|
CMACallback<CMAArray<CMAPersonalAccessToken>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAPersonalAccessToken>> callback)
Fetch a list of specific personal access tokens.
|
CMACallback<CMAPersonalAccessToken> |
fetchOne(java.lang.String tokenId,
CMACallback<CMAPersonalAccessToken> callback)
Fetch only one personal access token.
|
CMACallback<CMAPersonalAccessToken> |
revoke(CMAPersonalAccessToken token,
CMACallback<CMAPersonalAccessToken> callback)
Revoke a personal access token.
|
public CMACallback<CMAArray<CMAPersonalAccessToken>> fetchAll(CMACallback<CMAArray<CMAPersonalAccessToken>> callback)
callback
- the callback to be informed about success or failure.public CMACallback<CMAArray<CMAPersonalAccessToken>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAPersonalAccessToken>> callback)
query
- the definition on what to look for.callback
- the callback to be informed about success or failure.public CMACallback<CMAPersonalAccessToken> fetchOne(java.lang.String tokenId, CMACallback<CMAPersonalAccessToken> callback)
tokenId
- the id of the token to be fetched.callback
- the callback to be informed about success or failure.public CMACallback<CMAPersonalAccessToken> create(CMAPersonalAccessToken token, CMACallback<CMAPersonalAccessToken> callback)
token
- the token to be created.callback
- the callback to be informed about success or failure.public CMACallback<CMAPersonalAccessToken> revoke(CMAPersonalAccessToken token, CMACallback<CMAPersonalAccessToken> callback)
token
- the token to be revoked.callback
- the callback to be informed about success or failure.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.