/*
 * Copyright 2003 - 2018 The eFaps Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package org.efaps.api.ui;

import java.io.Serializable;
import java.util.List;

public interface IPivotProvider
    extends Serializable
{

    /**
     * Get a list of datasources, to be shown in the UserInterface.
     *
     * @return list of IOption
     */
    List<IOption> getDataSources();

    /**
     * Gets the json data.
     *
     * @param _dataSource the data source
     * @return the json data
     */
    CharSequence getJsonData(String _dataSource);

    /**
     * Get a list of datasources, to be shown in the UserInterface.
     *
     * @return list of IOption
     */
    List<IOption> getReports();

    /**
     *
     * @param _reportName name of the report
     * @param _pivotReport pivotReport representation
     * @return OID/Key of the saved report
     */
    String save(String _reportName, String _pivotReport);

    /**
     * Gets the report.
     *
     * @param _reportKey the report key
     * @return the report
     */
    CharSequence getReport(String _reportKey);
}

@@ -1610,11 +1610,126 @@
 ortKey);
+%0A%0A    /**%0A     * Delete.%0A     *%0A     * @param _reportKey the report key%0A     */%0A    void delete(String _reportKey);
 %0A%7D%0A

Update Pivot Provider Interface