Liferay 7.0-ce-b4

com.liferay.portal.service
Class ResourceBlockServiceUtil

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

@ProviderType
public class ResourceBlockServiceUtil
extends Object

Provides the remote service utility for ResourceBlock. This utility wraps com.liferay.portal.service.impl.ResourceBlockServiceImpl and is the primary access point for service operations in application layer code running on a remote server. 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:
ResourceBlockService, ResourceBlockServiceBaseImpl, com.liferay.portal.service.impl.ResourceBlockServiceImpl

Constructor Summary
ResourceBlockServiceUtil()
           
 
Method Summary
static void addCompanyScopePermission(long scopeGroupId, long companyId, String name, long roleId, String actionId)
           
static void addGroupScopePermission(long scopeGroupId, long companyId, long groupId, String name, long roleId, String actionId)
           
static void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static ResourceBlockService getService()
           
static void removeAllGroupScopePermissions(long scopeGroupId, long companyId, String name, long roleId, String actionId)
           
static void removeCompanyScopePermission(long scopeGroupId, long companyId, String name, long roleId, String actionId)
           
static void removeGroupScopePermission(long scopeGroupId, long companyId, long groupId, String name, long roleId, String actionId)
           
static void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
static void setCompanyScopePermissions(long scopeGroupId, long companyId, String name, long roleId, List<String> actionIds)
           
static void setGroupScopePermissions(long scopeGroupId, long companyId, long groupId, String name, long roleId, List<String> actionIds)
           
static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds)
           
static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBlockServiceUtil

public ResourceBlockServiceUtil()
Method Detail

addCompanyScopePermission

public static void addCompanyScopePermission(long scopeGroupId,
                                             long companyId,
                                             String name,
                                             long roleId,
                                             String actionId)
                                      throws PortalException
Throws:
PortalException

addGroupScopePermission

public static void addGroupScopePermission(long scopeGroupId,
                                           long companyId,
                                           long groupId,
                                           String name,
                                           long roleId,
                                           String actionId)
                                    throws PortalException
Throws:
PortalException

addIndividualScopePermission

public static void addIndividualScopePermission(long companyId,
                                                long groupId,
                                                String name,
                                                long primKey,
                                                long roleId,
                                                String actionId)
                                         throws PortalException
Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

removeAllGroupScopePermissions

public static void removeAllGroupScopePermissions(long scopeGroupId,
                                                  long companyId,
                                                  String name,
                                                  long roleId,
                                                  String actionId)
                                           throws PortalException
Throws:
PortalException

removeCompanyScopePermission

public static void removeCompanyScopePermission(long scopeGroupId,
                                                long companyId,
                                                String name,
                                                long roleId,
                                                String actionId)
                                         throws PortalException
Throws:
PortalException

removeGroupScopePermission

public static void removeGroupScopePermission(long scopeGroupId,
                                              long companyId,
                                              long groupId,
                                              String name,
                                              long roleId,
                                              String actionId)
                                       throws PortalException
Throws:
PortalException

removeIndividualScopePermission

public static void removeIndividualScopePermission(long companyId,
                                                   long groupId,
                                                   String name,
                                                   long primKey,
                                                   long roleId,
                                                   String actionId)
                                            throws PortalException
Throws:
PortalException

setCompanyScopePermissions

public static void setCompanyScopePermissions(long scopeGroupId,
                                              long companyId,
                                              String name,
                                              long roleId,
                                              List<String> actionIds)
                                       throws PortalException
Throws:
PortalException

setGroupScopePermissions

public static void setGroupScopePermissions(long scopeGroupId,
                                            long companyId,
                                            long groupId,
                                            String name,
                                            long roleId,
                                            List<String> actionIds)
                                     throws PortalException
Throws:
PortalException

setIndividualScopePermissions

public static void setIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 long primKey,
                                                 long roleId,
                                                 List<String> actionIds)
                                          throws PortalException
Throws:
PortalException

setIndividualScopePermissions

public static void setIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 long primKey,
                                                 Map<Long,String[]> roleIdsToActionIds)
                                          throws PortalException
Throws:
PortalException

getService

public static ResourceBlockService getService()

Liferay 7.0-ce-b4