com.liferay.portal.service
Class PermissionServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.PermissionServiceUtil

public class PermissionServiceUtil
extends java.lang.Object

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.

Author:
Brian Wing Shun Chan
See Also:
PermissionService

Constructor Summary
PermissionServiceUtil()
           
 
Method Summary
static void checkPermission(long groupId, java.lang.String name, java.lang.String primKey)
           
static PermissionService getService()
           
static boolean hasGroupPermission(long groupId, java.lang.String actionId, long resourceId)
           
static boolean hasUserPermission(long userId, java.lang.String actionId, long resourceId)
           
static boolean hasUserPermissions(long userId, long groupId, java.lang.String actionId, long[] resourceIds, PermissionCheckerBag permissionCheckerBag)
           
static void setGroupPermissions(long groupId, java.lang.String[] actionIds, long resourceId)
           
static void setGroupPermissions(java.lang.String className, java.lang.String classPK, long groupId, java.lang.String[] actionIds, long resourceId)
           
static void setOrgGroupPermissions(long organizationId, long groupId, java.lang.String[] actionIds, long resourceId)
           
static void setRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId)
           
static void setRolePermissions(long roleId, long groupId, java.lang.String[] actionIds, long resourceId)
           
 void setService(PermissionService service)
           
static void setUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId)
           
static void unsetRolePermission(long roleId, long groupId, long permissionId)
           
static void unsetRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId)
           
static void unsetRolePermissions(long roleId, long groupId, java.lang.String name, int scope, java.lang.String actionId)
           
static void unsetUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId)
           
 
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

checkPermission

public static void checkPermission(long groupId,
                                   java.lang.String name,
                                   java.lang.String primKey)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

hasGroupPermission

public static boolean hasGroupPermission(long groupId,
                                         java.lang.String actionId,
                                         long resourceId)
                                  throws com.liferay.portal.SystemException,
                                         java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

hasUserPermission

public static boolean hasUserPermission(long userId,
                                        java.lang.String actionId,
                                        long resourceId)
                                 throws com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

hasUserPermissions

public static boolean hasUserPermissions(long userId,
                                         long groupId,
                                         java.lang.String actionId,
                                         long[] resourceIds,
                                         PermissionCheckerBag permissionCheckerBag)
                                  throws com.liferay.portal.SystemException,
                                         java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException

setGroupPermissions

public static void setGroupPermissions(long groupId,
                                       java.lang.String[] actionIds,
                                       long resourceId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setGroupPermissions

public static void setGroupPermissions(java.lang.String className,
                                       java.lang.String classPK,
                                       long groupId,
                                       java.lang.String[] actionIds,
                                       long resourceId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setOrgGroupPermissions

public static void setOrgGroupPermissions(long organizationId,
                                          long groupId,
                                          java.lang.String[] actionIds,
                                          long resourceId)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException,
                                          java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setRolePermission

public static void setRolePermission(long roleId,
                                     long groupId,
                                     java.lang.String name,
                                     int scope,
                                     java.lang.String primKey,
                                     java.lang.String actionId)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException,
                                     java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setRolePermissions

public static void setRolePermissions(long roleId,
                                      long groupId,
                                      java.lang.String[] actionIds,
                                      long resourceId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

setUserPermissions

public static void setUserPermissions(long userId,
                                      long groupId,
                                      java.lang.String[] actionIds,
                                      long resourceId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetRolePermission

public static void unsetRolePermission(long roleId,
                                       long groupId,
                                       long permissionId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetRolePermission

public static void unsetRolePermission(long roleId,
                                       long groupId,
                                       java.lang.String name,
                                       int scope,
                                       java.lang.String primKey,
                                       java.lang.String actionId)
                                throws com.liferay.portal.PortalException,
                                       com.liferay.portal.SystemException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetRolePermissions

public static void unsetRolePermissions(long roleId,
                                        long groupId,
                                        java.lang.String name,
                                        int scope,
                                        java.lang.String actionId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsetUserPermissions

public static void unsetUserPermissions(long userId,
                                        long groupId,
                                        java.lang.String[] actionIds,
                                        long resourceId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getService

public static PermissionService getService()

setService

public void setService(PermissionService service)