Liferay 7.0-ce-b4

com.liferay.portal.service
Class PermissionServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.PermissionServiceUtil

@ProviderType
public class PermissionServiceUtil
extends Object

Provides the remote service utility for Permission. This utility wraps PermissionServiceImpl and is the primary 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.

See Also:
PermissionService, PermissionServiceBaseImpl, PermissionServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
PermissionServiceUtil()
           
 
Method Summary
static void checkPermission(long groupId, String name, long primKey)
          Checks to see if the group has permission to the service.
static void checkPermission(long groupId, String name, String primKey)
          Checks to see if the group has permission to the service.
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static PermissionService getService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionServiceUtil

public PermissionServiceUtil()
Method Detail

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()

Liferay 7.0-ce-b4