org.talend.esb.sam.server.ui
Class UIProviderImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by org.talend.esb.sam.server.ui.UIProviderImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, UIProvider

public class UIProviderImpl
extends org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
implements UIProvider

Default implementation of UIProvider based on. SimpleJdbcDaoSupport

Author:
zubairov

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UIProviderImpl()
           
 
Method Summary
 com.google.gson.JsonObject getEventDetails(String eventID)
          Returns a detailed information about event with given ID or null if no such event was found.
 com.google.gson.JsonObject getEvents(long offset, String baseURL, CriteriaAdapter criteria)
          Retrieve an aggregated list of events starting with offset maximum number of items is limit.
 com.google.gson.JsonObject getFlowDetails(String flowID, String baseURL)
          Returns a detailed information about flow with given ID or null if no such flow was found.
 void setDialect(DatabaseDialect dialect)
          Injector method for DatabaseDialect.
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIProviderImpl

public UIProviderImpl()
Method Detail

setDialect

public void setDialect(DatabaseDialect dialect)
Injector method for DatabaseDialect.

Parameters:
dialect - the new dialect

getEvents

public com.google.gson.JsonObject getEvents(long offset,
                                            String baseURL,
                                            CriteriaAdapter criteria)
Description copied from interface: UIProvider
Retrieve an aggregated list of events starting with offset maximum number of items is limit.

Specified by:
getEvents in interface UIProvider
Parameters:
offset - the offset
baseURL - the base url
criteria - the criteria
Returns:
the events

getFlowDetails

public com.google.gson.JsonObject getFlowDetails(String flowID,
                                                 String baseURL)
Description copied from interface: UIProvider
Returns a detailed information about flow with given ID or null if no such flow was found.

Specified by:
getFlowDetails in interface UIProvider
Parameters:
flowID - the flow id
baseURL - the base url
Returns:
the flow details

getEventDetails

public com.google.gson.JsonObject getEventDetails(String eventID)
Description copied from interface: UIProvider
Returns a detailed information about event with given ID or null if no such event was found.

Specified by:
getEventDetails in interface UIProvider
Parameters:
eventID - the event id
Returns:
the event details


Copyright © 2011–2013 Talend Inc.. All rights reserved.