Package it.eng.spagobi.services.sbidocument.service

Source Code of it.eng.spagobi.services.sbidocument.service.SbiDocumentServiceImpl

/**

SpagoBI - The Business Intelligence Free Platform

Copyright (C) 2005-2008 Engineering Ingegneria Informatica S.p.A.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

**/
package it.eng.spagobi.services.sbidocument.service;

import it.eng.spagobi.services.common.AbstractServiceImpl;
import it.eng.spagobi.services.dataset.DataSetService;
import it.eng.spagobi.services.dataset.bo.SpagoBiDataSet;
import it.eng.spagobi.services.sbidocument.SbiDocumentService;
import it.eng.spagobi.services.sbidocument.bo.SpagobiAnalyticalDriver;
import it.eng.spagobi.services.security.exceptions.SecurityException;

import org.apache.log4j.Logger;

import com.jamonapi.Monitor;
import com.jamonapi.MonitorFactory;





/**
* @author Andrea Gioia
*/
public class SbiDocumentServiceImpl extends AbstractServiceImpl  implements SbiDocumentService {
  
  private SbiDocumentSupplier supplier = new SbiDocumentSupplier();
     
  static private Logger logger = Logger.getLogger(SbiDocumentServiceImpl.class);

  /**
     * Instantiates a new data source service impl.
     */
    public SbiDocumentServiceImpl(){
      super();
    }
   
    public SpagobiAnalyticalDriver[] getDocumentAnalyticalDrivers(String token, String user, Integer id, String language, String country){
      logger.debug("IN");
      Monitor monitor = MonitorFactory.start("spagobi.service.sbidocument.getDocumentParameters");
      try {
          validateTicket(token, user);
          return supplier.getDocumentAnalyticalDrivers(id, language, country);
      } catch (SecurityException e) {
          logger.error("SecurityException", e);
          return null;
      } finally {
          monitor.stop();
          logger.debug("OUT");
     
    }
   
    public String getDocumentAnalyticalDriversJSON(String token, String user, Integer id, String language, String country){
      logger.debug("IN");
      Monitor monitor = MonitorFactory.start("spagobi.service.sbidocument.getDocumentParametersJSON");
      try {
          validateTicket(token, user);
          return supplier.getDocumentAnalyticalDriversJSON(id, language, country);
      } catch (SecurityException e) {
          logger.error("SecurityException", e);
          return null;
      } finally {
          monitor.stop();
          logger.debug("OUT");
     
    }
   
       

}
TOP

Related Classes of it.eng.spagobi.services.sbidocument.service.SbiDocumentServiceImpl

TOP
Copyright © 2018 www.massapi.com. 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.