All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.commerce.internal.template.CommerceAccountTemplateContextContributor Maven / Gradle / Ivy

There is a newer version: 11.0.188
Show 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.internal.template;

import com.liferay.commerce.util.CommerceAccountHelper;
import com.liferay.portal.kernel.template.TemplateContextContributor;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;

/**
 * @author Alessio Antonio Rendina
 */
@Component(
	property = "type=" + TemplateContextContributor.TYPE_THEME,
	service = TemplateContextContributor.class
)
public class CommerceAccountTemplateContextContributor
	implements TemplateContextContributor {

	@Override
	public void prepare(
		Map contextObjects,
		HttpServletRequest httpServletRequest) {

		contextObjects.put("commerceAccountHelper", _commerceAccountHelper);
	}

	@Reference
	private CommerceAccountHelper _commerceAccountHelper;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy