Package it.eng.spagobi.services.proxy

Examples of it.eng.spagobi.services.proxy.DataSourceServiceProxy


     *
     * @return the database connection
     */
    private Connection getConnection(String requestConnectionName,HttpSession session,IEngUserProfile profile,String documentId) {
  logger.debug("IN.documentId:"+documentId);
  DataSourceServiceProxy proxyDS = new DataSourceServiceProxy((String)profile.getUserUniqueIdentifier(),session);
  IDataSource ds =null;
  if (requestConnectionName!=null){
      ds = proxyDS.getDataSourceByLabel(requestConnectionName);
  }else{
      ds = proxyDS.getDataSource(documentId);
  }
 
  String schema=null;
  try {
    if (ds.checkIsMultiSchema()){
View Full Code Here


    return eventProxy;
  }

  public DataSourceServiceProxy getDataSourceServiceProxy() {
    if (datasourceProxy == null) {
      datasourceProxy = new DataSourceServiceProxy(getUserIdentifier(),
          getHttpSession());
    }

    return datasourceProxy;
  }
View Full Code Here

     return auditProxy;
   }
  
   public DataSourceServiceProxy getDataSourceServiceProxy() {
     if(datasourceProxy == null) {
       datasourceProxy = new DataSourceServiceProxy( getUserIdentifier() , getHttpSession() );
     }    
     
     return datasourceProxy;
   }
View Full Code Here

     */
    private Connection getConnection(String requestConnectionName,HttpSession session,IEngUserProfile profile,String documentId) {
      logger.debug("IN");
      IDataSource ds = null;

    DataSourceServiceProxy proxyDS = new DataSourceServiceProxy((String)profile.getUserUniqueIdentifier(),session);
    if(requestConnectionName == null){
      //get document's datasource
      ds = proxyDS.getDataSource(documentId);
    }else{
      //get datasource by label
      ds = proxyDS.getDataSourceByLabel(requestConnectionName);
    }
    if(ds != null){
      String schema=null;
      try {
        if (ds.checkIsMultiSchema()){
View Full Code Here

    if (documentId == null) {
      logger.error("Document identifier NOT found. Returning null.");
      throw new ConnectionParameterNotValidException("No default connection defined in "
          + "engine-config.xml file.");
    }
    DataSourceServiceProxy proxyDS = new DataSourceServiceProxy(userId, session);
    IDataSource ds = null;
    if (requestConnectionName!=null){
      ds =proxyDS.getDataSourceByLabel(requestConnectionName);
    }else{
      ds =proxyDS.getDataSource(documentId);
    }
    if (ds==null) {
      logger.warn("Data Source IS NULL. There are problems reading DataSource informations");
      return null;
   
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.proxy.DataSourceServiceProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.