| java.lang.Object com.liferay.portal.service.PermissionServiceUtil
PermissionServiceUtil | public class PermissionServiceUtil (Code) | | View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.PermissionService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
com.liferay.portal.service.PermissionServiceFactory
is responsible for the lookup of the bean.
author: Brian Wing Shun Chan See Also: com.liferay.portal.service.PermissionService See Also: com.liferay.portal.service.PermissionServiceFactory |
Method Summary | |
public static void | checkPermission(long groupId, java.lang.String name, java.lang.String primKey) | public static boolean | hasGroupPermission(long groupId, java.lang.String actionId, long resourceId) | public static boolean | hasUserPermission(long userId, java.lang.String actionId, long resourceId) | public static boolean | hasUserPermissions(long userId, long groupId, java.lang.String actionId, long[] resourceIds, com.liferay.portal.kernel.security.permission.PermissionCheckerBag permissionCheckerBag) | public static void | setGroupPermissions(long groupId, java.lang.String[] actionIds, long resourceId) | public static void | setGroupPermissions(java.lang.String className, java.lang.String classPK, long groupId, java.lang.String[] actionIds, long resourceId) | public static void | setOrgGroupPermissions(long organizationId, long groupId, java.lang.String[] actionIds, long resourceId) | public static void | setRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId) | public static void | setRolePermissions(long roleId, long groupId, java.lang.String[] actionIds, long resourceId) | public static void | setUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId) | public static void | unsetRolePermission(long roleId, long groupId, long permissionId) | public static void | unsetRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId) | public static void | unsetRolePermissions(long roleId, long groupId, java.lang.String name, int scope, java.lang.String actionId) | public static void | unsetUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId) |
|
|