com.silverpeas.whitePages.test
Class DataSourceAccessor

java.lang.Object
  extended by com.silverpeas.whitePages.test.DataSourceAccessor

public class DataSourceAccessor
extends Object

An object providing an access to the data in the underlying data source used in the tests.


Method Summary
 void cleanUpDataSource()
           
 SearchField fetchSearchFieldById(String id)
           
 List<SearchField> fetchSearchFieldByInstanceId(String id)
           
static DataSourceAccessor getAccessorOnDataSource(DataSource dataSource)
           
 DataSourceAccessor initDataSourceWithData(String xmlDataFile)
           
 boolean isExists(String searchFieldId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAccessorOnDataSource

public static DataSourceAccessor getAccessorOnDataSource(DataSource dataSource)

initDataSourceWithData

public DataSourceAccessor initDataSourceWithData(String xmlDataFile)
                                          throws Exception
Throws:
Exception

cleanUpDataSource

public void cleanUpDataSource()
                       throws Exception
Throws:
Exception

fetchSearchFieldById

public SearchField fetchSearchFieldById(String id)
                                 throws Exception
Throws:
Exception

fetchSearchFieldByInstanceId

public List<SearchField> fetchSearchFieldByInstanceId(String id)
                                               throws Exception
Throws:
Exception

isExists

public boolean isExists(String searchFieldId)
                 throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.