+ "\"]}" );
}
@Exposed( accessLevel = AccessLevel.PUBLIC )
public void olapUtils( final OutputStream out ) throws JSONException {
OlapUtils olapUtils = new OlapUtils();
Object result = null;
try {
String operation = getRequestParameters().getStringParameter( "operation", "-" );
if ( operation.equals( "GetOlapCubes" ) ) {
result = olapUtils.getOlapCubes();
} else if ( operation.equals( "GetCubeStructure" ) ) {
String catalog = getRequestParameters().getStringParameter( "catalog", null );
String cube = getRequestParameters().getStringParameter( "cube", null );
String jndi = getRequestParameters().getStringParameter( "jndi", null );
result = olapUtils.getCubeStructure( catalog, cube, jndi );
} else if ( operation.equals( "GetLevelMembersStructure" ) ) {
String catalog = getRequestParameters().getStringParameter( "catalog", null );
String cube = getRequestParameters().getStringParameter( "cube", null );
String member = getRequestParameters().getStringParameter( "member", null );
String direction = getRequestParameters().getStringParameter( "direction", null );
result = olapUtils.getLevelMembersStructure( catalog, cube, member, direction );
} else if ( operation.equals( "GetPaginatedLevelMembers" ) ) {
String catalog = getRequestParameters().getStringParameter( "catalog", null );
String cube = getRequestParameters().getStringParameter( "cube", null );
String startMember = getRequestParameters().getStringParameter( "startMember", null );
String level = getRequestParameters().getStringParameter( "level", null );
String context = getRequestParameters().getStringParameter( "context", null );
String searchTerm = getRequestParameters().getStringParameter( "searchTerm", null );
long pageSize = getRequestParameters().getLongParameter( "pageSize", 0 );
long pageStart = getRequestParameters().getLongParameter( "pageStart", 0 );
result = olapUtils
.getPaginatedLevelMembers( catalog, cube, level, startMember, context, searchTerm, pageSize, pageStart );
}
buildJsonResult( out, result != null, result );
} catch ( Exception ex ) {