Class DataResourceImpl

  • All Implemented Interfaces:
    com.artisol.teneo.inquire.api.resources.DataResource

    public class DataResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.inquire.api.resources.DataResource
    • Field Summary

      • Fields inherited from interface com.artisol.teneo.inquire.api.resources.DataResource

        GET_LOG_DATA_SOURCE_NAMES_PATH, GET_LOG_DATA_SOURCE_NAMES_SUMMARY, GET_LOG_DATA_SOURCE_OVERVIEW_PATH, GET_LOG_DATA_SOURCE_OVERVIEW_SUMMARY, GET_LOG_DATA_SOURCE_SESSION_PATH, GET_LOG_DATA_SOURCE_SESSION_SUMMARY, PATH
    • Constructor Summary

      Constructors 
      Constructor Description
      DataResourceImpl​(javax.ws.rs.client.WebTarget webTarget)  
    • Constructor Detail

      • DataResourceImpl

        public DataResourceImpl​(javax.ws.rs.client.WebTarget webTarget)
    • Method Detail

      • retrieveSession

        public com.artisol.teneo.inquire.api.mapadapter.Session retrieveSession​(String ldsName,
                                                                                String sessionId)
                                                                         throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Returns a json string with the session representation for a particular LDS. TODO The endpoint is prepared to return a list of sessions tho this method is not yet ready
        Parameters:
        ldsName - LDS name
        sessionId - The session id
        Returns:
        A String with the json representation of the session
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - if an unexpected error occurs during the method execution
      • getListOfLds

        public List<String> getListOfLds()
                                  throws com.artisol.teneo.inquire.api.exceptions.InquireException
        List the available LDS. In case Teneo Manager is enabled it will return only the allowed LDS for that user.
        Returns:
        a List with the available LDS names
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - if an unexpected error occurs during the method execution
      • getLogDataSourceOverview

        public com.artisol.teneo.inquire.api.models.LogDataSourceOverview getLogDataSourceOverview​(String ldsName)
                                                                                            throws com.artisol.teneo.inquire.api.exceptions.InquireException
        Gets the log data source overview, that is, the number of sessions per week.
        Parameters:
        ldsName - the LDS name
        Returns:
        LogDataSourceOverview model
        Throws:
        com.artisol.teneo.inquire.api.exceptions.InquireException - if an unexpected error occurs during the method execution