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 OlapUtilService
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
public Cube getCube(SaikuReport report) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
getCube
in interface OlapUtilService
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
public java.util.List<java.lang.String> getCubes(MondrianDatasource datasource, SaikuReport report) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
getCubes
in interface OlapUtilService
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
public java.util.List<Dimension> getAllDimensions(Cube cube)
getAllDimensions
in interface OlapUtilService
public java.util.List<SaikuHierarchy> getAllDimensionHierarchies(Cube cube, java.lang.String dimensionName)
getAllDimensionHierarchies
in interface OlapUtilService
public SaikuDimension getDimension(Cube cube, java.lang.String dimensionName)
getDimension
in interface OlapUtilService
public java.util.List<Member> getAllMeasures(Cube cube) throws OlapException
getAllMeasures
in interface OlapUtilService
OlapException
public java.lang.String replaceParametersInQuery(ParameterSet parameterSet, java.util.Map<java.lang.String,ParameterValue> pMap, java.lang.String mondrianSchema, boolean resetParameters)
replaceParametersInQuery
in interface OlapUtilService
public OlapConnection getOlapConnection(MondrianDatasource mondrianDatasource, SaikuReport report, boolean resetParameters) throws java.io.IOException, java.lang.ClassNotFoundException, java.sql.SQLException
getOlapConnection
in interface OlapUtilService
java.io.IOException
java.lang.ClassNotFoundException
java.sql.SQLException
public java.util.List<Member> getAllMembers(Cube cube, java.lang.String dimensionName, java.lang.String hierarchyName, java.lang.String levelName) throws OlapException
getAllMembers
in interface OlapUtilService
OlapException
public SaikuMember getMember(Cube cube, java.lang.String uniqueMemberName)
getMember
in interface OlapUtilService
public java.util.List<SimpleCubeElement> getAllMembers(Cube cube, java.lang.String hierarchy, java.lang.String level)
getAllMembers
in interface OlapUtilService
public java.util.List<SimpleCubeElement> getAllMembers(Cube nativeCube, java.lang.String hierarchy, java.lang.String level, java.lang.String searchString, int searchLimit)
getAllMembers
in interface OlapUtilService
public java.util.Map<java.lang.String,java.lang.Object> getProperties(Cube c)
getProperties
in interface OlapUtilService
public java.util.List<Level> getAllLevels(Cube cube, java.lang.String dimensionName, java.lang.String hierarchyName) throws OlapException
getAllLevels
in interface OlapUtilService
OlapException
public java.util.List<Member> getHierarchyRootMembers(Cube cube, java.lang.String hierarchyName) throws OlapException
getHierarchyRootMembers
in interface OlapUtilService
OlapException
public void flushCache(Report report)
OlapUtilService
flushCache
in interface OlapUtilService
report
- the report of which the cache should be clearedpublic void flushCache(MondrianDatasource datasource)
flushCache
in interface OlapUtilService
public boolean testConnection(MondrianDatasource datasource) throws ConnectionTestFailedException
testConnection
in interface OlapUtilService
ConnectionTestFailedException