Liferay 6.2-ce-ga5

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 com.liferay.portal.service.impl.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, com.liferay.portal.service.impl.PermissionServiceImpl

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 getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static PermissionService getService()
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(PermissionService service)
          Deprecated. As of 6.2.0
 
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

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

checkPermission

public static void checkPermission(long groupId,
                                   String name,
                                   long primKey)
                            throws PortalException,
                                   SystemException
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 - if the group did not have permission to the service, if a group with the primary key could not be found or if the permission information was invalid
SystemException - if a system exception occurred

checkPermission

public static void checkPermission(long groupId,
                                   String name,
                                   String primKey)
                            throws PortalException,
                                   SystemException
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 - if the group did not have permission to the service, if a group with the primary key could not be found or if the permission information was invalid
SystemException - if a system exception occurred

getService

public static PermissionService getService()

setService

public void setService(PermissionService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5