public class OlapUtilServiceImpl extends java.lang.Object implements OlapUtilService
| Constructor and Description | 
|---|
| OlapUtilServiceImpl(HookHandlerService hookHandlerService,
                   JdbcService jdbcService,
                   <any> parameterSetFactory,
                   <any> authenticatorService) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | flushCache(MondrianDatasource datasource) | 
| void | flushCache(Report report)Clears the Mondrian Cache of the given report. | 
| java.util.List<SaikuHierarchy> | getAllDimensionHierarchies(Cube cube,
                          java.lang.String dimensionName) | 
| java.util.List<Dimension> | getAllDimensions(Cube cube) | 
| java.util.List<Level> | getAllLevels(Cube cube,
            java.lang.String dimensionName,
            java.lang.String hierarchyName) | 
| java.util.List<Member> | getAllMeasures(Cube cube) | 
| java.util.List<SimpleCubeElement> | getAllMembers(Cube cube,
             java.lang.String hierarchy,
             java.lang.String level) | 
| java.util.List<Member> | getAllMembers(Cube cube,
             java.lang.String dimensionName,
             java.lang.String hierarchyName,
             java.lang.String levelName) | 
| java.util.List<SimpleCubeElement> | getAllMembers(Cube nativeCube,
             java.lang.String hierarchy,
             java.lang.String level,
             java.lang.String searchString,
             int searchLimit) | 
| Cube | getCube(SaikuReport report) | 
| java.util.List<java.lang.String> | getCubes(MondrianDatasource datasource,
        SaikuReport report) | 
| SaikuDimension | getDimension(Cube cube,
            java.lang.String dimensionName) | 
| java.util.List<Member> | getHierarchyRootMembers(Cube cube,
                       java.lang.String hierarchyName) | 
| SaikuMember | getMember(Cube cube,
         java.lang.String uniqueMemberName) | 
| OlapConnection | getOlapConnection(MondrianDatasource mondrianDatasource,
                 SaikuReport report,
                 boolean resetParameters) | 
| OlapConnection | getOlapConnection(SaikuReport report) | 
| java.util.Map<java.lang.String,java.lang.Object> | getProperties(Cube c) | 
| java.lang.String | replaceParametersInQuery(ParameterSet parameterSet,
                        java.util.Map<java.lang.String,ParameterValue> pMap,
                        java.lang.String mondrianSchema,
                        boolean resetParameters) | 
| boolean | testConnection(MondrianDatasource datasource) | 
public OlapUtilServiceImpl(HookHandlerService hookHandlerService, JdbcService jdbcService, <any> parameterSetFactory, <any> authenticatorService)
public OlapConnection getOlapConnection(SaikuReport report) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
getOlapConnection in interface OlapUtilServicejava.lang.ClassNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic Cube getCube(SaikuReport report) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
getCube in interface OlapUtilServicejava.lang.ClassNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic java.util.List<java.lang.String> getCubes(MondrianDatasource datasource, SaikuReport report) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
getCubes in interface OlapUtilServicejava.lang.ClassNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic java.util.List<Dimension> getAllDimensions(Cube cube)
getAllDimensions in interface OlapUtilServicepublic java.util.List<SaikuHierarchy> getAllDimensionHierarchies(Cube cube,
                                                                 java.lang.String dimensionName)
getAllDimensionHierarchies in interface OlapUtilServicepublic SaikuDimension getDimension(Cube cube,
                                   java.lang.String dimensionName)
getDimension in interface OlapUtilServicepublic java.util.List<Member> getAllMeasures(Cube cube)
                                      throws OlapException
getAllMeasures in interface OlapUtilServiceOlapExceptionpublic java.lang.String replaceParametersInQuery(ParameterSet parameterSet, java.util.Map<java.lang.String,ParameterValue> pMap, java.lang.String mondrianSchema, boolean resetParameters)
replaceParametersInQuery in interface OlapUtilServicepublic OlapConnection getOlapConnection(MondrianDatasource mondrianDatasource, SaikuReport report, boolean resetParameters) throws java.io.IOException, java.lang.ClassNotFoundException, java.sql.SQLException
getOlapConnection in interface OlapUtilServicejava.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.sql.SQLExceptionpublic java.util.List<Member> getAllMembers(Cube cube,
                                            java.lang.String dimensionName,
                                            java.lang.String hierarchyName,
                                            java.lang.String levelName)
                                     throws OlapException
getAllMembers in interface OlapUtilServiceOlapExceptionpublic SaikuMember getMember(Cube cube,
                             java.lang.String uniqueMemberName)
getMember in interface OlapUtilServicepublic java.util.List<SimpleCubeElement> getAllMembers(Cube cube,
                                                       java.lang.String hierarchy,
                                                       java.lang.String level)
getAllMembers in interface OlapUtilServicepublic java.util.List<SimpleCubeElement> getAllMembers(Cube nativeCube,
                                                       java.lang.String hierarchy,
                                                       java.lang.String level,
                                                       java.lang.String searchString,
                                                       int searchLimit)
getAllMembers in interface OlapUtilServicepublic java.util.Map<java.lang.String,java.lang.Object> getProperties(Cube c)
getProperties in interface OlapUtilServicepublic java.util.List<Level> getAllLevels(Cube cube,
                                          java.lang.String dimensionName,
                                          java.lang.String hierarchyName)
                                   throws OlapException
getAllLevels in interface OlapUtilServiceOlapExceptionpublic java.util.List<Member> getHierarchyRootMembers(Cube cube,
                                                      java.lang.String hierarchyName)
                                               throws OlapException
getHierarchyRootMembers in interface OlapUtilServiceOlapExceptionpublic void flushCache(Report report)
OlapUtilServiceflushCache in interface OlapUtilServicereport - the report of which the cache should be clearedpublic void flushCache(MondrianDatasource datasource)
flushCache in interface OlapUtilServicepublic boolean testConnection(MondrianDatasource datasource) throws ConnectionTestFailedException
testConnection in interface OlapUtilServiceConnectionTestFailedException