Class OAuth2ResourceImpl
- java.lang.Object
-
- com.artisol.teneo.manager.client.resources.AbstractResource
-
- com.artisol.teneo.manager.client.resources.OAuth2ResourceImpl
-
- All Implemented Interfaces:
com.artisol.teneo.manager.api.resources.OAuth2Resource
public class OAuth2ResourceImpl extends AbstractResource implements com.artisol.teneo.manager.api.resources.OAuth2Resource
-
-
Field Summary
-
Fields inherited from interface com.artisol.teneo.manager.api.resources.OAuth2Resource
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CLIENTID, DELETE_API_TOKENS_PATH, DELETE_API_TOKENS_SUMMARY, DELETE_CLIENT_PATH, DELETE_CLIENT_SUMMARY, ERROR, ERROR_DESCRIPTION, EXPIRES_IN, GET_ACCESS_TOKENS_PATH, GET_ACCESS_TOKENS_SUMMARY, GET_API_TOKEN_PATH, GET_API_TOKEN_SUMMARY, GET_API_TOKENS_PATH, GET_API_TOKENS_SUMMARY, GET_CLIENT_PATH, GET_CLIENT_SUMMARY, GET_CLIENT_TYPES_PATH, GET_CLIENT_TYPES_SUMMARY, GET_CLIENTS_PATH, GET_CLIENTS_SUMMARY, GET_DELEGATED_NOTIFICATION_PATH, GET_DELEGATED_NOTIFICATION_SUMMARY, GET_DELEGATED_SAML2_METADATA_PATH, GET_DELEGATED_SAML2_METADATA_PRODUCES, GET_DELEGATED_SAML2_METADATA_SUMMARY, GET_DELEGATED_SAML2_PATH, GET_DELEGATED_SAML2_PRODUCES, GET_DELEGATED_START_LOGIN_URL_PATH, GET_DELEGATED_START_LOGIN_URL_PRODUCES, GET_DELEGATED_START_LOGIN_URL_SUMMARY, GET_REFRESH_TOKENS_PATH, GET_REFRESH_TOKENS_SUMMARY, GET_STUDIO_ADMIN_MAINTENANCE_DAILY_STATUS_PATH, GET_STUDIO_ADMIN_MAINTENANCE_DAILY_STATUS_SUMMARY, GET_STUDIO_ADMIN_MAINTENANCE_HOURLY_STATUS_PATH, GET_STUDIO_ADMIN_MAINTENANCE_HOURLY_STATUS_SUMMARY, GET_TOKEN_INFO_PATH, GET_TOKEN_INFO_SUMMARY, GET_TOKENS_TYPES_PATH, GET_TOKENS_TYPES_SUMMARY, GRANT_TYPE, PASSWORD, PATH, POST_API_TOKENS_PATH, POST_API_TOKENS_SUMMARY, POST_CLIENT_PATH, POST_CLIENT_SUMMARY, POST_DELEGATED_SAML2_CONSUMES, POST_DELEGATED_SAML2_PATH, POST_DELEGATED_SAML2_PRODUCES, POST_REVOKE_CONSUMES, POST_REVOKE_PATH, POST_REVOKE_SUMMARY, POST_STUDIO_ADMIN_MAINTENANCE_DAILY_BEGIN_PATH, POST_STUDIO_ADMIN_MAINTENANCE_DAILY_BEGIN_SUMMARY, POST_STUDIO_ADMIN_MAINTENANCE_HOURLY_BEGIN_PATH, POST_STUDIO_ADMIN_MAINTENANCE_HOURLY_BEGIN_SUMMARY, POST_TOKEN_CONSUMES, POST_TOKEN_DESCRIPTION, POST_TOKEN_PATH, POST_TOKEN_SUMMARY, PUT_API_TOKENS_PATH, PUT_API_TOKENS_SUMMARY, PUT_CLIENT_PATH, PUT_CLIENT_SUMMARY, REFRESH_TOKEN, REQUEST_RETRY_COUNT, REQUEST_RETRY_DELAY, RESPONSE_TYPE, STATE, TOKEN, USERNAME
-
-
Constructor Summary
Constructors Constructor Description OAuth2ResourceImpl(javax.ws.rs.client.WebTarget pWebTarget, org.slf4j.Marker pMarker)Constructs aOAuth2ResourceImplobject used to call the OAuth2 interface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginStudioDailyMaintenance(UUID pClientId)voidbeginStudioHourlyMaintenance(UUID pClientId)com.artisol.teneo.manager.api.models.oauth2.ApiTokencreateApiToken(com.artisol.teneo.manager.api.models.oauth2.ApiToken pApiToken)com.artisol.teneo.manager.api.models.oauth2.OAuth2ClientcreateClient(com.artisol.teneo.manager.api.models.oauth2.OAuth2Client pClient)voiddeleteApiToken(String pTokenId)voiddeleteClient(UUID pClientId)List<com.artisol.teneo.manager.api.models.oauth2.AccessToken>getAccessTokens()com.artisol.teneo.manager.api.models.oauth2.ApiTokengetApiToken(String pApiTokenId)List<com.artisol.teneo.manager.api.models.oauth2.ApiToken>getApiTokens()com.artisol.teneo.manager.api.models.oauth2.OAuth2ClientgetClient(UUID pClientId)List<com.artisol.teneo.manager.api.models.oauth2.OAuth2Client>getClients()List<String>getClientTypes()List<com.artisol.teneo.manager.api.models.oauth2.RefreshToken>getRefreshTokens()com.artisol.teneo.manager.api.models.oauth2.MaintenanceTaskStatusgetStudioDailyMaintenanceStatus(UUID pClientId)com.artisol.teneo.manager.api.models.oauth2.MaintenanceTaskStatusgetStudioHourlyMaintenanceStatus(UUID pClientId)com.artisol.teneo.manager.api.models.oauth2.TokenInfogetTokenInfo()List<String>getTokenTypes()com.artisol.teneo.manager.api.models.oauth2.ApiTokenupdateApiToken(String pApiTokenId, com.artisol.teneo.manager.api.models.oauth2.ApiToken pApiToken)com.artisol.teneo.manager.api.models.oauth2.OAuth2ClientupdateClient(UUID pClientId, com.artisol.teneo.manager.api.models.oauth2.OAuth2Client pClient)
-
-
-
Constructor Detail
-
OAuth2ResourceImpl
public OAuth2ResourceImpl(javax.ws.rs.client.WebTarget pWebTarget, org.slf4j.Marker pMarker)Constructs aOAuth2ResourceImplobject used to call the OAuth2 interface- Parameters:
pWebTarget- AWebTargetinstance properly configuredpMarker- AMarkerto fine tuning logging
-
-
Method Detail
-
getAccessTokens
public List<com.artisol.teneo.manager.api.models.oauth2.AccessToken> getAccessTokens() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getAccessTokensin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getTokenInfo
public com.artisol.teneo.manager.api.models.oauth2.TokenInfo getTokenInfo() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException- Specified by:
getTokenInfoin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getClients
public List<com.artisol.teneo.manager.api.models.oauth2.OAuth2Client> getClients() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getClientsin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getClient
public com.artisol.teneo.manager.api.models.oauth2.OAuth2Client getClient(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getClientin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
createClient
public com.artisol.teneo.manager.api.models.oauth2.OAuth2Client createClient(com.artisol.teneo.manager.api.models.oauth2.OAuth2Client pClient) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException- Specified by:
createClientin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
updateClient
public com.artisol.teneo.manager.api.models.oauth2.OAuth2Client updateClient(UUID pClientId, com.artisol.teneo.manager.api.models.oauth2.OAuth2Client pClient) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
updateClientin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
deleteClient
public void deleteClient(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
deleteClientin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getTokenTypes
public List<String> getTokenTypes() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getTokenTypesin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getClientTypes
public List<String> getClientTypes() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getClientTypesin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getRefreshTokens
public List<com.artisol.teneo.manager.api.models.oauth2.RefreshToken> getRefreshTokens() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getRefreshTokensin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getApiTokens
public List<com.artisol.teneo.manager.api.models.oauth2.ApiToken> getApiTokens() throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getApiTokensin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
createApiToken
public com.artisol.teneo.manager.api.models.oauth2.ApiToken createApiToken(com.artisol.teneo.manager.api.models.oauth2.ApiToken pApiToken) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException- Specified by:
createApiTokenin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
updateApiToken
public com.artisol.teneo.manager.api.models.oauth2.ApiToken updateApiToken(String pApiTokenId, com.artisol.teneo.manager.api.models.oauth2.ApiToken pApiToken) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
updateApiTokenin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
deleteApiToken
public void deleteApiToken(String pTokenId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
deleteApiTokenin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getApiToken
public com.artisol.teneo.manager.api.models.oauth2.ApiToken getApiToken(String pApiTokenId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getApiTokenin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
beginStudioDailyMaintenance
public void beginStudioDailyMaintenance(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
beginStudioDailyMaintenancein interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getStudioDailyMaintenanceStatus
public com.artisol.teneo.manager.api.models.oauth2.MaintenanceTaskStatus getStudioDailyMaintenanceStatus(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getStudioDailyMaintenanceStatusin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
beginStudioHourlyMaintenance
public void beginStudioHourlyMaintenance(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
beginStudioHourlyMaintenancein interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
getStudioHourlyMaintenanceStatus
public com.artisol.teneo.manager.api.models.oauth2.MaintenanceTaskStatus getStudioHourlyMaintenanceStatus(UUID pClientId) throws com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
- Specified by:
getStudioHourlyMaintenanceStatusin interfacecom.artisol.teneo.manager.api.resources.OAuth2Resource- Throws:
com.artisol.teneo.commons.utilities.api.exceptions.ResourceException
-
-