Class OAuth2ResourceImpl

  • All Implemented Interfaces:
    com.artisol.teneo.manager.api.resources.OAuth2Resource

    public class OAuth2ResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.manager.api.resources.OAuth2Resource
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.artisol.teneo.manager.api.resources.OAuth2Resource

        com.artisol.teneo.manager.api.resources.OAuth2Resource.GrantType, com.artisol.teneo.manager.api.resources.OAuth2Resource.ResponseType
    • 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 a OAuth2ResourceImpl object used to call the OAuth2 interface
    • Constructor Detail

      • OAuth2ResourceImpl

        public OAuth2ResourceImpl​(javax.ws.rs.client.WebTarget pWebTarget,
                                  org.slf4j.Marker pMarker)
        Constructs a OAuth2ResourceImpl object used to call the OAuth2 interface
        Parameters:
        pWebTarget - A WebTarget instance properly configured
        pMarker - A Marker to 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:
        getAccessTokens in interface com.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:
        getTokenInfo in interface com.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:
        getClients in interface com.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:
        getClient in interface com.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:
        createClient in interface com.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:
        updateClient in interface com.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:
        deleteClient in interface com.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:
        getTokenTypes in interface com.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:
        getClientTypes in interface com.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:
        getRefreshTokens in interface com.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:
        getApiTokens in interface com.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:
        createApiToken in interface com.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:
        updateApiToken in interface com.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:
        deleteApiToken in interface com.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:
        getApiToken in interface com.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:
        beginStudioDailyMaintenance in interface com.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:
        getStudioDailyMaintenanceStatus in interface com.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:
        beginStudioHourlyMaintenance in interface com.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:
        getStudioHourlyMaintenanceStatus in interface com.artisol.teneo.manager.api.resources.OAuth2Resource
        Throws:
        com.artisol.teneo.commons.utilities.api.exceptions.ResourceException