Liferay 7.0-ce-b4

com.liferay.portal.service
Class ResourceBlockLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.ResourceBlockLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PermissionedModelLocalService, PersistedModelLocalService, ResourceBlockLocalService, ServiceWrapper<ResourceBlockLocalService>

@ProviderType
public class ResourceBlockLocalServiceWrapper
extends Object
implements ResourceBlockLocalService, ServiceWrapper<ResourceBlockLocalService>

Provides a wrapper for ResourceBlockLocalService.

See Also:
ResourceBlockLocalService

Constructor Summary
ResourceBlockLocalServiceWrapper(ResourceBlockLocalService resourceBlockLocalService)
           
 
Method Summary
 void addCompanyScopePermission(long companyId, String name, long roleId, String actionId)
           
 void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
 void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId)
           
 void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
 void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
 void addIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId)
           
 void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong)
           
 void addIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
 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.
 ResourceBlock addResourceBlock(ResourceBlock resourceBlock)
          Adds the resource block to the database.
 ResourceBlock createResourceBlock(long resourceBlockId)
          Creates a new resource block with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 ResourceBlock deleteResourceBlock(long resourceBlockId)
          Deletes the resource block with the primary key from the database.
 ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
          Deletes the resource block from the database.
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 ResourceBlock fetchResourceBlock(long resourceBlockId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 long getActionId(String name, String actionId)
           
 long getActionIds(String name, List<String> actionIds)
           
 List<String> getActionIds(String name, long actionIdsLong)
           
 List<String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId)
           
 List<String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PermissionedModel getPermissionedModel(String name, long primKey)
           
 List<String> getPermissions(ResourceBlock resourceBlock, long roleId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceBlock getResourceBlock(long resourceBlockId)
          Returns the resource block with the primary key.
 ResourceBlock getResourceBlock(String name, long primKey)
           
 List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId)
           
 ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds)
           
 List<ResourceBlock> getResourceBlocks(int start, int end)
          Returns a range of all the resource blocks.
 int getResourceBlocksCount()
          Returns the number of resource blocks.
 List<Role> getRoles(String name, long primKey, String actionId)
           
 ResourceBlockLocalService getWrappedService()
           
 boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
 boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
 boolean isSupported(String name)
           
 void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
           
 void releasePermissionedModelResourceBlock(String name, long primKey)
           
 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.
 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.
 void removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
 void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId)
           
 void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId)
           
 void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
 void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId)
           
 void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
 void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId)
           
 void removeIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId)
           
 void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong)
           
 void removeIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
 void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds)
           
 void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
           
 void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds)
           
 void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
           
 void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds)
           
 void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong)
           
 void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds)
           
 void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, List<String> actionIds)
           
 void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
           
 void setWrappedService(ResourceBlockLocalService resourceBlockLocalService)
           
 void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator)
           
 void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator)
           
 void updateIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator)
           
 ResourceBlock updateResourceBlock(ResourceBlock resourceBlock)
          Updates the resource block in the database or adds it if it does not yet exist.
 ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, PermissionedModel permissionedModel, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
           
 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

ResourceBlockLocalServiceWrapper

public ResourceBlockLocalServiceWrapper(ResourceBlockLocalService resourceBlockLocalService)
Method Detail

addCompanyScopePermission

public void addCompanyScopePermission(long companyId,
                                      String name,
                                      long roleId,
                                      String actionId)
                               throws PortalException
Specified by:
addCompanyScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

addCompanyScopePermissions

public void addCompanyScopePermissions(long companyId,
                                       String name,
                                       long roleId,
                                       long actionIdsLong)
Specified by:
addCompanyScopePermissions in interface ResourceBlockLocalService

addGroupScopePermission

public void addGroupScopePermission(long companyId,
                                    long groupId,
                                    String name,
                                    long roleId,
                                    String actionId)
                             throws PortalException
Specified by:
addGroupScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

addGroupScopePermissions

public void addGroupScopePermissions(long companyId,
                                     long groupId,
                                     String name,
                                     long roleId,
                                     long actionIdsLong)
