Class PermissionServiceImpl

Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portal.service.base.PermissionServiceBaseImpl
com.liferay.portal.service.impl.PermissionServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.PermissionService

public class PermissionServiceImpl extends PermissionServiceBaseImpl
Provides the remote service for checking permissions.
Author:
Brian Wing Shun Chan, Raymond Augé
  • Constructor Details

    • PermissionServiceImpl

      public PermissionServiceImpl()
  • Method Details

    • checkPermission

      @JSONWebService(mode=IGNORE) @Transactional(readOnly=true) public void checkPermission(long groupId, String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException
      Checks to see if the group has permission to the service.
      Parameters:
      groupId - the primary key of the group
      name - the service name
      primKey - the primary key of the service
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkPermission

      @Transactional(readOnly=true) public void checkPermission(long groupId, String name, String primKey) throws com.liferay.portal.kernel.exception.PortalException
      Checks to see if the group has permission to the service.
      Parameters:
      groupId - the primary key of the group
      name - the service name
      primKey - the primary key of the service
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkModelResourcePermission

      protected boolean checkModelResourcePermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkPermission

      protected void checkPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, String name, String primKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException