Class PersonalAccessTokenConfig

  • All Implemented Interfaces:
    com.adobe.guides.konnect.definitions.core.config.Config, com.adobe.guides.konnect.definitions.core.urlResource.UrlResources

    public class PersonalAccessTokenConfig
    extends com.adobe.guides.konnect.definitions.core.config.RestWrapperConfig
    This class provides an implementation of the RestWrapperConfig interface. It is a REST-based config that uses a personal access token.
    Since:
    1.0.0
    Author:
    Adobe
    • Constructor Detail

      • PersonalAccessTokenConfig

        public PersonalAccessTokenConfig​(String organization,
                                         String token,
                                         List<com.adobe.guides.konnect.definitions.core.urlResource.RestResourceDao> resourceList)
    • Method Detail

      • getName

        public String getName()
        Returns the unique name for this config.
        Returns:
        a String which is the name of this config.
      • getOrganization

        public String getOrganization()
        Returns the organisation name for this config.
        Returns:
        a String which is the organisation name of this config.
      • getToken

        public String getToken()
        Returns the personal access token for this config.
        Returns:
        a String which is the personal access token of this config.
      • setResourceList

        public void setResourceList​(List<com.adobe.guides.konnect.definitions.core.urlResource.RestResourceDao> resourceList)
                             throws com.adobe.guides.konnect.definitions.core.exception.KonnectException
        Sets the resources to be used for this config.
        Parameters:
        resourceList - a List of RestResourceDao objects. Each object represents a resource to be used.
        Throws:
        com.adobe.guides.konnect.definitions.core.exception.KonnectException
      • setCurrentResource

        public void setCurrentResource​(String id)
        Sets the current resource to be used for this config.
        Parameters:
        id - a String which is the id of the resource to be used.