com.liferay.commerce.internal.security.permission.resource.CommerceAddressPortletResourcePermissionWrapper 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_ADDRESS,
service = PortletResourcePermission.class
)
public class CommerceAddressPortletResourcePermissionWrapper
extends BasePortletResourcePermissionWrapper {
@Override
protected PortletResourcePermission doGetPortletResourcePermission() {
return PortletResourcePermissionFactory.create(
CommerceConstants.RESOURCE_NAME_COMMERCE_ADDRESS,
new CommerceServicePortletResourcePermissionLogic());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy