tools.dynamia.zk.reports.BIRTReportUtils Maven / Gradle / Ivy
/*
* Copyright (C) 2009 - 2019 Dynamia Soluciones IT S.A.S - NIT 900302344-1
* Colombia - South America
* All Rights Reserved.
*
* DynamiaTools is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License (LGPL v3) as
* published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DynamiaTools is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with DynamiaTools. If not, see .
*/
package tools.dynamia.zk.reports;
import tools.dynamia.domain.query.Parameters;
import tools.dynamia.integration.Containers;
public abstract class BIRTReportUtils {
private static final String BIRT_VIEWER_URL = "BirtViewerURL";
private static final String BIRT_REPORTS_PATH = "BirtReportsPath";
private static final String BIRT_RESOURCES_PATH = "BirtResourcesPath";
public static String getViewerURL() {
Parameters appParams = Containers.get().findObject(Parameters.class);
return appParams.getValue(BIRT_VIEWER_URL, "");
}
public static String getReportsPath() {
Parameters appParams = Containers.get().findObject(Parameters.class);
return appParams.getValue(BIRT_REPORTS_PATH, "");
}
public static String getResourcesPath() {
Parameters appParams = Containers.get().findObject(Parameters.class);
return appParams.getValue(BIRT_RESOURCES_PATH, getReportsPath());
}
private BIRTReportUtils() {
}
}