Specified by:
addGroupScopePermissions in interface ResourceBlockLocalService

addIndividualScopePermission

public void addIndividualScopePermission(long companyId,
                                         long groupId,
                                         String name,
                                         PermissionedModel permissionedModel,
                                         long roleId,
                                         String actionId)
                                  throws PortalException
Specified by:
addIndividualScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

addIndividualScopePermission

public void addIndividualScopePermission(long companyId,
                                         long groupId,
                                         String name,
                                         long primKey,
                                         long roleId,
                                         String actionId)
                                  throws PortalException
Specified by:
addIndividualScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

addIndividualScopePermissions

public void addIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          PermissionedModel permissionedModel,
                                          long roleId,
                                          long actionIdsLong)
Specified by:
addIndividualScopePermissions in interface ResourceBlockLocalService

addIndividualScopePermissions

public void addIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          long primKey,
                                          long roleId,
                                          long actionIdsLong)
                                   throws PortalException
Specified by:
addIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

addResourceBlock

public 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. The resource block will have an initial reference count of one.

Specified by:
addResourceBlock in interface ResourceBlockLocalService
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

addResourceBlock

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

Specified by:
addResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlock - the resource block
Returns:
the resource block that was added

createResourceBlock

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

Specified by:
createResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlockId - the primary key for the new resource block
Returns:
the new resource block

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface ResourceBlockLocalService
Throws:
PortalException

deleteResourceBlock

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

Specified by:
deleteResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlock - the resource block
Returns:
the resource block that was removed

deleteResourceBlock

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

Specified by:
deleteResourceBlock in interface ResourceBlockLocalService
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

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface ResourceBlockLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ResourceBlockLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceBlockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface ResourceBlockLocalService
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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceBlockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface ResourceBlockLocalService
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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ResourceBlockLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ResourceBlockLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchResourceBlock

public ResourceBlock fetchResourceBlock(long resourceBlockId)
Specified by:
fetchResourceBlock in interface ResourceBlockLocalService

getActionId

public long getActionId(String name,
                        String actionId)
                 throws PortalException
Specified by:
getActionId in interface ResourceBlockLocalService
Throws:
PortalException

getActionIds

public long getActionIds(String name,
                         List<String> actionIds)
                  throws PortalException
Specified by:
getActionIds in interface ResourceBlockLocalService
Throws:
PortalException

getActionIds

public List<String> getActionIds(String name,
                                 long actionIdsLong)
Specified by:
getActionIds in interface ResourceBlockLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface ResourceBlockLocalService

getCompanyScopePermissions

public List<String> getCompanyScopePermissions(ResourceBlock resourceBlock,
                                               long roleId)
Specified by:
getCompanyScopePermissions in interface ResourceBlockLocalService

getGroupScopePermissions

public List<String> getGroupScopePermissions(ResourceBlock resourceBlock,
                                             long roleId)
Specified by:
getGroupScopePermissions in interface ResourceBlockLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface ResourceBlockLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface ResourceBlockLocalService
Returns:
the OSGi service identifier

getPermissionedModel

public PermissionedModel getPermissionedModel(String name,
                                              long primKey)
                                       throws PortalException
Specified by:
getPermissionedModel in interface ResourceBlockLocalService
Throws:
PortalException

getPermissions

public List<String> getPermissions(ResourceBlock resourceBlock,
                                   long roleId)
Specified by:
getPermissions in interface ResourceBlockLocalService

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface ResourceBlockLocalService
Throws:
PortalException

getResourceBlock

public ResourceBlock getResourceBlock(String name,
                                      long primKey)
                               throws PortalException
Specified by:
getResourceBlock in interface ResourceBlockLocalService
Throws:
PortalException

getResourceBlock

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

Specified by:
getResourceBlock in interface ResourceBlockLocalService
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

getResourceBlockIds

public List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
                                      String name,
                                      String actionId)
                               throws PortalException
Specified by:
getResourceBlockIds in interface ResourceBlockLocalService
Throws:
PortalException

getResourceBlockIdsBag

public ResourceBlockIdsBag getResourceBlockIdsBag(long companyId,
                                                  long groupId,
                                                  String name,
                                                  long[] roleIds)
Specified by:
getResourceBlockIdsBag in interface ResourceBlockLocalService

getResourceBlocks

public List<ResourceBlock> getResourceBlocks(int start,
                                             int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ResourceBlockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getResourceBlocks in interface ResourceBlockLocalService
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

getResourceBlocksCount

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

Specified by:
getResourceBlocksCount in interface ResourceBlockLocalService
Returns:
the number of resource blocks

getRoles

public List<Role> getRoles(String name,
                           long primKey,
                           String actionId)
                    throws PortalException
Specified by:
getRoles in interface ResourceBlockLocalService
Throws:
PortalException

hasPermission

public boolean hasPermission(String name,
                             PermissionedModel permissionedModel,
                             String actionId,
                             ResourceBlockIdsBag resourceBlockIdsBag)
                      throws PortalException
Specified by:
hasPermission in interface ResourceBlockLocalService
Throws:
PortalException

hasPermission

public boolean hasPermission(String name,
                             long primKey,
                             String actionId,
                             ResourceBlockIdsBag resourceBlockIdsBag)
                      throws PortalException
Specified by:
hasPermission in interface ResourceBlockLocalService
Throws:
PortalException

isSupported

public boolean isSupported(String name)
Specified by:
isSupported in interface ResourceBlockLocalService

releasePermissionedModelResourceBlock

public void releasePermissionedModelResourceBlock(String name,
                                                  long primKey)
                                           throws PortalException
Specified by:
releasePermissionedModelResourceBlock in interface ResourceBlockLocalService
Throws:
PortalException

releasePermissionedModelResourceBlock

public void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
Specified by:
releasePermissionedModelResourceBlock in interface ResourceBlockLocalService

releaseResourceBlock

public 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.

Specified by:
releaseResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlock - the resource block

releaseResourceBlock

public 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.

Specified by:
releaseResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlockId - the primary key of the resource block

removeAllGroupScopePermissions

public void removeAllGroupScopePermissions(long companyId,
                                           String name,
                                           long roleId,
                                           String actionId)
                                    throws PortalException
Specified by:
removeAllGroupScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

removeAllGroupScopePermissions

public void removeAllGroupScopePermissions(long companyId,
                                           String name,
                                           long roleId,
                                           long actionIdsLong)
Specified by:
removeAllGroupScopePermissions in interface ResourceBlockLocalService

removeCompanyScopePermission

public void removeCompanyScopePermission(long companyId,
                                         String name,
                                         long roleId,
                                         String actionId)
                                  throws PortalException
Specified by:
removeCompanyScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

removeCompanyScopePermissions

public void removeCompanyScopePermissions(long companyId,
                                          String name,
                                          long roleId,
                                          long actionIdsLong)
Specified by:
removeCompanyScopePermissions in interface ResourceBlockLocalService

removeGroupScopePermission

public void removeGroupScopePermission(long companyId,
                                       long groupId,
                                       String name,
                                       long roleId,
                                       String actionId)
                                throws PortalException
Specified by:
removeGroupScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

removeGroupScopePermissions

public void removeGroupScopePermissions(long companyId,
                                        long groupId,
                                        String name,
                                        long roleId,
                                        long actionIdsLong)
Specified by:
removeGroupScopePermissions in interface ResourceBlockLocalService

removeIndividualScopePermission

public void removeIndividualScopePermission(long companyId,
                                            long groupId,
                                            String name,
                                            PermissionedModel permissionedModel,
                                            long roleId,
                                            String actionId)
                                     throws PortalException
Specified by:
removeIndividualScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

removeIndividualScopePermission

public void removeIndividualScopePermission(long companyId,
                                            long groupId,
                                            String name,
                                            long primKey,
                                            long roleId,
                                            String actionId)
                                     throws PortalException
Specified by:
removeIndividualScopePermission in interface ResourceBlockLocalService
Throws:
PortalException

removeIndividualScopePermissions

public void removeIndividualScopePermissions(long companyId,
                                             long groupId,
                                             String name,
                                             PermissionedModel permissionedModel,
                                             long roleId,
                                             long actionIdsLong)
Specified by:
removeIndividualScopePermissions in interface ResourceBlockLocalService

removeIndividualScopePermissions

public void removeIndividualScopePermissions(long companyId,
                                             long groupId,
                                             String name,
                                             long primKey,
                                             long roleId,
                                             long actionIdsLong)
                                      throws PortalException
Specified by:
removeIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setCompanyScopePermissions

public void setCompanyScopePermissions(long companyId,
                                       String name,
                                       long roleId,
                                       List<String> actionIds)
                                throws PortalException
Specified by:
setCompanyScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setCompanyScopePermissions

public void setCompanyScopePermissions(long companyId,
                                       String name,
                                       long roleId,
                                       long actionIdsLong)
Specified by:
setCompanyScopePermissions in interface ResourceBlockLocalService

setGroupScopePermissions

public void setGroupScopePermissions(long companyId,
                                     long groupId,
                                     String name,
                                     long roleId,
                                     List<String> actionIds)
                              throws PortalException
Specified by:
setGroupScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setGroupScopePermissions

public void setGroupScopePermissions(long companyId,
                                     long groupId,
                                     String name,
                                     long roleId,
                                     long actionIdsLong)
Specified by:
setGroupScopePermissions in interface ResourceBlockLocalService

setIndividualScopePermissions

public void setIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          PermissionedModel permissionedModel,
                                          long roleId,
                                          List<String> actionIds)
                                   throws PortalException
Specified by:
setIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setIndividualScopePermissions

public void setIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          PermissionedModel permissionedModel,
                                          long roleId,
                                          long actionIdsLong)
Specified by:
setIndividualScopePermissions in interface ResourceBlockLocalService

setIndividualScopePermissions

public void setIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          long primKey,
                                          long roleId,
                                          List<String> actionIds)
                                   throws PortalException
Specified by:
setIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setIndividualScopePermissions

public void setIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          long primKey,
                                          long roleId,
                                          long actionIdsLong)
                                   throws PortalException
Specified by:
setIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

setIndividualScopePermissions

public void setIndividualScopePermissions(long companyId,
                                          long groupId,
                                          String name,
                                          long primKey,
                                          Map<Long,String[]> roleIdsToActionIds)
                                   throws PortalException
Specified by:
setIndividualScopePermissions in interface ResourceBlockLocalService
Throws:
PortalException

updateCompanyScopePermissions

public void updateCompanyScopePermissions(long companyId,
                                          String name,
                                          long roleId,
                                          long actionIdsLong,
                                          int operator)
Specified by:
updateCompanyScopePermissions in interface ResourceBlockLocalService

updateGroupScopePermissions

public void updateGroupScopePermissions(long companyId,
                                        long groupId,
                                        String name,
                                        long roleId,
                                        long actionIdsLong,
                                        int operator)
Specified by:
updateGroupScopePermissions in interface ResourceBlockLocalService

updateIndividualScopePermissions

public void updateIndividualScopePermissions(long companyId,
                                             long groupId,
                                             String name,
                                             PermissionedModel permissionedModel,
                                             long roleId,
                                             long actionIdsLong,
                                             int operator)
Specified by:
updateIndividualScopePermissions in interface ResourceBlockLocalService

updateResourceBlock

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

Specified by:
updateResourceBlock in interface ResourceBlockLocalService
Parameters:
resourceBlock - the resource block
Returns:
the resource block that was updated

updateResourceBlockId

public ResourceBlock updateResourceBlockId(long companyId,
                                           long groupId,
                                           String name,
                                           PermissionedModel permissionedModel,
                                           String permissionsHash,
                                           ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
Specified by:
updateResourceBlockId in interface ResourceBlockLocalService

verifyResourceBlockId

public void verifyResourceBlockId(long companyId,
                                  String name,
                                  long primKey)
                           throws PortalException
Specified by:
verifyResourceBlockId in interface ResourceBlockLocalService
Throws:
PortalException

getWrappedService

public ResourceBlockLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<ResourceBlockLocalService>

setWrappedService

public void setWrappedService(ResourceBlockLocalService resourceBlockLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<ResourceBlockLocalService>

Liferay 7.0-ce-b4