org.outerj.xreporter.datasource
Interface DataSourceManager

All Known Implementing Classes:
DataSourceManagerImpl

public interface DataSourceManager

DataSourceManager manages XReporter's DataSources. See DataSource.


Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void generateCatalog(org.xml.sax.ContentHandler contentHandler, User user, ResourceHandle resourceHandle)
          Generates a list of datasources.
 DataSource getDataSource(java.lang.String id)
          Get the datasource with the specified id.
 

Field Detail

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values
Method Detail

getDataSource

public DataSource getDataSource(java.lang.String id)
                         throws UnknownDataSourceIdException
Get the datasource with the specified id.

Throws:
UnknownDataSourceIdException

generateCatalog

public void generateCatalog(org.xml.sax.ContentHandler contentHandler,
                            User user,
                            ResourceHandle resourceHandle)
                     throws org.xml.sax.SAXException,
                            AuthorisationException
Generates a list of datasources. The list will only contain data sources to which access is allowed (determined by the AuthorisationManager). The items will be sorted according to the sortcodes of the data source. Name and description of the datasources will be translated in the user language.

Throws:
org.xml.sax.SAXException
AuthorisationException