Liferay 6.1.2-ce-ga3

com.liferay.portal.service
Class ResourceBlockLocalServiceUtil

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

public class ResourceBlockLocalServiceUtil
extends Object

The utility for the resource block local service. This utility wraps ResourceBlockLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
ResourceBlockLocalService, ResourceBlockLocalServiceBaseImpl, ResourceBlockLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
ResourceBlockLocalServiceUtil()
           
 
Method Summary
static void addCompanyScopePermission(long companyId, String name, long roleId, String actionId)
           
static void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
static void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId)
           
static void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
static void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
static void addIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId)
           
static void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong)
           
static void addIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
static ResourceBlock addResourceBlock(long companyId, long groupId, String name, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
          Adds a resource block if necessary and associates the resource block permissions with it.
static ResourceBlock addResourceBlock(ResourceBlock resourceBlock)
          Adds the resource block to the database.
static ResourceBlock createResourceBlock(long resourceBlockId)
          Creates a new resource block with the primary key.
static ResourceBlock deleteResourceBlock(long resourceBlockId)
          Deletes the resource block with the primary key from the database.
static ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
          Deletes the resource block from the database.
static DynamicQuery dynamicQuery()
           
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
static ResourceBlock fetchResourceBlock(long resourceBlockId)
           
static long getActionId(String name, String actionId)
           
static long getActionIds(String name, List<String> actionIds)
           
static List<String> getActionIds(String name, long actionIdsLong)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId)
           
static List<String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId)
           
static PermissionedModel getPermissionedModel(String name, long primKey)
           
static List<String> getPermissions(ResourceBlock resourceBlock, long roleId)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static ResourceBlock getResourceBlock(long resourceBlockId)
          Returns the resource block with the primary key.
static ResourceBlock getResourceBlock(String name, long primKey)
           
static List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId)
           
static ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds)
           
static List<ResourceBlock> getResourceBlocks(int start, int end)
          Returns a range of all the resource blocks.
static int getResourceBlocksCount()
          Returns the number of resource blocks.
static ResourceBlockLocalService getService()
           
static boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
static boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
static boolean isSupported(String name)
           
static void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
           
static void releasePermissionedModelResourceBlock(String name, long primKey)
           
static void releaseResourceBlock(long resourceBlockId)
          Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero.
static void releaseResourceBlock(ResourceBlock resourceBlock)
          Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero.
static void removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
static void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId)
           
static void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId)
           
static void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
static void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId)
           
static void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
static void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
static void removeIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId)
           
static void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong)
           
static void removeIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
static void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds)
           
static void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
static void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds)
           
static void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
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, long roleId, long actionIdsLong)
           
static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds)
           
static void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, List<String> actionIds)
           
static void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
 void setService(ResourceBlockLocalService service)
          Deprecated.  
static void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator)
           
static void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator)
           
static void updateIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator)
           
static ResourceBlock updateResourceBlock(ResourceBlock resourceBlock)
          Updates the resource block in the database or adds it if it does not yet exist.
static ResourceBlock updateResourceBlock(ResourceBlock resourceBlock, boolean merge)
          Updates the resource block in the database or adds it if it does not yet exist.
static ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, PermissionedModel permissionedModel, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
           
