com.liferay.portal.service
Class PermissionServiceUtil
java.lang.Object
com.liferay.portal.service.PermissionServiceUtil
public class PermissionServiceUtil
- extends Object
The utility for the permission remote service. This utility wraps PermissionServiceImpl
and is the primary access point for service operations in application layer code running on a remote server.
Never modify this class directly. Add custom service methods to PermissionServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a remote service. 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.
Method Summary |
static void |
checkPermission(long groupId,
long resourceId)
|
static void |
checkPermission(long groupId,
String name,
long primKey)
|
static void |
checkPermission(long groupId,
String name,
String primKey)
|
static PermissionService |
getService()
|
static boolean |
hasGroupPermission(long groupId,
String actionId,
long resourceId)
|
static boolean |
hasUserPermission(long userId,
String actionId,
long resourceId)
|
static boolean |
hasUserPermissions(long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
|
static void |
setGroupPermissions(long groupId,
String[] actionIds,
long resourceId)
|
static void |
setGroupPermissions(String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setOrgGroupPermissions(long organizationId,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
static void |
setRolePermissions(long roleId,
long groupId,
String[] actionIds,
long resourceId)
|
void |
setService(PermissionService service)
|
static void |
setUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
unsetRolePermission(long roleId,
long groupId,
long permissionId)
|
static void |
unsetRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
static void |
unsetRolePermissions(long roleId,
long groupId,
String name,
int scope,
String actionId)
|
static void |
unsetUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionServiceUtil
public PermissionServiceUtil()
checkPermission
public static void checkPermission(long groupId,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
public static void checkPermission(long groupId,
String name,
long primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
public static void checkPermission(long groupId,
String name,
String primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasGroupPermission
public static boolean hasGroupPermission(long groupId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermission
public static boolean hasUserPermission(long userId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermissions
public static boolean hasUserPermissions(long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
public static void setGroupPermissions(long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
public static void setGroupPermissions(String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setOrgGroupPermissions
public static void setOrgGroupPermissions(long organizationId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermission
public static void setRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermissions
public static void setRolePermissions(long roleId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setUserPermissions
public static void setUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
public static void unsetRolePermission(long roleId,
long groupId,
long permissionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
public static void unsetRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermissions
public static void unsetRolePermissions(long roleId,
long groupId,
String name,
int scope,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetUserPermissions
public static void unsetUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static PermissionService getService()
setService
public void setService(PermissionService service)