|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface ResourceBlockLocalService
The interface for the resource block local service.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
ResourceBlockLocalServiceUtil
,
ResourceBlockLocalServiceBaseImpl
,
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. |
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()
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
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. |
ResourceBlock |
fetchResourceBlock(long resourceBlockId)
|
long |
getActionId(String name,
String actionId)
|
long |
getActionIds(String name,
List<String> actionIds)
|
List<String> |
getActionIds(String name,
long actionIdsLong)
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
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)
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
ResourceBlock |
getResourceBlock(long resourceBlockId)
Returns the resource block with the primary key. |
ResourceBlock |
getResourceBlock(String name,
long primKey)
|
List<Long> |
getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
String name,
String actionId)
|
ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
String name,
long[] roleIds)
|
List<ResourceBlock> |
getResourceBlocks(int start,
int end)
Returns a range of all the resource blocks. |
int |
getResourceBlocksCount()
Returns the number of resource blocks. |
boolean |
hasPermission(String name,
long primKey,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag)
|
boolean |
hasPermission(String name,
PermissionedModel permissionedModel,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag)
|
boolean |
isSupported(String name)
|
void |
releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
|
void |
releasePermissionedModelResourceBlock(String name,
long primKey)
|
void |
releaseResourceBlock(long resourceBlockId)
Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero. |
void |
releaseResourceBlock(ResourceBlock resourceBlock)
Decrements the reference count of the resource block and updates it in the database or deletes the resource block if the reference count reaches zero. |
void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
|
void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
String actionId)
|
void |
removeCompanyScopePermission(long companyId,
String name,
long roleId,
String actionId)
|
void |
removeCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
|
void |
removeGroupScopePermission(long companyId,
long groupId,
String name,
long roleId,
String actionId)
|
void |
removeGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong)
|
void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
|
void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
String actionId)
|
void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong)
|
void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
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)
|
ResourceBlock |
updateResourceBlock(ResourceBlock resourceBlock)
Updates the resource block in the database or adds it if it does not yet exist. |
ResourceBlock |
updateResourceBlock(ResourceBlock resourceBlock,
boolean merge)
Updates the resource block in the database or adds it if it does not yet exist. |
ResourceBlock |
updateResourceBlockId(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
|
void |
verifyResourceBlockId(long companyId,
String name,
long primKey)
|
Method Detail |
---|
ResourceBlock addResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock
- the resource block
SystemException
- if a system exception occurredResourceBlock createResourceBlock(long resourceBlockId)
resourceBlockId
- the primary key for the new resource block
ResourceBlock deleteResourceBlock(long resourceBlockId) throws PortalException, SystemException
resourceBlockId
- the primary key of the resource block
PortalException
- if a resource block with the primary key could not be found
SystemException
- if a system exception occurredResourceBlock deleteResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock
- the resource block
SystemException
- if a system exception occurredDynamicQuery dynamicQuery()
List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredList 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.
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 occurredList 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.
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 query
SystemException
- 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 block
PortalException
- if a resource block with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) 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.
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 occurredResourceBlock updateResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock
- the resource block
SystemException
- if a system exception occurredResourceBlock updateResourceBlock(ResourceBlock resourceBlock, boolean merge) throws SystemException
resourceBlock
- the resource blockmerge
- whether to merge the resource block with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanvoid addCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void addIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException, SystemException
PortalException
SystemException
void addIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong) throws SystemException
SystemException
ResourceBlock addResourceBlock(long companyId, long groupId, String name, 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 container
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) long getActionId(String name, String actionId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) long getActionIds(String name, List<String> actionIds) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<String> getActionIds(String name, long actionIdsLong) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) PermissionedModel getPermissionedModel(String name, long primKey) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<String> getPermissions(ResourceBlock resourceBlock, long roleId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlock getResourceBlock(String name, long primKey) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) boolean isSupported(String name)
void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel) throws SystemException
SystemException
void releasePermissionedModelResourceBlock(String name, long primKey) throws PortalException, SystemException
PortalException
SystemException
void releaseResourceBlock(long resourceBlockId) throws SystemException
resourceBlockId
- the primary key of the resource block
SystemException
- if a system exception occurredvoid releaseResourceBlock(ResourceBlock resourceBlock) throws SystemException
resourceBlock
- the resource block
SystemException
- if a system exception occurredvoid removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void removeIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException, SystemException
PortalException
SystemException
void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException, SystemException
PortalException
SystemException
void removeIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong) throws SystemException
SystemException
void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds) throws PortalException, SystemException
PortalException
SystemException
void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds) throws PortalException, SystemException
PortalException
SystemException
void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong) throws SystemException
SystemException
void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds) throws PortalException, SystemException
PortalException
SystemException
void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException, SystemException
PortalException
SystemException
void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds) throws PortalException, SystemException
PortalException
SystemException
void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, List<String> actionIds) throws PortalException, SystemException
PortalException
SystemException
void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong) throws SystemException
SystemException
void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator) throws SystemException
SystemException
void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator) throws SystemException
SystemException
void updateIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator) throws SystemException
SystemException
ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, PermissionedModel permissionedModel, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) throws SystemException
SystemException
void verifyResourceBlockId(long companyId, String name, long primKey) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |