Class PermissionServiceUtil
Object
com.liferay.portal.kernel.service.PermissionServiceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckPermission(long groupId, String name, long primKey) Checks to see if the group has permission to the service.static voidcheckPermission(long groupId, String name, String primKey) Checks to see if the group has permission to the service.static StringReturns the OSGi service identifier.static PermissionServicestatic voidsetService(PermissionService service)
-
Constructor Details
-
PermissionServiceUtil
public PermissionServiceUtil()
-
-
Method Details
-
checkPermission
Checks to see if the group has permission to the service.- Parameters:
groupId- the primary key of the groupname- the service nameprimKey- 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 groupname- the service nameprimKey- the primary key of the service- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getService
-
setService
-