Liferay 6.2-ce-ga5

com.liferay.portal.service.impl
Class ResourceBlockLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PermissionedModelLocalService, PersistedModelLocalService, ResourceBlockLocalService

public class ResourceBlockLocalServiceImpl
extends ResourceBlockLocalServiceBaseImpl

Provides the local service for accessing, adding, deleting, and updating resource blocks.


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, backgroundTaskLocalService, backgroundTaskPersistence, backgroundTaskService, browserTrackerLocalService, browserTrackerPersistence, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, cmisRepositoryLocalService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutBranchLocalService, layoutBranchPersistence, layoutBranchService, layoutFinder, layoutFriendlyURLLocalService, layoutFriendlyURLPersistence, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutRevisionLocalService, layoutRevisionPersistence, layoutRevisionService, layoutService, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetBranchService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockFinder, lockLocalService, lockPersistence, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionService, persistedModelLocalServiceRegistry, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portalLocalService, portalPreferencesLocalService, portalPreferencesPersistence, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPermissionLocalService, resourceBlockPermissionPersistence, resourceBlockPersistence, resourceBlockService, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourceTypePermissionFinder, resourceTypePermissionLocalService, resourceTypePermissionPersistence, roleFinder, roleLocalService, rolePersistence, roleService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, stagingLocalService, stagingService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userNotificationDeliveryLocalService, userNotificationDeliveryPersistence, userNotificationEventLocalService, userNotificationEventPersistence, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, virtualHostLocalService, virtualHostPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
ResourceBlockLocalServiceImpl()
           
 
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.
protected  void checkGuestSupportedPermission(long companyId, String name, long roleId, List<String> actionIds)
           
 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.
 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)
           
 PermissionedModel getPermissionedModel(String name, long primKey)
           
 List<String> getPermissions(ResourceBlock resourceBlock, long roleId)
           
 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)
           
 boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
 boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag)
           
protected  boolean isGuestRole(long companyId, long roleId)
           
 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 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)
           
protected  void updatePermissions(List<ResourceBlock> resourceBlocks, long roleId, long actionIdsLong, int operator)
           
protected  void updatePermissionsHash(ResourceBlock resourceBlock)
           
 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 com.liferay.portal.service.base.ResourceBlockLocalServiceBaseImpl
addResourceBlock, afterPropertiesSet, createResourceBlock, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchResourceBlock, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTaskService, getBeanIdentifier, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCMISRepositoryLocalService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutBranchLocalService, getLayoutBranchPersistence, getLayoutBranchService, getLayoutFinder, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutRevisionLocalService, getLayoutRevisionPersistence, getLayoutRevisionService, getLayoutService, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetBranchService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockFinder, getLockLocalService, getLockPersistence, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionService, getPersistedModel, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortalLocalService, getPortalPreferencesLocalService, getPortalPreferencesPersistence, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceActionLocalService, getResourceActionPersistence, getResourceBlock, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPermissionLocalService, getResourceBlockPermissionPersistence, getResourceBlockPersistence, getResourceBlocks, getResourceBlocksCount, getResourceBlockService, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourceTypePermissionFinder, getResourceTypePermissionLocalService, getResourceTypePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getStagingLocalService, getStagingService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserNotificationDeliveryLocalService, getUserNotificationDeliveryPersistence, getUserNotificationEventLocalService, getUserNotificationEventPersistence, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getVirtualHostLocalService, getVirtualHostPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setBackgroundTaskLocalService, setBackgroundTaskPersistence, setBackgroundTaskService, setBeanIdentifier, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCMISRepositoryLocalService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutBranchLocalService, setLayoutBranchPersistence, setLayoutBranchService, setLayoutFinder, setLayoutFriendlyURLLocalService, setLayoutFriendlyURLPersistence, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutRevisionLocalService, setLayoutRevisionPersistence, setLayoutRevisionService, setLayoutService, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetBranchService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockFinder, setLockLocalService, setLockPersistence, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionService, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortalLocalService, setPortalPreferencesLocalService, setPortalPreferencesPersistence, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPermissionLocalService, setResourceBlockPermissionPersistence, setResourceBlockPersistence, setResourceBlockService, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourceTypePermissionFinder, setResourceTypePermissionLocalService, setResourceTypePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setStagingLocalService, setStagingService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserNotificationDeliveryLocalService, setUserNotificationDeliveryPersistence, setUserNotificationEventLocalService, setUserNotificationEventPersistence, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setVirtualHostLocalService, setVirtualHostPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateResourceBlock
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBlockLocalServiceImpl

public ResourceBlockLocalServiceImpl()
Method Detail

addCompanyScopePermission

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

addCompanyScopePermissions

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

addGroupScopePermission

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

addGroupScopePermissions

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

addIndividualScopePermission

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

addIndividualScopePermission

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

addIndividualScopePermissions

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

addIndividualScopePermissions

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

addResourceBlock

public 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

deleteResourceBlock

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

Specified by:
deleteResourceBlock in interface ResourceBlockLocalService
Overrides:
deleteResourceBlock in class ResourceBlockLocalServiceBaseImpl
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 ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
                                  throws SystemException
Description copied from class: ResourceBlockLocalServiceBaseImpl
Deletes the resource block from the database. Also notifies the appropriate model listeners.

Specified by:
deleteResourceBlock in interface ResourceBlockLocalService
Overrides:
deleteResourceBlock in class ResourceBlockLocalServiceBaseImpl
Parameters:
resourceBlock - the resource block
Returns:
the resource block that was removed
Throws:
SystemException - if a system exception occurred

getActionId

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

getActionIds

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

getActionIds

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

getCompanyScopePermissions

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

getGroupScopePermissions

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

getPermissionedModel

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

getPermissions

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

getResourceBlock

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

getResourceBlockIds

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

getResourceBlockIdsBag

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

hasPermission

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

hasPermission

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

isSupported

public boolean isSupported(String name)

releasePermissionedModelResourceBlock

@Transactional(isolation=READ_COMMITTED,
               propagation=REQUIRES_NEW)
public void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
                                           throws SystemException
Throws:
SystemException

releasePermissionedModelResourceBlock

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

releaseResourceBlock

@Transactional(isolation=READ_COMMITTED,
               propagation=REQUIRES_NEW)
public 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

@Transactional(isolation=READ_COMMITTED,
               propagation=REQUIRES_NEW)
public 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 void removeAllGroupScopePermissions(long companyId,
                                           String name,
                                           long roleId,
                                           long actionIdsLong)
                                    throws SystemException
Throws:
SystemException

removeAllGroupScopePermissions

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

removeCompanyScopePermission

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

removeCompanyScopePermissions

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

removeGroupScopePermission

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

removeGroupScopePermissions

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

removeIndividualScopePermission

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

removeIndividualScopePermission

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

removeIndividualScopePermissions

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

removeIndividualScopePermissions

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

setCompanyScopePermissions

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

setCompanyScopePermissions

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

setGroupScopePermissions

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

setGroupScopePermissions

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

setIndividualScopePermissions

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

setIndividualScopePermissions

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

setIndividualScopePermissions

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

setIndividualScopePermissions

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

setIndividualScopePermissions

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

updateCompanyScopePermissions

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

updateGroupScopePermissions

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

updateIndividualScopePermissions

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

updateResourceBlockId

@Transactional(isolation=READ_COMMITTED,
               propagation=REQUIRES_NEW)
public ResourceBlock updateResourceBlockId(long companyId,
                                                                                                       long groupId,
                                                                                                       String name,
                                                                                                       PermissionedModel permissionedModel,
                                                                                                       String permissionsHash,
                                                                                                       ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
                                    throws SystemException
Throws:
SystemException

verifyResourceBlockId

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

checkGuestSupportedPermission

protected void checkGuestSupportedPermission(long companyId,
                                             String name,
                                             long roleId,
                                             List<String> actionIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

isGuestRole

protected boolean isGuestRole(long companyId,
                              long roleId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updatePermissions

protected void updatePermissions(List<ResourceBlock> resourceBlocks,
                                 long roleId,
                                 long actionIdsLong,
                                 int operator)
                          throws SystemException
Throws:
SystemException

updatePermissionsHash

protected void updatePermissionsHash(ResourceBlock resourceBlock)
                              throws SystemException
Throws:
SystemException

Liferay 6.2-ce-ga5