com.liferay.commerce.payment.model.impl.CommercePaymentMethodGroupRelImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.service
Show all versions of com.liferay.commerce.payment.service
Liferay Commerce Payment 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.commerce.payment.model.impl;
import com.liferay.petra.string.StringBundler;
import com.liferay.portal.kernel.theme.ThemeDisplay;
import com.liferay.portal.kernel.util.UnicodeProperties;
import com.liferay.portal.kernel.util.UnicodePropertiesBuilder;
import com.liferay.portal.kernel.webserver.WebServerServletTokenUtil;
/**
* @author Luca Pellizzon
*/
public class CommercePaymentMethodGroupRelImpl
extends CommercePaymentMethodGroupRelBaseImpl {
@Override
public String getImageURL(ThemeDisplay themeDisplay) {
if (getImageId() <= 0) {
return null;
}
return StringBundler.concat(
themeDisplay.getPathImage(), "/payment/method?img_id=",
getImageId(), "&t=",
WebServerServletTokenUtil.getToken(getImageId()));
}
@Override
public UnicodeProperties getTypeSettingsUnicodeProperties() {
if (_typeSettingsUnicodeProperties == null) {
_typeSettingsUnicodeProperties = UnicodePropertiesBuilder.create(
true
).fastLoad(
getTypeSettings()
).build();
}
return _typeSettingsUnicodeProperties;
}
private transient UnicodeProperties _typeSettingsUnicodeProperties;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy