Package org.saiku.service.util.exception

Examples of org.saiku.service.util.exception.SaikuServiceException


    try {
      SaikuConnection c = metaExplorer.getConnection(connectionName);
      connections.add(c);
      return connections;
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot retrieve all connections", e);
    }
  }
View Full Code Here


  public void refreshAllConnections() throws SaikuServiceException {
    try {
      datasourceService.getConnectionManager().refreshAllConnections();
    } catch (Exception e) {
      throw new SaikuServiceException("Cannot refresh all connections", e);
    }
  }
View Full Code Here

  public void refreshConnection(String name) throws SaikuServiceException {
    try {
      datasourceService.getConnectionManager().refreshConnection(name);
    } catch (Exception e) {
      throw new SaikuServiceException("Cannot refresh all connections", e);
    }
  }
View Full Code Here

  @NotNull
  public Cube getNativeCube(@NotNull SaikuCube cube) throws SaikuServiceException {
    try {
      return metaExplorer.getNativeCube(cube);
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get native cube for cube ( " + cube + " )", e);
    }
  }
View Full Code Here

  @Nullable
  public OlapConnection getNativeConnection(String name) throws SaikuServiceException {
    try {
      return metaExplorer.getNativeConnection(name);
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get native connection for cube ( " + name + " )", e);
    }
  }
View Full Code Here

  @NotNull
  public List<SaikuDimension> getAllDimensions(@NotNull SaikuCube cube) throws SaikuServiceException {
    try {
      return metaExplorer.getAllDimensions(cube);
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get all dimensions for cube ( " + cube + " )", e);
    }
  }
View Full Code Here

  @Nullable
  public SaikuDimension getDimension(@NotNull SaikuCube cube, String dimensionName) throws SaikuServiceException {
    try {
      return metaExplorer.getDimension(cube, dimensionName);
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get dimension (" + dimensionName + " ) for cube ( " + cube + " )", e);
    }
  }
View Full Code Here

  @NotNull
  public List<SaikuHierarchy> getAllHierarchies(@NotNull SaikuCube cube) throws SaikuServiceException {
    try {
      return metaExplorer.getAllHierarchies(cube);
    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get all hierarchies for cube ( " + cube + " )", e);
    }
  }
View Full Code Here

  public List<SaikuHierarchy> getAllDimensionHierarchies(@NotNull SaikuCube cube, String dimensionName) {
    try {
      SaikuDimension dim = metaExplorer.getDimension(cube, dimensionName);
      if (dim == null) {
        throw new SaikuServiceException("Cannot find dimension ( " + dimensionName + ") for cube ( " + cube + " )");
      }
      return dim.getHierarchies();

    } catch (SaikuOlapException e) {
      throw new SaikuServiceException(
          "Cannot get all hierarchies for cube ( " + cube + " ) dimension ( " + dimensionName + " )", e);
    }
  }
View Full Code Here

    try {

      return metaExplorer.getAllLevels(cube, dimensionName, hierarchyName);

    } catch (SaikuOlapException e) {
      throw new SaikuServiceException("Cannot get all levels for cube ( " + cube
                                      + " ) dimension ( " + dimensionName + " ) hierarchy ( " + hierarchyName + " )",
          e);

    }
  }
View Full Code Here

TOP

Related Classes of org.saiku.service.util.exception.SaikuServiceException

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.