@ProviderType public class ResourceBlockLocalServiceWrapper extends Object implements ResourceBlockLocalService, ServiceWrapper<ResourceBlockLocalService>
ResourceBlockLocalService
.ResourceBlockLocalService
Constructor and Description |
---|
ResourceBlockLocalServiceWrapper(ResourceBlockLocalService resourceBlockLocalService) |
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,
PermissionedModel permissionedModel,
long roleId,
String actionId) |
void |
addIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
addIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
ResourceBlock |
addResourceBlock(long companyId,
long groupId,
String name,
String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
Adds a resource block if necessary and associates the resource block
permissions with it.
|
ResourceBlock |
addResourceBlock(ResourceBlock resourceBlock)
Adds the resource block to the database.
|
ResourceBlock |
createResourceBlock(long resourceBlockId)
Creates a new resource block with the primary key.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
ResourceBlock |
deleteResourceBlock(long resourceBlockId)
Deletes the resource block with the primary key from the database.
|
ResourceBlock |
deleteResourceBlock(ResourceBlock resourceBlock)
Deletes the resource block from the database.
|
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
ResourceBlock |
fetchResourceBlock(long resourceBlockId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
long |
getActionId(String name,
String actionId) |
long |
getActionIds(String name,
List<String> actionIds) |
List<String> |
getActionIds(String name,
long actionIdsLong) |
List<String> |
getCompanyScopePermissions(ResourceBlock resourceBlock,
long roleId) |
List<String> |
getGroupScopePermissions(ResourceBlock resourceBlock,
long roleId) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PermissionedModel |
getPermissionedModel(String name,
long primKey) |
List<String> |
getPermissions(ResourceBlock resourceBlock,
long roleId) |
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
ResourceBlock |
getResourceBlock(long resourceBlockId)
Returns the resource block with the primary key.
|
ResourceBlock |
getResourceBlock(String name,
long primKey) |
List<Long> |
getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
String name,
String actionId) |
ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
String name,
long[] roleIds) |
List<ResourceBlock> |
getResourceBlocks(int start,
int end)
Returns a range of all the resource blocks.
|
int |
getResourceBlocksCount()
Returns the number of resource blocks.
|
List<Role> |
getRoles(String name,
long primKey,
String actionId) |
ResourceBlockLocalService |
getWrappedService() |
boolean |
hasPermission(String name,
long primKey,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag) |
boolean |
hasPermission(String name,
PermissionedModel permissionedModel,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag) |
boolean |
isSupported(String name) |
void |
releasePermissionedModelResourceBlock(PermissionedModel permissionedModel) |
void |
releasePermissionedModelResourceBlock(String name,
long primKey) |
void |
releaseResourceBlock(long resourceBlockId)
Decrements the reference count of the resource block and updates it in
the database or deletes the resource block if the reference count reaches
zero.
|
void |
releaseResourceBlock(ResourceBlock resourceBlock)
Decrements the reference count of the resource block and updates it in
the database or deletes the resource block if the reference count reaches
zero.
|
void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong) |
void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
String actionId) |
void |
removeCompanyScopePermission(long companyId,
String name,
long roleId,
String actionId) |
void |
removeCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong) |
void |
removeGroupScopePermission(long companyId,
long groupId,
String name,
long roleId,
String actionId) |
void |
removeGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong) |
void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId) |
void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
String actionId) |
void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
void |
setCompanyScopePermissions(long companyId,
String name,
long roleId,
List<String> actionIds) |
void |
setCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong) |
void |
setGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
List<String> actionIds) |
void |
setGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
List<String> actionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
Map<Long,String[]> roleIdsToActionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
List<String> actionIds) |
void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong) |
void |
setWrappedService(ResourceBlockLocalService resourceBlockLocalService) |
void |
updateCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong,
int operator) |
void |
updateGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong,
int operator) |
void |
updateIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong,
int operator) |
ResourceBlock |
updateResourceBlock(ResourceBlock resourceBlock)
Updates the resource block in the database or adds it if it does not yet exist.
|
ResourceBlock |
updateResourceBlockId(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer) |
void |
verifyResourceBlockId(long companyId,
String name,
long primKey) |
public ResourceBlockLocalServiceWrapper(ResourceBlockLocalService resourceBlockLocalService)
public void addCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException
addCompanyScopePermission
in interface ResourceBlockLocalService
PortalException
public void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
addCompanyScopePermissions
in interface ResourceBlockLocalService
public void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException
addGroupScopePermission
in interface ResourceBlockLocalService
PortalException
public void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
addGroupScopePermissions
in interface ResourceBlockLocalService
public void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException
addIndividualScopePermission
in interface ResourceBlockLocalService
PortalException
public void addIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException
addIndividualScopePermission
in interface ResourceBlockLocalService
PortalException
public void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
addIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void addIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
addIndividualScopePermissions
in interface ResourceBlockLocalService
public ResourceBlock addResourceBlock(long companyId, long groupId, String name, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
addResourceBlock
in interface ResourceBlockLocalService
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 ResourceBlock addResourceBlock(ResourceBlock resourceBlock)
addResourceBlock
in interface ResourceBlockLocalService
resourceBlock
- the resource blockpublic ResourceBlock createResourceBlock(long resourceBlockId)
createResourceBlock
in interface ResourceBlockLocalService
resourceBlockId
- the primary key for the new resource blockpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
deletePersistedModel
in interface ResourceBlockLocalService
PortalException
public ResourceBlock deleteResourceBlock(long resourceBlockId) throws PortalException
deleteResourceBlock
in interface ResourceBlockLocalService
resourceBlockId
- the primary key of the resource blockPortalException
- if a resource block with the primary key could not be foundpublic ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
deleteResourceBlock
in interface ResourceBlockLocalService
resourceBlock
- the resource blockpublic DynamicQuery dynamicQuery()
dynamicQuery
in interface ResourceBlockLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface ResourceBlockLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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
in interface ResourceBlockLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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
in interface ResourceBlockLocalService
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
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface ResourceBlockLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface ResourceBlockLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic ResourceBlock fetchResourceBlock(long resourceBlockId)
fetchResourceBlock
in interface ResourceBlockLocalService
public ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface ResourceBlockLocalService
public long getActionId(String name, String actionId) throws PortalException
getActionId
in interface ResourceBlockLocalService
PortalException
public long getActionIds(String name, List<String> actionIds) throws PortalException
getActionIds
in interface ResourceBlockLocalService
PortalException
public List<String> getActionIds(String name, long actionIdsLong)
getActionIds
in interface ResourceBlockLocalService
public List<String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId)
getCompanyScopePermissions
in interface ResourceBlockLocalService
public List<String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId)
getGroupScopePermissions
in interface ResourceBlockLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface ResourceBlockLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface ResourceBlockLocalService
public PermissionedModel getPermissionedModel(String name, long primKey) throws PortalException
getPermissionedModel
in interface ResourceBlockLocalService
PortalException
public List<String> getPermissions(ResourceBlock resourceBlock, long roleId)
getPermissions
in interface ResourceBlockLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface ResourceBlockLocalService
PortalException
public ResourceBlock getResourceBlock(long resourceBlockId) throws PortalException
getResourceBlock
in interface ResourceBlockLocalService
resourceBlockId
- the primary key of the resource blockPortalException
- if a resource block with the primary key could not be foundpublic ResourceBlock getResourceBlock(String name, long primKey) throws PortalException
getResourceBlock
in interface ResourceBlockLocalService
PortalException
public List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId) throws PortalException
getResourceBlockIds
in interface ResourceBlockLocalService
PortalException
public ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds)
getResourceBlockIdsBag
in interface ResourceBlockLocalService
public List<ResourceBlock> getResourceBlocks(int start, int end)
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.
getResourceBlocks
in interface ResourceBlockLocalService
start
- the lower bound of the range of resource blocksend
- the upper bound of the range of resource blocks (not inclusive)public int getResourceBlocksCount()
getResourceBlocksCount
in interface ResourceBlockLocalService
public List<Role> getRoles(String name, long primKey, String actionId) throws PortalException
getRoles
in interface ResourceBlockLocalService
PortalException
public boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
hasPermission
in interface ResourceBlockLocalService
PortalException
public boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
hasPermission
in interface ResourceBlockLocalService
PortalException
public boolean isSupported(String name)
isSupported
in interface ResourceBlockLocalService
public void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
releasePermissionedModelResourceBlock
in interface ResourceBlockLocalService
public void releasePermissionedModelResourceBlock(String name, long primKey) throws PortalException
releasePermissionedModelResourceBlock
in interface ResourceBlockLocalService
PortalException
public void releaseResourceBlock(long resourceBlockId)
releaseResourceBlock
in interface ResourceBlockLocalService
resourceBlockId
- the primary key of the resource blockpublic void releaseResourceBlock(ResourceBlock resourceBlock)
releaseResourceBlock
in interface ResourceBlockLocalService
resourceBlock
- the resource blockpublic void removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
removeAllGroupScopePermissions
in interface ResourceBlockLocalService
public void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId) throws PortalException
removeAllGroupScopePermissions
in interface ResourceBlockLocalService
PortalException
public void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException
removeCompanyScopePermission
in interface ResourceBlockLocalService
PortalException
public void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
removeCompanyScopePermissions
in interface ResourceBlockLocalService
public void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException
removeGroupScopePermission
in interface ResourceBlockLocalService
PortalException
public void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
removeGroupScopePermissions
in interface ResourceBlockLocalService
public void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException
removeIndividualScopePermission
in interface ResourceBlockLocalService
PortalException
public void removeIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException
removeIndividualScopePermission
in interface ResourceBlockLocalService
PortalException
public void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
removeIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void removeIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
removeIndividualScopePermissions
in interface ResourceBlockLocalService
public void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds) throws PortalException
setCompanyScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
setCompanyScopePermissions
in interface ResourceBlockLocalService
public void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds) throws PortalException
setGroupScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
setGroupScopePermissions
in interface ResourceBlockLocalService
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds) throws PortalException
setIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
setIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds) throws PortalException
setIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, List<String> actionIds) throws PortalException
setIndividualScopePermissions
in interface ResourceBlockLocalService
PortalException
public void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
setIndividualScopePermissions
in interface ResourceBlockLocalService
public void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator)
updateCompanyScopePermissions
in interface ResourceBlockLocalService
public void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator)
updateGroupScopePermissions
in interface ResourceBlockLocalService
public void updateIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator)
updateIndividualScopePermissions
in interface ResourceBlockLocalService
public ResourceBlock updateResourceBlock(ResourceBlock resourceBlock)
updateResourceBlock
in interface ResourceBlockLocalService
resourceBlock
- the resource blockpublic ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, PermissionedModel permissionedModel, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
updateResourceBlockId
in interface ResourceBlockLocalService
public void verifyResourceBlockId(long companyId, String name, long primKey) throws PortalException
verifyResourceBlockId
in interface ResourceBlockLocalService
PortalException
public ResourceBlockLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<ResourceBlockLocalService>
public void setWrappedService(ResourceBlockLocalService resourceBlockLocalService)
setWrappedService
in interface ServiceWrapper<ResourceBlockLocalService>