Package it.eng.spagobi.utilities.service

Examples of it.eng.spagobi.utilities.service.JSONAcknowledge


        String message = "Impossible to syncronize the query with the server. Query passed by the client is malformed";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
   
View Full Code Here


          throw new SpagoBIEngineServiceException(getActionName(), "Query [" + query.getName() + "] is not valid", t);
        }
      }
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
    } catch(Throwable t) {
View Full Code Here

      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
      logger.debug("OUT");
   
    try {
      writeBackToClient(new JSONAcknowledge())
    } catch (IOException e) {
      String message = "Impossible to write back the responce to the client";
      throw new SpagoBIEngineServiceException(getActionName(), message, e);
    }
  }
View Full Code Here

    } else if (serviceType != null  && serviceType.equalsIgnoreCase(UDP_DELETE)) {
      Integer id = getAttributeAsInteger(ID);
      try {
        udpDao.delete(id);
        logger.debug("User Attribute deleted");
        writeBackToClient( new JSONAcknowledge("Operation succeded") );

      } catch (Throwable e) {
        logger.error("Exception occurred while deleting role", e);
        throw new SpagoBIServiceException(SERVICE_NAME,
            "Exception occurred while deleting user attribute",
View Full Code Here

  private void datatsetDelete(IDataSetDAO dsDao, Locale locale){
    Integer dsID = getAttributeAsInteger(DataSetConstants.ID);
    try {
      dsDao.deleteDataSet(dsID);
      logger.debug("Dataset deleted");
      writeBackToClient( new JSONAcknowledge("Operation succeded") );
    } catch (Throwable e) {
      logger.error("Exception occurred while retrieving dataset to delete", e);
      throw new SpagoBIServiceException(SERVICE_NAME,"sbi.ds.deleteDsError", e);
    }
  }
View Full Code Here

      if (result == null || !result.trim().equals("OK")) {
        throw new Exception("Error while saving document's template");
      }
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        throw new SpagoBIEngineServiceException(getActionName(), "Impossible to write back the responce to the client", e);
      }
     
    } catch(Throwable t) {
View Full Code Here

    } else if (serviceType != null  && serviceType.equalsIgnoreCase(USER_DELETE)) {
      Integer id = getAttributeAsInteger(ID);
      try {
        userDao.deleteSbiUserById(id);
        logger.debug("User deleted");
        writeBackToClient( new JSONAcknowledge("Operation succeded") );

      } catch (Throwable e) {
        logger.error("Exception occurred while retrieving user to delete", e);
        throw new SpagoBIServiceException(SERVICE_NAME,
            "Exception occurred while retrieving user to delete",
View Full Code Here

    Integer dsVersionID = getAttributeAsInteger(DataSetConstants.VERSION_ID);
    try {
      boolean deleted = dsDao.deleteInactiveDataSetVersion(dsVersionID)
      if(deleted){
        logger.debug("Dataset Version deleted");
        writeBackToClient( new JSONAcknowledge("Operation succeded") );
      }else{
        throw new SpagoBIServiceException(SERVICE_NAME,"sbi.ds.deleteVersion");
      }
    } catch (Throwable e) {
      logger.error("Exception occurred while retrieving dataset version to delete", e);
View Full Code Here

  private void datatsetAllVersionsDelete(IDataSetDAO dsDao, Locale locale){
    Integer dsID = getAttributeAsInteger(DataSetConstants.DS_ID);
    try {
      dsDao.deleteAllInactiveDataSetVersions(dsID);
      logger.debug("All Older Dataset versions deleted");
      writeBackToClient( new JSONAcknowledge("Operation succeded") );
    } catch (Throwable e) {
      logger.error("Exception occurred while retrieving dataset to delete", e);
      throw new SpagoBIServiceException(SERVICE_NAME,"sbi.ds.deleteVersion", e);
    }
  }
View Full Code Here

      logger.debug(FORM_STATE + " input parameter parsed correctly as a JSONObject");
     
      engineInstance.getFormState().setConf(formJson);
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        throw new SpagoBIEngineServiceException(getActionName(), "Impossible to write back the responce to the client", e);
      }
     
    } catch(Throwable t) {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.utilities.service.JSONAcknowledge

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.