Liferay 6.0-ee-sp2

com.liferay.portal.service
Interface ResourcePermissionService

All Known Implementing Classes:
ResourcePermissionServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ResourcePermissionService

The interface for the resource permission remote service.

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:
ResourcePermissionServiceUtil, ResourcePermissionServiceBaseImpl, com.liferay.portal.service.impl.ResourcePermissionServiceImpl

Method Summary
 void addResourcePermission(long groupId, long companyId, String name, int scope, String primKey, long roleId, String actionId)
           
 void removeResourcePermission(long groupId, long companyId, String name, int scope, String primKey, long roleId, String actionId)
           
 void removeResourcePermissions(long groupId, long companyId, String name, int scope, long roleId, String actionId)
           
 void setIndividualResourcePermissions(long groupId, long companyId, String name, String primKey, long roleId, String[] actionIds)
           
 

Method Detail

addResourcePermission

void addResourcePermission(long groupId,
                           long companyId,
                           String name,
                           int scope,
                           String primKey,
                           long roleId,
                           String actionId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

setIndividualResourcePermissions

void setIndividualResourcePermissions(long groupId,
                                      long companyId,
                                      String name,
                                      String primKey,
                                      long roleId,
                                      String[] actionIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

removeResourcePermission

void removeResourcePermission(long groupId,
                              long companyId,
                              String name,
                              int scope,
                              String primKey,
                              long roleId,
                              String actionId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

removeResourcePermissions

void removeResourcePermissions(long groupId,
                               long companyId,
                               String name,
                               int scope,
                               long roleId,
                               String actionId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

Liferay 6.0-ee-sp2