Class AccessTokenServiceRestClient
- java.lang.Object
-
- org.craftercms.commons.rest.AbstractRestClientBase
-
- org.craftercms.profile.services.impl.AbstractProfileRestClientBase
-
- org.craftercms.profile.services.impl.AccessTokenServiceRestClient
-
- All Implemented Interfaces:
AccessTokenService
public class AccessTokenServiceRestClient extends AbstractProfileRestClientBase implements AccessTokenService
REST client implementation ofAccessTokenService
.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.core.ParameterizedTypeReference<List<AccessToken>>
accessTokenListTypeRef
-
Fields inherited from class org.craftercms.profile.services.impl.AbstractProfileRestClientBase
accessTokenIdResolver
-
-
Constructor Summary
Constructors Constructor Description AccessTokenServiceRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessToken
createToken(AccessToken token)
void
deleteToken(String id)
List<AccessToken>
getAllTokens()
AccessToken
getToken(String id)
-
Methods inherited from class org.craftercms.profile.services.impl.AbstractProfileRestClientBase
createBaseParams, doGetForObject, doGetForObject, doGetForObject, doGetForObject, doPostForLocation, doPostForObject, doPostForUpload, getAbsoluteUrlWithAccessTokenIdParam, handleException, handleRestServiceException, setAccessTokenIdResolver
-
-
-
-
Field Detail
-
accessTokenListTypeRef
public static final org.springframework.core.ParameterizedTypeReference<List<AccessToken>> accessTokenListTypeRef
-
-
Method Detail
-
createToken
public AccessToken createToken(AccessToken token) throws ProfileException
- Specified by:
createToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
getToken
public AccessToken getToken(String id) throws ProfileException
- Specified by:
getToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
getAllTokens
public List<AccessToken> getAllTokens() throws ProfileException
- Specified by:
getAllTokens
in interfaceAccessTokenService
- Throws:
ProfileException
-
deleteToken
public void deleteToken(String id) throws ProfileException
- Specified by:
deleteToken
in interfaceAccessTokenService
- Throws:
ProfileException
-
-