01: /*
02: * Copyright 2006 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
07: * BI Platform. The Initial Developer is Pentaho Corporation.
08: *
09: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11: * the license for the specific language governing your rights and limitations.
12: *
13: * @created Jul 12, 2005
14: * @author James Dixon, Angelo Rodriguez, Steven Barkdull
15: *
16: */
17:
18: package org.pentaho.ui.servlet;
19:
20: import java.io.IOException;
21: import java.io.OutputStream;
22:
23: import org.pentaho.core.session.IPentahoSession;
24: import org.pentaho.core.solution.IParameterProvider;
25: import org.pentaho.pms.core.exception.PentahoMetadataException;
26:
27: /*
28: * Refactoring notes:
29: * Break out code into facade classes for SolutionRepository, WaqrRepository
30: * For each of the methods in the switch statement in the dispatch method,
31: * create a method that takes the parameter provider. These methods will
32: * break the parameters out of the parameter provider, and call methods by
33: * the same name
34: */
35: /**
36: * Servlet Class
37: *
38: * web.servlet name="ViewAction" display-name="Name for ViewAction" description="Description for ViewAction" web.servlet-mapping url-pattern="/ViewAction" web.servlet-init-param name="A parameter" value="A value"
39: */
40: public class AdhocWebServiceSaveDisabled extends AdhocWebService {
41:
42: /**
43: *
44: * @param fileName
45: * @param parameterProvider
46: * @param outputStream
47: * @param userSession
48: * @param isAjax
49: * @throws AdhocWebServiceException
50: * @throws IOException
51: * @throws PentahoMetadataException
52: */
53: protected void saveReportSpec(String fileName,
54: IParameterProvider parameterProvider,
55: OutputStream outputStream, IPentahoSession userSession,
56: boolean isAjax) throws AdhocWebServiceException,
57: IOException, PentahoMetadataException {
58:
59: if (true)
60: throw new AdhocWebServiceException("Save is disabled.");
61: }
62:
63: }
|