@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface ResourceBlockLocalService extends BaseLocalService, PermissionedModelLocalService
ResourceBlockLocalServiceUtil,
ResourceBlockLocalServiceBaseImpl,
com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl| Modifier and Type | Method and Description |
|---|---|
void |
addCompanyScopePermission(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId) |
void |
addCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
addGroupScopePermission(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.lang.String actionId) |
void |
addGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
addIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.lang.String actionId) |
void |
addIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.lang.String actionId) |
void |
addIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
addIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
ResourceBlock |
addResourceBlock(long companyId,
long groupId,
java.lang.String name,
java.lang.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.
|
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() |
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
ResourceBlock |
fetchResourceBlock(long resourceBlockId) |
long |
getActionId(java.lang.String name,
java.lang.String actionId) |
long |
getActionIds(java.lang.String name,
java.util.List<java.lang.String> actionIds) |
java.util.List<java.lang.String> |
getActionIds(java.lang.String name,
long actionIdsLong) |
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
java.util.List<java.lang.String> |
getCompanyScopePermissions(ResourceBlock resourceBlock,
long roleId) |
java.util.List<java.lang.String> |
getGroupScopePermissions(ResourceBlock resourceBlock,
long roleId) |
PermissionedModel |
getPermissionedModel(java.lang.String name,
long primKey) |
java.util.List<java.lang.String> |
getPermissions(ResourceBlock resourceBlock,
long roleId) |
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
ResourceBlock |
getResourceBlock(long resourceBlockId)
Returns the resource block with the primary key.
|
ResourceBlock |
getResourceBlock(java.lang.String name,
long primKey) |
java.util.List<java.lang.Long> |
getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
java.lang.String name,
java.lang.String actionId) |
ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
java.lang.String name,
long[] roleIds) |
java.util.List<ResourceBlock> |
getResourceBlocks(int start,
int end)
Returns a range of all the resource blocks.
|
int |
getResourceBlocksCount()
Returns the number of resource blocks.
|
boolean |
hasPermission(java.lang.String name,
long primKey,
java.lang.String actionId,
ResourceBlockIdsBag resourceBlockIdsBag) |
boolean |
hasPermission(java.lang.String name,
PermissionedModel permissionedModel,
java.lang.String actionId,
ResourceBlockIdsBag resourceBlockIdsBag) |
boolean |
isSupported(java.lang.String name) |
void |
releasePermissionedModelResourceBlock(PermissionedModel permissionedModel) |
void |
releasePermissionedModelResourceBlock(java.lang.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,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
removeAllGroupScopePermissions(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId) |
void |
removeCompanyScopePermission(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId) |
void |
removeCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
removeGroupScopePermission(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.lang.String actionId) |
void |
removeGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
removeIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.lang.String actionId) |
void |
removeIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.lang.String actionId) |
void |
removeIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
removeIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
java.util.List<java.lang.String> actionIds) |
void |
setCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
setGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.util.List<java.lang.String> actionIds) |
void |
setGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.util.List<java.lang.String> actionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
java.util.Map<java.lang.Long,java.lang.String[]> roleIdsToActionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.util.List<java.lang.String> actionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
void |
updateCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong,
int operator) |
void |
updateGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong,
int operator) |
void |
updateIndividualScopePermissions(long companyId,
long groupId,
java.lang.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,
java.lang.String name,
PermissionedModel permissionedModel,
java.lang.String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) |
void |
verifyResourceBlockId(long companyId,
java.lang.String name,
long primKey) |
@Indexable(type=REINDEX) ResourceBlock addResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock - the resource blockSystemException - if a system exception occurredResourceBlock createResourceBlock(long resourceBlockId)
resourceBlockId - the primary key for the new resource block@Indexable(type=DELETE) ResourceBlock deleteResourceBlock(long resourceBlockId) throws PortalException, SystemException
resourceBlockId - the primary key of the resource blockPortalException - if a resource block with the primary key could not be foundSystemException - if a system exception occurred@Indexable(type=DELETE) ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock - the resource blockSystemException - if a system exception occurredDynamicQuery dynamicQuery()
java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlock fetchResourceBlock(long resourceBlockId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlock getResourceBlock(long resourceBlockId) throws PortalException, SystemException
resourceBlockId - the primary key of the resource blockPortalException - if a resource block with the primary key could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel in interface PersistedModelLocalServicePortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<ResourceBlock> getResourceBlocks(int start, int end) throws SystemException
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.
start - the lower bound of the range of resource blocksend - the upper bound of the range of resource blocks (not inclusive)SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getResourceBlocksCount() throws SystemException
SystemException - if a system exception occurred@Indexable(type=REINDEX) ResourceBlock updateResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock - the resource blockSystemException - if a system exception occurredjava.lang.String getBeanIdentifier()
void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanvoid addCompanyScopePermission(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid addGroupScopePermission(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid addIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid addIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionResourceBlock addResourceBlock(long companyId, long groupId, java.lang.String name, java.lang.String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) throws SystemException
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 containerSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) long getActionId(java.lang.String name, java.lang.String actionId) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) long getActionIds(java.lang.String name, java.util.List<java.lang.String> actionIds) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.String> getActionIds(java.lang.String name, long actionIdsLong) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) PermissionedModel getPermissionedModel(java.lang.String name, long primKey) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.String> getPermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlock getResourceBlock(java.lang.String name, long primKey) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<java.lang.Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, java.lang.String name, java.lang.String actionId) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, java.lang.String name, long[] roleIds) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasPermission(java.lang.String name, long primKey, java.lang.String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasPermission(java.lang.String name, PermissionedModel permissionedModel, java.lang.String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) boolean isSupported(java.lang.String name)
@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel) throws SystemException
SystemExceptionvoid releasePermissionedModelResourceBlock(java.lang.String name,
long primKey)
throws PortalException,
SystemException
PortalExceptionSystemException@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) void releaseResourceBlock(long resourceBlockId) throws SystemException
resourceBlockId - the primary key of the resource blockSystemException - if a system exception occurred@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) void releaseResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock - the resource blockSystemException - if a system exception occurredvoid removeAllGroupScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid removeAllGroupScopePermissions(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeCompanyScopePermission(long companyId,
java.lang.String name,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid removeGroupScopePermission(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid removeIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeIndividualScopePermission(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.lang.String actionId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid removeIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid setCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
java.util.List<java.lang.String> actionIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid setGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
java.util.List<java.lang.String> actionIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
java.util.List<java.lang.String> actionIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
long roleId,
long actionIdsLong)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
long primKey,
java.util.Map<java.lang.Long,java.lang.String[]> roleIdsToActionIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
java.util.List<java.lang.String> actionIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionvoid setIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
throws SystemException
SystemExceptionvoid updateCompanyScopePermissions(long companyId,
java.lang.String name,
long roleId,
long actionIdsLong,
int operator)
throws SystemException
SystemExceptionvoid updateGroupScopePermissions(long companyId,
long groupId,
java.lang.String name,
long roleId,
long actionIdsLong,
int operator)
throws SystemException
SystemExceptionvoid updateIndividualScopePermissions(long companyId,
long groupId,
java.lang.String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong,
int operator)
throws SystemException
SystemException@Transactional(isolation=READ_COMMITTED, propagation=REQUIRES_NEW) ResourceBlock updateResourceBlockId(long companyId, long groupId, java.lang.String name, PermissionedModel permissionedModel, java.lang.String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) throws SystemException
SystemExceptionvoid verifyResourceBlockId(long companyId,
java.lang.String name,
long primKey)
throws PortalException,
SystemException
PortalExceptionSystemException