Class PermissionServiceUtil

Object
com.liferay.portal.kernel.service.PermissionServiceUtil

public class PermissionServiceUtil extends Object
Provides the remote service utility for Permission. This utility wraps com.liferay.portal.service.impl.PermissionServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • PermissionServiceUtil

      public PermissionServiceUtil()
  • Method Details

    • checkPermission

      public static void checkPermission(long groupId, String name, long primKey) throws 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:
      PortalException
    • checkPermission

      public static void checkPermission(long groupId, String name, String primKey) throws 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:
      PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getService

      public static PermissionService getService()
    • setService

      public static void setService(PermissionService service)