@Deprecated
public class ResourceBlockLocalServiceUtil
extends Object
com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. 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.ResourceBlockLocalService
Constructor and Description |
---|
ResourceBlockLocalServiceUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addCompanyScopePermission(long companyId,
String name,
long roleId,
String actionId)
Deprecated.
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static void |
addCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
addGroupScopePermission(long companyId,
long groupId,
String name,
long roleId,
String actionId)
Deprecated.
|
static void |
addGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
addIndividualScopePermission(long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
Deprecated.
|
static void |
addIndividualScopePermission(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
String actionId)
Deprecated.
|
static void |
addIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
addIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
Deprecated.
|
static ResourceBlock |
addResourceBlock(long companyId,
long groupId,
String name,
String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
Deprecated.
Adds a resource block if necessary and associates the resource block
permissions with it.
|
static ResourceBlock |
addResourceBlock(ResourceBlock resourceBlock)
Deprecated.
Adds the resource block to the database.
|
static ResourceBlock |
createResourceBlock(long resourceBlockId)
Deprecated.
Creates a new resource block with the primary key.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
Deprecated.
|
static ResourceBlock |
deleteResourceBlock(long resourceBlockId)
Deprecated.
Deletes the resource block with the primary key from the database.
|
static ResourceBlock |
deleteResourceBlock(ResourceBlock resourceBlock)
Deprecated.
Deletes the resource block from the database.
|
static DynamicQuery |
dynamicQuery()
Deprecated.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
Performs a dynamic query on the database and returns the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Deprecated.
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Deprecated.
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Deprecated.
Returns the number of rows matching the dynamic query.
|
static ResourceBlock |
fetchResourceBlock(long resourceBlockId)
Deprecated.
|
static ActionableDynamicQuery |
getActionableDynamicQuery()
Deprecated.
|
static long |
getActionId(String name,
String actionId)
Deprecated.
|
static long |
getActionIds(String name,
List<String> actionIds)
Deprecated.
|
static List<String> |
getActionIds(String name,
long actionIdsLong)
Deprecated.
|
static List<String> |
getCompanyScopePermissions(ResourceBlock resourceBlock,
long roleId)
Deprecated.
|
static List<String> |
getGroupScopePermissions(ResourceBlock resourceBlock,
long roleId)
Deprecated.
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
Deprecated.
|
static String |
getOSGiServiceIdentifier()
Deprecated.
Returns the OSGi service identifier.
|
static PermissionedModel |
getPermissionedModel(String name,
long primKey)
Deprecated.
|
static List<String> |
getPermissions(ResourceBlock resourceBlock,
long roleId)
Deprecated.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
Deprecated.
|
static ResourceBlock |
getResourceBlock(long resourceBlockId)
Deprecated.
Returns the resource block with the primary key.
|
static ResourceBlock |
getResourceBlock(String name,
long primKey)
Deprecated.
|
static List<Long> |
getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag,
String name,
String actionId)
Deprecated.
|
static ResourceBlockIdsBag |
getResourceBlockIdsBag(long companyId,
long groupId,
String name,
long[] roleIds)
Deprecated.
|
static List<ResourceBlock> |
getResourceBlocks(int start,
int end)
Deprecated.
Returns a range of all the resource blocks.
|
static int |
getResourceBlocksCount()
Deprecated.
Returns the number of resource blocks.
|
static List<Role> |
getRoles(String name,
long primKey,
String actionId)
Deprecated.
|
static ResourceBlockLocalService |
getService()
Deprecated.
|
static boolean |
hasPermission(String name,
long primKey,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag)
Deprecated.
|
static boolean |
hasPermission(String name,
PermissionedModel permissionedModel,
String actionId,
ResourceBlockIdsBag resourceBlockIdsBag)
Deprecated.
|
static boolean |
isSupported(String name)
Deprecated.
|
static void |
releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
Deprecated.
|
static void |
releasePermissionedModelResourceBlock(String name,
long primKey)
Deprecated.
|
static void |
releaseResourceBlock(long resourceBlockId)
Deprecated.
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.
|
static void |
releaseResourceBlock(ResourceBlock resourceBlock)
Deprecated.
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.
|
static void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
removeAllGroupScopePermissions(long companyId,
String name,
long roleId,
String actionId)
Deprecated.
|
static void |
removeCompanyScopePermission(long companyId,
String name,
long roleId,
String actionId)
Deprecated.
|
static void |
removeCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
removeGroupScopePermission(long companyId,
long groupId,
String name,
long roleId,
String actionId)
Deprecated.
|
static void |
removeGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
Deprecated.
|
static void |
removeIndividualScopePermission(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
String actionId)
Deprecated.
|
static void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
removeIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
setCompanyScopePermissions(long companyId,
String name,
long roleId,
List<String> actionIds)
Deprecated.
|
static void |
setCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
setGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
List<String> actionIds)
Deprecated.
|
static void |
setGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
List<String> actionIds)
Deprecated.
|
static void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
long primKey,
Map<Long,String[]> roleIdsToActionIds)
Deprecated.
|
static void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
List<String> actionIds)
Deprecated.
|
static void |
setIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong)
Deprecated.
|
static void |
updateCompanyScopePermissions(long companyId,
String name,
long roleId,
long actionIdsLong,
int operator)
Deprecated.
|
static void |
updateGroupScopePermissions(long companyId,
long groupId,
String name,
long roleId,
long actionIdsLong,
int operator)
Deprecated.
|
static void |
updateIndividualScopePermissions(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
long roleId,
long actionIdsLong,
int operator)
Deprecated.
|
static ResourceBlock |
updateResourceBlock(ResourceBlock resourceBlock)
Deprecated.
Updates the resource block in the database or adds it if it does not yet exist.
|
static ResourceBlock |
updateResourceBlockId(long companyId,
long groupId,
String name,
PermissionedModel permissionedModel,
String permissionsHash,
ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
Deprecated.
|
static void |
verifyResourceBlockId(long companyId,
String name,
long primKey)
Deprecated.
|
public static void addCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException
ResourceBlockLocalServiceUtil
to access the resource block local service. Add custom service methods to com.liferay.portal.service.impl.ResourceBlockLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
public static void addCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public static void addGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException
PortalException
public static void addGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public static void addIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException
PortalException
public static void addIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException
PortalException
public static void addIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
PortalException
public static void addIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public static ResourceBlock addResourceBlock(long companyId, long groupId, String name, String permissionsHash, 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 static ResourceBlock addResourceBlock(ResourceBlock resourceBlock)
resourceBlock
- the resource blockpublic static ResourceBlock createResourceBlock(long resourceBlockId)
resourceBlockId
- the primary key for the new resource blockpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static ResourceBlock deleteResourceBlock(long resourceBlockId) throws PortalException
resourceBlockId
- the primary key of the resource blockPortalException
- if a resource block with the primary key could not be foundpublic static ResourceBlock deleteResourceBlock(ResourceBlock resourceBlock)
resourceBlock
- the resource blockpublic static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ResourceBlockModelImpl
.
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 static <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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ResourceBlockModelImpl
.
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 static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static ResourceBlock fetchResourceBlock(long resourceBlockId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static long getActionId(String name, String actionId) throws PortalException
PortalException
public static long getActionIds(String name, List<String> actionIds) throws PortalException
PortalException
public static List<String> getActionIds(String name, long actionIdsLong)
public static List<String> getCompanyScopePermissions(ResourceBlock resourceBlock, long roleId)
public static List<String> getGroupScopePermissions(ResourceBlock resourceBlock, long roleId)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static String getOSGiServiceIdentifier()
public static PermissionedModel getPermissionedModel(String name, long primKey) throws PortalException
PortalException
public static List<String> getPermissions(ResourceBlock resourceBlock, long roleId)
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static ResourceBlock getResourceBlock(long resourceBlockId) throws PortalException
resourceBlockId
- the primary key of the resource blockPortalException
- if a resource block with the primary key could not be foundpublic static ResourceBlock getResourceBlock(String name, long primKey) throws PortalException
PortalException
public static List<Long> getResourceBlockIds(ResourceBlockIdsBag resourceBlockIdsBag, String name, String actionId) throws PortalException
PortalException
public static ResourceBlockIdsBag getResourceBlockIdsBag(long companyId, long groupId, String name, long[] roleIds)
public static 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ResourceBlockModelImpl
.
start
- the lower bound of the range of resource blocksend
- the upper bound of the range of resource blocks (not inclusive)public static int getResourceBlocksCount()
public static List<Role> getRoles(String name, long primKey, String actionId) throws PortalException
PortalException
public static boolean hasPermission(String name, long primKey, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
PortalException
public static boolean hasPermission(String name, PermissionedModel permissionedModel, String actionId, ResourceBlockIdsBag resourceBlockIdsBag) throws PortalException
PortalException
public static boolean isSupported(String name)
public static void releasePermissionedModelResourceBlock(PermissionedModel permissionedModel)
public static void releasePermissionedModelResourceBlock(String name, long primKey) throws PortalException
PortalException
public static void releaseResourceBlock(long resourceBlockId)
resourceBlockId
- the primary key of the resource blockpublic static void releaseResourceBlock(ResourceBlock resourceBlock)
resourceBlock
- the resource blockpublic static void removeAllGroupScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public static void removeAllGroupScopePermissions(long companyId, String name, long roleId, String actionId) throws PortalException
PortalException
public static void removeCompanyScopePermission(long companyId, String name, long roleId, String actionId) throws PortalException
PortalException
public static void removeCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public static void removeGroupScopePermission(long companyId, long groupId, String name, long roleId, String actionId) throws PortalException
PortalException
public static void removeGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public static void removeIndividualScopePermission(long companyId, long groupId, String name, long primKey, long roleId, String actionId) throws PortalException
PortalException
public static void removeIndividualScopePermission(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, String actionId) throws PortalException
PortalException
public static void removeIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
PortalException
public static void removeIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public static void setCompanyScopePermissions(long companyId, String name, long roleId, List<String> actionIds) throws PortalException
PortalException
public static void setCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong)
public static void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, List<String> actionIds) throws PortalException
PortalException
public static void setGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong)
public static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, List<String> actionIds) throws PortalException
PortalException
public static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, long roleId, long actionIdsLong) throws PortalException
PortalException
public static void setIndividualScopePermissions(long companyId, long groupId, String name, long primKey, Map<Long,String[]> roleIdsToActionIds) throws PortalException
PortalException
public static void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, List<String> actionIds) throws PortalException
PortalException
public static void setIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong)
public static void updateCompanyScopePermissions(long companyId, String name, long roleId, long actionIdsLong, int operator)
public static void updateGroupScopePermissions(long companyId, long groupId, String name, long roleId, long actionIdsLong, int operator)
public static void updateIndividualScopePermissions(long companyId, long groupId, String name, PermissionedModel permissionedModel, long roleId, long actionIdsLong, int operator)
public static ResourceBlock updateResourceBlock(ResourceBlock resourceBlock)
resourceBlock
- the resource blockpublic static ResourceBlock updateResourceBlockId(long companyId, long groupId, String name, PermissionedModel permissionedModel, String permissionsHash, ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
public static void verifyResourceBlockId(long companyId, String name, long primKey) throws PortalException
PortalException
public static ResourceBlockLocalService getService()