@ProviderType
public class PermissionServiceUtil
extends java.lang.Object
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.PermissionService,
PermissionServiceBaseImpl,
com.liferay.portal.service.impl.PermissionServiceImpl| Constructor and Description |
|---|
PermissionServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkPermission(long groupId,
java.lang.String name,
long primKey)
Checks to see if the group has permission to the service.
|
static void |
checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
Checks to see if the group has permission to the service.
|
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static PermissionService |
getService() |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(PermissionService service)
Deprecated.
As of 6.2.0
|
public static void checkPermission(long groupId,
java.lang.String name,
long primKey)
throws PortalException
groupId - the primary key of the groupname - the service nameprimKey - the primary key of the servicePortalException - 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 invalidpublic static void checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
throws PortalException
groupId - the primary key of the groupname - the service nameprimKey - the primary key of the servicePortalException - 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 invalidpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static PermissionService getService()
@Deprecated public void setService(PermissionService service)