static void verifyResourceBlockId(long companyId, String name, long primKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBlockLocalServiceUtil

public ResourceBlockLocalServiceUtil()
Method Detail

addResourceBlock

public static ResourceBlock addResourceBlock(ResourceBlock resourceBlock)
                                      throws SystemException
Adds the resource block to the database. Also notifies the appropriate model listeners.

Parameters:
resourceBlock - the resource block
Returns:
the resource block that was added
Throws:
SystemException - if a system exception occurred

createResourceBlock

public static ResourceBlock createResourceBlock(long resourceBlockId)
Creates a new resource block with the primary key. Does not add the resource block to the database.

Parameters:
resourceBlockId - the primary key for the new resource block
Returns:
the new resource block

deleteResourceBlock

public static ResourceBlock deleteResourceBlock(long resourceBlockId)
                                         throws PortalException,
                                                SystemException
Deletes the resource block with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
resourceBlockId - the primary key of the resource block
Returns:
the resource block that was removed
Throws:
PortalException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred

deleteResourceBlock

public static ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
                                         throws SystemException
Deletes the resource block from the database. Also notifies the appropriate model listeners.

Parameters:
resourceBlock - the resource block
Returns:
the resource block that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchResourceBlock

public static ResourceBlock fetchResourceBlock(long resourceBlockId)
                                        throws SystemException
Throws:
SystemException

getResourceBlock

public static ResourceBlock getResourceBlock(long resourceBlockId)
                                      throws PortalException,
                                             SystemException
Returns the resource block with the primary key.

Parameters:
resourceBlockId - the primary key of the resource block
Returns:
the resource block
Throws:
PortalException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getResourceBlocks

public static List<ResourceBlock> getResourceBlocks(int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the resource blocks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of resource blocks
end - the upper bound of the range of resource blocks (not inclusive)
Returns:
the range of resource blocks
Throws:
SystemException - if a system exception occurred

getResourceBlocksCount

public static int getResourceBlocksCount()
                                  throws SystemException
Returns the number of resource blocks.

Returns:
the number of resource blocks
Throws:
SystemException - if a system exception occurred

updateResourceBlock

public static ResourceBlock updateResourceBlock(ResourceBlock resourceBlock)
                                         throws SystemException
Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
resourceBlock - the resource block
Returns:
the resource block that was updated
Throws:
SystemException - if a system exception occurred

updateResourceBlock

public static ResourceBlock updateResourceBlock(ResourceBlock resourceBlock,
                                                boolean merge)
                                         throws SystemException
Updates the resource block in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
resourceBlock - the resource block
merge - whether to merge the resource block with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the resource block that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addCompanyScopePermission

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

addCompanyScopePermissions

public static void addCompanyScopePermissions(long companyId,
                                              String name,
                                              long roleId,
                                              long actionIdsLong)
                                       throws SystemException
Throws:
SystemException

addGroupScopePermission

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

addGroupScopePermissions

public static void addGroupScopePermissions(long companyId,
                                            long groupId,
                                            String name,
                                            long roleId,
                                            long actionIdsLong)
                                     throws SystemException
Throws:
SystemException

addIndividualScopePermission

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

addIndividualScopePermission

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

addIndividualScopePermissions

public static void addIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 long primKey,
                                                 long roleId,
                                                 long actionIdsLong)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

addIndividualScopePermissions

public static void addIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 PermissionedModel permissionedModel,
                                                 long roleId,
                                                 long actionIdsLong)
                                          throws SystemException
Throws:
SystemException

addResourceBlock

public static ResourceBlock addResourceBlock(long companyId,
                                             long groupId,
                                             String name,
                                             String permissionsHash,
                                             ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
                                      throws SystemException
Adds a resource block if necessary and associates the resource block permissions with it. The resource block will have an initial reference count of one.

Parameters:
companyId - the primary key of the resource block's company
groupId - the primary key of the resource block's group
name - the resource block's name
permissionsHash - the resource block's permission hash
resourceBlockPermissionsContainer - the resource block's permissions container
Returns:
the new resource block
Throws:
SystemException - if a system exception occurred

getActionId

public static long getActionId(String name,
                               String actionId)
                        throws PortalException
Throws:
PortalException

getActionIds

public static long getActionIds(String name,
                                List<String> actionIds)
                         throws PortalException
Throws:
PortalException

getActionIds

public static List<String> getActionIds(String name,
                                        long actionIdsLong)
                                 throws SystemException
Throws:
SystemException

getCompanyScopePermissions

public static List<String> getCompanyScopePermissions(ResourceBlock resourceBlock,
                                                      long roleId)
                                               throws SystemException
Throws:
SystemException

getGroupScopePermissions

public static List<String> getGroupScopePermissions(ResourceBlock resourceBlock,
                                                    long roleId)
                                             throws SystemException
Throws:
SystemException

getPermissionedModel

public static PermissionedModel getPermissionedModel(String name,
                                                     long primKey)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

getPermissions

public static List<String> getPermissions(ResourceBlock resourceBlock,
                                          long roleId)
                                   throws SystemException
Throws:
SystemException

getResourceBlock

public static ResourceBlock getResourceBlock(String name,
                                             long primKey)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getResourceBlockIds

public static List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
                                             String name,
                                             String actionId)
                                      throws PortalException
Throws:
PortalException

getResourceBlockIdsBag

public static ResourceBlockIdsBag getResourceBlockIdsBag(long companyId,
                                                         long groupId,
                                                         String name,
                                                         long[] roleIds)
                                                  throws SystemException
Throws:
SystemException

hasPermission

public static boolean hasPermission(String name,
                                    long primKey,
                                    String actionId,
                                    ResourceBlockIdsBag resourceBlockIdsBag)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

hasPermission

public static boolean hasPermission(String name,
                                    PermissionedModel permissionedModel,
                                    String actionId,
                                    ResourceBlockIdsBag resourceBlockIdsBag)
                             throws PortalException
Throws:
PortalException

isSupported

public static boolean isSupported(String name)

releasePermissionedModelResourceBlock

public static void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
                                                  throws SystemException
Throws:
SystemException

releasePermissionedModelResourceBlock

public static void releasePermissionedModelResourceBlock(String name,
                                                         long primKey)
                                                  throws PortalException,
                                                         SystemException
Throws:
PortalException
SystemException

releaseResourceBlock

public static void releaseResourceBlock(long resourceBlockId)
                                 throws SystemException
Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero.

Parameters:
resourceBlockId - the primary key of the resource block
Throws:
SystemException - if a system exception occurred

releaseResourceBlock

public static void releaseResourceBlock(ResourceBlock resourceBlock)
                                 throws SystemException
Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero.

Parameters:
resourceBlock - the resource block
Throws:
SystemException - if a system exception occurred

removeAllGroupScopePermissions

public static void removeAllGroupScopePermissions(long companyId,
                                                  String name,
                                                  long roleId,
                                                  long actionIdsLong)
                                           throws SystemException
Throws:
SystemException

removeAllGroupScopePermissions

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

removeCompanyScopePermission

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

removeCompanyScopePermissions

public static void removeCompanyScopePermissions(long companyId,
                                                 String name,
                                                 long roleId,
                                                 long actionIdsLong)
                                          throws SystemException
Throws:
SystemException

removeGroupScopePermission

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

removeGroupScopePermissions

public static void removeGroupScopePermissions(long companyId,
                                               long groupId,
                                               String name,
                                               long roleId,
                                               long actionIdsLong)
                                        throws SystemException
Throws:
SystemException

removeIndividualScopePermission

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

removeIndividualScopePermission

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

removeIndividualScopePermissions

public static void removeIndividualScopePermissions(long companyId,
                                                    long groupId,
                                                    String name,
                                                    long primKey,
                                                    long roleId,
                                                    long actionIdsLong)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

removeIndividualScopePermissions

public static void removeIndividualScopePermissions(long companyId,
                                                    long groupId,
                                                    String name,
                                                    PermissionedModel permissionedModel,
                                                    long roleId,
                                                    long actionIdsLong)
                                             throws SystemException
Throws:
SystemException

setCompanyScopePermissions

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

setCompanyScopePermissions

public static void setCompanyScopePermissions(long companyId,
                                              String name,
                                              long roleId,
                                              long actionIdsLong)
                                       throws SystemException
Throws:
SystemException

setGroupScopePermissions

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

setGroupScopePermissions

public static void setGroupScopePermissions(long companyId,
                                            long groupId,
                                            String name,
                                            long roleId,
                                            long actionIdsLong)
                                     throws SystemException
Throws:
SystemException

setIndividualScopePermissions

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

setIndividualScopePermissions

public static void setIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 long primKey,
                                                 long roleId,
                                                 long actionIdsLong)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

setIndividualScopePermissions

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

setIndividualScopePermissions

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

setIndividualScopePermissions

public static void setIndividualScopePermissions(long companyId,
                                                 long groupId,
                                                 String name,
                                                 PermissionedModel permissionedModel,
                                                 long roleId,
                                                 long actionIdsLong)
                                          throws SystemException
Throws:
SystemException

updateCompanyScopePermissions

public static void updateCompanyScopePermissions(long companyId,
                                                 String name,
                                                 long roleId,
                                                 long actionIdsLong,
                                                 int operator)
                                          throws SystemException
Throws:
SystemException

updateGroupScopePermissions

public static void updateGroupScopePermissions(long companyId,
                                               long groupId,
                                               String name,
                                               long roleId,
                                               long actionIdsLong,
                                               int operator)
                                        throws SystemException
Throws:
SystemException

updateIndividualScopePermissions

public static void updateIndividualScopePermissions(long companyId,
                                                    long groupId,
                                                    String name,
                                                    PermissionedModel permissionedModel,
                                                    long roleId,
                                                    long actionIdsLong,
                                                    int operator)
                                             throws SystemException
Throws:
SystemException

updateResourceBlockId

public static ResourceBlock updateResourceBlockId(long companyId,
                                                  long groupId,
                                                  String name,
                                                  PermissionedModel permissionedModel,
                                                  String permissionsHash,
                                                  ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
                                           throws SystemException
Throws:
SystemException

verifyResourceBlockId

public static void verifyResourceBlockId(long companyId,
                                         String name,
                                         long primKey)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getService

public static ResourceBlockLocalService getService()

setService

public void setService(ResourceBlockLocalService service)
Deprecated. 


Liferay 6.1.2-ce-ga3