|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.ResourcePermissionLocalServiceWrapper
public class ResourcePermissionLocalServiceWrapper
This class is a wrapper for ResourcePermissionLocalService
.
ResourcePermissionLocalService
Constructor Summary | |
---|---|
ResourcePermissionLocalServiceWrapper(ResourcePermissionLocalService resourcePermissionLocalService)
|
Method Summary | |
---|---|
void |
addResourcePermission(long companyId,
String name,
int scope,
String primKey,
long roleId,
String actionId)
|
ResourcePermission |
addResourcePermission(ResourcePermission resourcePermission)
Adds the resource permission to the database. |
ResourcePermission |
createResourcePermission(long resourcePermissionId)
Creates a new resource permission with the primary key. |
void |
deleteResourcePermission(long resourcePermissionId)
Deletes the resource permission with the primary key from the database. |
void |
deleteResourcePermission(ResourcePermission resourcePermission)
Deletes the resource permission from the database. |
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)
Counts the number of rows that match the dynamic query. |
List<String> |
getAvailableResourcePermissionActionIds(long companyId,
String name,
int scope,
String primKey,
long roleId,
List<String> actionIds)
|
ResourcePermission |
getResourcePermission(long resourcePermissionId)
Gets the resource permission with the primary key. |
List<ResourcePermission> |
getResourcePermissions(int start,
int end)
Gets a range of all the resource permissions. |
List<ResourcePermission> |
getResourcePermissions(long companyId,
String name,
int scope,
String primKey)
|
int |
getResourcePermissionsCount()
Gets the number of resource permissions. |
int |
getResourcePermissionsCount(long companyId,
String name,
int scope,
String primKey)
|
List<ResourcePermission> |
getRoleResourcePermissions(long roleId)
|
List<ResourcePermission> |
getRoleResourcePermissions(long roleId,
int[] scopes,
int start,
int end)
|
ResourcePermissionLocalService |
getWrappedResourcePermissionLocalService()
|
boolean |
hasActionId(ResourcePermission resourcePermission,
ResourceAction resourceAction)
|
boolean |
hasResourcePermission(long companyId,
String name,
int scope,
String primKey,
long roleId,
String actionId)
|
boolean |
hasScopeResourcePermission(long companyId,
String name,
int scope,
long roleId,
String actionId)
|
void |
mergePermissions(long fromRoleId,
long toRoleId)
|
void |
reassignPermissions(long resourcePermissionId,
long toRoleId)
|
void |
removeResourcePermission(long companyId,
String name,
int scope,
String primKey,
long roleId,
String actionId)
|
void |
removeResourcePermissions(long companyId,
String name,
int scope,
long roleId,
String actionId)
|
void |
setResourcePermissions(long companyId,
String name,
int scope,
String primKey,
long roleId,
String[] actionIds)
|
ResourcePermission |
updateResourcePermission(ResourcePermission resourcePermission)
Updates the resource permission in the database. |
ResourcePermission |
updateResourcePermission(ResourcePermission resourcePermission,
boolean merge)
Updates the resource permission in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourcePermissionLocalServiceWrapper(ResourcePermissionLocalService resourcePermissionLocalService)
Method Detail |
---|
public ResourcePermission addResourcePermission(ResourcePermission resourcePermission) throws SystemException
addResourcePermission
in interface ResourcePermissionLocalService
resourcePermission
- the resource permission to add
SystemException
- if a system exception occurredpublic ResourcePermission createResourcePermission(long resourcePermissionId)
createResourcePermission
in interface ResourcePermissionLocalService
resourcePermissionId
- the primary key for the new resource permission
public void deleteResourcePermission(long resourcePermissionId) throws PortalException, SystemException
deleteResourcePermission
in interface ResourcePermissionLocalService
resourcePermissionId
- the primary key of the resource permission to delete
PortalException
- if a resource permission with the primary key could not be found
SystemException
- if a system exception occurredpublic void deleteResourcePermission(ResourcePermission resourcePermission) throws SystemException
deleteResourcePermission
in interface ResourcePermissionLocalService
resourcePermission
- the resource permission to delete
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface ResourcePermissionLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic 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.
dynamicQuery
in interface ResourcePermissionLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic 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.
dynamicQuery
in interface ResourcePermissionLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface ResourcePermissionLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic ResourcePermission getResourcePermission(long resourcePermissionId) throws PortalException, SystemException
getResourcePermission
in interface ResourcePermissionLocalService
resourcePermissionId
- the primary key of the resource permission to get
PortalException
- if a resource permission with the primary key could not be found
SystemException
- if a system exception occurredpublic List<ResourcePermission> getResourcePermissions(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.
getResourcePermissions
in interface ResourcePermissionLocalService
start
- the lower bound of the range of resource permissions to returnend
- the upper bound of the range of resource permissions to return (not inclusive)
SystemException
- if a system exception occurredpublic int getResourcePermissionsCount() throws SystemException
getResourcePermissionsCount
in interface ResourcePermissionLocalService
SystemException
- if a system exception occurredpublic ResourcePermission updateResourcePermission(ResourcePermission resourcePermission) throws SystemException
updateResourcePermission
in interface ResourcePermissionLocalService
resourcePermission
- the resource permission to update
SystemException
- if a system exception occurredpublic ResourcePermission updateResourcePermission(ResourcePermission resourcePermission, boolean merge) throws SystemException
updateResourcePermission
in interface ResourcePermissionLocalService
resourcePermission
- the resource permission to updatemerge
- whether to merge the resource permission 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 occurredpublic void addResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId) throws PortalException, SystemException
addResourcePermission
in interface ResourcePermissionLocalService
PortalException
SystemException
public List<String> getAvailableResourcePermissionActionIds(long companyId, String name, int scope, String primKey, long roleId, List<String> actionIds) throws PortalException, SystemException
getAvailableResourcePermissionActionIds
in interface ResourcePermissionLocalService
PortalException
SystemException
public List<ResourcePermission> getResourcePermissions(long companyId, String name, int scope, String primKey) throws SystemException
getResourcePermissions
in interface ResourcePermissionLocalService
SystemException
public int getResourcePermissionsCount(long companyId, String name, int scope, String primKey) throws SystemException
getResourcePermissionsCount
in interface ResourcePermissionLocalService
SystemException
public List<ResourcePermission> getRoleResourcePermissions(long roleId) throws SystemException
getRoleResourcePermissions
in interface ResourcePermissionLocalService
SystemException
public List<ResourcePermission> getRoleResourcePermissions(long roleId, int[] scopes, int start, int end) throws SystemException
getRoleResourcePermissions
in interface ResourcePermissionLocalService
SystemException
public boolean hasActionId(ResourcePermission resourcePermission, ResourceAction resourceAction)
hasActionId
in interface ResourcePermissionLocalService
public boolean hasResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId) throws PortalException, SystemException
hasResourcePermission
in interface ResourcePermissionLocalService
PortalException
SystemException
public boolean hasScopeResourcePermission(long companyId, String name, int scope, long roleId, String actionId) throws PortalException, SystemException
hasScopeResourcePermission
in interface ResourcePermissionLocalService
PortalException
SystemException
public void mergePermissions(long fromRoleId, long toRoleId) throws PortalException, SystemException
mergePermissions
in interface ResourcePermissionLocalService
PortalException
SystemException
public void reassignPermissions(long resourcePermissionId, long toRoleId) throws PortalException, SystemException
reassignPermissions
in interface ResourcePermissionLocalService
PortalException
SystemException
public void removeResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId) throws PortalException, SystemException
removeResourcePermission
in interface ResourcePermissionLocalService
PortalException
SystemException
public void removeResourcePermissions(long companyId, String name, int scope, long roleId, String actionId) throws PortalException, SystemException
removeResourcePermissions
in interface ResourcePermissionLocalService
PortalException
SystemException
public void setResourcePermissions(long companyId, String name, int scope, String primKey, long roleId, String[] actionIds) throws PortalException, SystemException
setResourcePermissions
in interface ResourcePermissionLocalService
PortalException
SystemException
public ResourcePermissionLocalService getWrappedResourcePermissionLocalService()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |