com.liferay.portal.service
Interface PermissionService


public interface PermissionService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.PermissionServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
PermissionServiceFactory, PermissionServiceUtil

Method Summary
 void checkPermission(long groupId, java.lang.String name, java.lang.String primKey)
           
 boolean hasGroupPermission(long groupId, java.lang.String actionId, long resourceId)
           
 boolean hasUserPermission(long userId, java.lang.String actionId, long resourceId)
           
 boolean hasUserPermissions(long userId, long groupId, java.lang.String actionId, long[] resourceIds, com.liferay.portal.kernel.security.permission.PermissionCheckerBag permissionCheckerBag)
           
 void setGroupPermissions(long groupId, java.lang.String[] actionIds, long resourceId)
           
 void setGroupPermissions(java.lang.String className, java.lang.String classPK, long groupId, java.lang.String[] actionIds, long resourceId)
           
 void setOrgGroupPermissions(long organizationId, long groupId, java.lang.String[] actionIds, long resourceId)
           
 void setRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId)
           
 void setUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId)
           
 void unsetRolePermission(long roleId, long groupId, long permissionId)
           
 void unsetRolePermission(long roleId, long groupId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId)
           
 void unsetRolePermissions(long roleId, long groupId, java.lang.String name, int scope, java.lang.String actionId)
           
 void unsetUserPermissions(long userId, long groupId, java.lang.String[] actionIds, long resourceId)
           
 

Method Detail

checkPermission

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

hasGroupPermission

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

hasUserPermission

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

hasUserPermissions

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

setGroupPermissions

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

setGroupPermissions

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

setOrgGroupPermissions

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

setRolePermission

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

setUserPermissions

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

unsetRolePermission

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

unsetRolePermission

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

unsetRolePermissions

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

unsetUserPermissions

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