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

com.liferay.commerce.internal.security.permission.resource.CommerceSubscriptionPortletResourcePermissionWrapper Maven / Gradle / Ivy

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.internal.security.permission.resource;

import com.liferay.commerce.constants.CommerceConstants;
import com.liferay.portal.kernel.security.permission.resource.BasePortletResourcePermissionWrapper;
import com.liferay.portal.kernel.security.permission.resource.PortletResourcePermission;
import com.liferay.portal.kernel.security.permission.resource.PortletResourcePermissionFactory;

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

/**
 * @author Andrea Di Giorgi
 */
@Component(
	property = "resource.name=" + CommerceConstants.RESOURCE_NAME_COMMERCE_SUBSCRIPTION,
	service = PortletResourcePermission.class
)
public class CommerceSubscriptionPortletResourcePermissionWrapper
	extends BasePortletResourcePermissionWrapper {

	@Override
	protected PortletResourcePermission doGetPortletResourcePermission() {
		return PortletResourcePermissionFactory.create(
			CommerceConstants.RESOURCE_NAME_COMMERCE_SUBSCRIPTION,
			new CommerceServicePortletResourcePermissionLogic());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy