Class DataResourceImpl
- java.lang.Object
-
- com.artisol.teneo.inquire.client.resources.AbstractResource
-
- com.artisol.teneo.inquire.client.resources.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getListOfLds()List the available LDS.com.artisol.teneo.inquire.api.models.LogDataSourceOverviewgetLogDataSourceOverview(String ldsName)Gets the log data source overview, that is, the number of sessions per week.com.artisol.teneo.inquire.api.mapadapter.SessionretrieveSession(String ldsName, String sessionId)Returns a json string with the session representation for a particular LDS.
-
-
-
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 namesessionId- 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:
LogDataSourceOverviewmodel- Throws:
com.artisol.teneo.inquire.api.exceptions.InquireException- if an unexpected error occurs during the method execution
-
-