com.liferay.sharepoint.rest.oauth2.service.util.ServiceProps Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.sharepoint.rest.oauth2.service.util;
import com.liferay.portal.kernel.configuration.Configuration;
import com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil;
import com.liferay.portal.kernel.configuration.Filter;
import java.util.Properties;
/**
* @author Adolfo Pérez
* @generated
*/
public class ServiceProps {
public static void addProperties(Properties properties) {
_instance._configuration.addProperties(properties);
}
public static boolean contains(String key) {
return _instance._configuration.contains(key);
}
public static String get(String key) {
return _instance._configuration.get(key);
}
public static String get(String key, Filter filter) {
return _instance._configuration.get(key, filter);
}
public static String[] getArray(String key) {
return _instance._configuration.getArray(key);
}
public static String[] getArray(String key, Filter filter) {
return _instance._configuration.getArray(key, filter);
}
public static Properties getProperties() {
return _instance._configuration.getProperties();
}
public static void removeProperties(Properties properties) {
_instance._configuration.removeProperties(properties);
}
public static void set(String key, String value) {
_instance._configuration.set(key, value);
}
private ServiceProps() {
_configuration = ConfigurationFactoryUtil.getConfiguration(
getClass().getClassLoader(), "service");
}
private static ServiceProps _instance = new ServiceProps();
private Configuration _configuration;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy