public class ResourceBlockLocalServiceImpl extends ResourceBlockLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, resourceActionLocalService, resourceActionPersistence, resourceBlockFinder, resourceBlockLocalService, resourceBlockPermissionLocalService, resourceBlockPermissionPersistence, resourceBlockPersistence, resourceLocalService, resourceTypePermissionFinder, resourceTypePermissionLocalService, resourceTypePermissionPersistence, roleFinder, roleLocalService, rolePersistence
Constructor and Description |
---|
ResourceBlockLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
com.liferay.portal.kernel.model.ResourceBlock |
addResourceBlock(long companyId,
long groupId,
String name,
String permissionsHash,
com.liferay.portal.kernel.model.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) |
com.liferay.portal.kernel.model.ResourceBlock |
deleteResourceBlock(long resourceBlockId)
Deletes the resource block with the primary key from the database.
|
com.liferay.portal.kernel.model.ResourceBlock |
deleteResourceBlock(com.liferay.portal.kernel.model.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(com.liferay.portal.kernel.model.ResourceBlock resourceBlock,
long roleId) |
List<String> |
getGroupScopePermissions(com.liferay.portal.kernel.model.ResourceBlock resourceBlock,
long roleId) |
com.liferay.portal.kernel.model.PermissionedModel |
getPermissionedModel(String name,
long primKey) |
List<String> |
getPermissions(com.liferay.portal.kernel.model.ResourceBlock resourceBlock,
long roleId) |
com.liferay.portal.kernel.model.ResourceBlock |
getResourceBlock(String name,
long primKey) |
List<Long> |
getResourceBlockIds(com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag,
String name,
String actionId) |
com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
String name,
long[] roleIds) |
List<com.liferay.portal.kernel.model.Role> |
getRoles(String name,
long primKey,
String actionId) |
boolean |
hasPermission(String name,
long primKey,
String actionId,
com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag) |
boolean |
hasPermission(String name,
com.liferay.portal.kernel.model.PermissionedModel permissionedModel,
String actionId,
com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag) |
protected boolean |
isGuestRole(long companyId,
long roleId) |
boolean |
isSupported(String name) |
void |
releasePermissionedModelResourceBlock(com.liferay.portal.kernel.model.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(com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.PermissionedModel permissionedModel,
long roleId,
List<String> actionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
com.liferay.portal.kernel.model.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,
com.liferay.portal.kernel.model.PermissionedModel permissionedModel,
long roleId,
long actionIdsLong,
int operator) |
protected void |
updatePermissions(List<com.liferay.portal.kernel.model.ResourceBlock> resourceBlocks,
long roleId,
long actionIdsLong,
int operator) |
protected void |
updatePermissionsHash(com.liferay.portal.kernel.model.ResourceBlock resourceBlock) |
com.liferay.portal.kernel.model.ResourceBlock |
updateResourceBlockId(long companyId,
long groupId,
String name,
com.liferay.portal.kernel.model.PermissionedModel permissionedModel,
String permissionsHash,
com.liferay.portal.kernel.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) |
void |
verifyResourceBlockId(long companyId,
String name,
long primKey) |
addResourceBlock, afterPropertiesSet, createResourceBlock, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchResourceBlock, getActionableDynamicQuery, getCounterLocalService, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getResourceActionLocalService, getResourceActionPersistence, getResourceBlock, getResourceBlockFinder, getResourceBlockLocalService, getResourceBlockPermissionLocalService, getResourceBlockPermissionPersistence, getResourceBlockPersistence, getResourceBlocks, getResourceBlocksCount, getResourceLocalService, getResourceTypePermissionFinder, getResourceTypePermissionLocalService, getResourceTypePermissionPersistence, getRoleFinder, getRoleLocalService, getRolePersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setResourceActionLocalService, setResourceActionPersistence, setResourceBlockFinder, setResourceBlockLocalService, setResourceBlockPermissionLocalService, setResourceBlockPermissionPersistence, setResourceBlockPersistence, setResourceLocalService, setResourceTypePermissionFinder, setResourceTypePermissionLocalService, setResourceTypePermissionPersistence, setRoleFinder, setRoleLocalService, setRolePersistence, updateResourceBlock
public void addCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addIndividualScopePermission(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void addIndividualScopePermissions(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public com.liferay.portal.kernel.model.ResourceBlock addResourceBlock(long companyId, long groupId, String name, String permissionsHash, com.liferay.portal.kernel.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
companyId
- the primary key of the resource block's companygroupId
- the primary key of the resource block's groupname
- the resource block's namepermissionsHash
- the resource block's permission hashresourceBlockPermissionsContainer
- the resource block's
permissions containerpublic com.liferay.portal.kernel.model.ResourceBlock deleteResourceBlock(long resourceBlockId) throws com.liferay.portal.kernel.exception.PortalException
ResourceBlockLocalServiceBaseImpl
deleteResourceBlock
in interface com.liferay.portal.kernel.service.ResourceBlockLocalService
deleteResourceBlock
in class ResourceBlockLocalServiceBaseImpl
resourceBlockId
- the primary key of the resource blockcom.liferay.portal.kernel.exception.PortalException
- if a resource block with the primary key could not be foundpublic com.liferay.portal.kernel.model.ResourceBlock deleteResourceBlock(com.liferay.portal.kernel.model.ResourceBlock resourceBlock)
ResourceBlockLocalServiceBaseImpl
deleteResourceBlock
in interface com.liferay.portal.kernel.service.ResourceBlockLocalService
deleteResourceBlock
in class ResourceBlockLocalServiceBaseImpl
resourceBlock
- the resource blockpublic long getActionId(String name, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public long getActionIds(String name, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<String> getActionIds(String name, long actionIdsLong)
public List<String> getCompanyScopePermissions(com.liferay.portal.kernel.model.ResourceBlock resourceBlock, long roleId)
public List<String> getGroupScopePermissions(com.liferay.portal.kernel.model.ResourceBlock resourceBlock, long roleId)
public com.liferay.portal.kernel.model.PermissionedModel getPermissionedModel(String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<String> getPermissions(com.liferay.portal.kernel.model.ResourceBlock resourceBlock, long roleId)
public com.liferay.portal.kernel.model.ResourceBlock getResourceBlock(String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<Long> getResourceBlockIds(com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds)
public List<com.liferay.portal.kernel.model.Role> getRoles(String name, long primKey, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasPermission(String name, long primKey, String actionId, com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasPermission(String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, String actionId, com.liferay.portal.kernel.security.permission.ResourceBlockIdsBag resourceBlockIdsBag) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Skip public boolean isSupported(String name)
@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) public void releasePermissionedModelResourceBlock(com.liferay.portal.kernel.model.PermissionedModel permissionedModel)
public void releasePermissionedModelResourceBlock(String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) public void releaseResourceBlock(long resourceBlockId)
resourceBlockId
- the primary key of the resource block@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) public void releaseResourceBlock(com.liferay.portal.kernel.model.ResourceBlock resourceBlock)
resourceBlock
- the resource blockpublic void removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeIndividualScopePermission(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void removeIndividualScopePermissions(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator)
public void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator)
public void updateIndividualScopePermissions(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator)
@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) public com.liferay.portal.kernel.model.ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, com.liferay.portal.kernel.model.PermissionedModel permissionedModel, String permissionsHash, com.liferay.portal.kernel.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
public void verifyResourceBlockId(long companyId, String name, long primKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void checkGuestSupportedPermission(long companyId, String name, long roleId, List<String> actionIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected boolean isGuestRole(long companyId, long roleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void updatePermissions(List<com.liferay.portal.kernel.model.ResourceBlock> resourceBlocks, long roleId, long actionIdsLong, int operator)
protected void updatePermissionsHash(com.liferay.portal.kernel.model.ResourceBlock resourceBlock)