
com.liferay.search.experiences.internal.configuration.OpenWeatherMapConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.search.experiences.service
Show all versions of com.liferay.search.experiences.service
Liferay Search Experiences Service
The newest version!
/**
* 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.search.experiences.internal.configuration;
import aQute.bnd.annotation.metatype.Meta;
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition;
/**
* @author Petteri Karttunen
*/
@ExtendedObjectClassDefinition(
category = "search-experiences",
scope = ExtendedObjectClassDefinition.Scope.COMPANY
)
@Meta.OCD(
id = "com.liferay.search.experiences.internal.configuration.OpenWeatherMapConfiguration",
localization = "content/Language",
name = "openweathermap-configuration-name"
)
public interface OpenWeatherMapConfiguration {
@Meta.AD(deflt = "false", name = "enabled", required = false)
public boolean enabled();
@Meta.AD(deflt = "", name = "api-key", required = false)
public String apiKey();
@Meta.AD(
deflt = "http://api.openweathermap.org/data/2.5/weather",
name = "api-url", required = false
)
public String apiURL();
@Meta.AD(deflt = "604800", name = "cache-timeout", required = false)
public int cacheTimeout();
@Meta.AD(
deflt = "metric", name = "units",
optionLabels = {"imperial", "metric", "standard"},
optionValues = {"imperial", "metric", "standard"}, required = false
)
public String units();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy