com.liferay.portal.service
Interface PermissionLocalService
public interface PermissionLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.PermissionLocalServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
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.
- Author:
- Brian Wing Shun Chan
- See Also:
PermissionLocalServiceFactory
,
PermissionLocalServiceUtil
Method Summary |
Permission |
addPermission(long companyId,
java.lang.String actionId,
long resourceId)
|
Permission |
addPermission(Permission permission)
|
java.util.List<Permission> |
addPermissions(long companyId,
java.lang.String name,
long resourceId,
boolean portletActions)
|
void |
addUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
|
void |
deletePermission(long permissionId)
|
void |
deletePermission(Permission permission)
|
java.util.List<Permission> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List<Permission> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
java.util.List<java.lang.String> |
getActions(java.util.List<Permission> permissions)
|
java.util.List<Permission> |
getGroupPermissions(long groupId,
long resourceId)
|
java.util.List<Permission> |
getGroupPermissions(long groupId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
long |
getLatestPermissionId()
|
java.util.List<Permission> |
getOrgGroupPermissions(long organizationId,
long groupId,
long resourceId)
|
java.util.List<Permission> |
getPermissions(long companyId,
java.lang.String[] actionIds,
long resourceId)
|
java.util.List<Permission> |
getRolePermissions(long roleId)
|
java.util.List<Permission> |
getRolePermissions(long roleId,
long resourceId)
|
java.util.List<Permission> |
getUserPermissions(long userId,
long resourceId)
|
java.util.List<Permission> |
getUserPermissions(long userId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
boolean |
hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
|
boolean |
hasRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String actionId)
|
boolean |
hasRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
boolean |
hasUserPermission(long userId,
java.lang.String actionId,
long resourceId)
|
boolean |
hasUserPermissions(long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
PermissionCheckerBag permissionCheckerBag)
|
void |
setGroupPermissions(long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setGroupPermissions(java.lang.String className,
java.lang.String classPK,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setOrgGroupPermissions(long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
setRolePermissions(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String[] actionIds)
|
void |
setRolePermissions(long roleId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
|
void |
unsetRolePermission(long roleId,
long permissionId)
|
void |
unsetRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
unsetRolePermissions(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String actionId)
|
void |
unsetUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
|
Permission |
updatePermission(Permission permission)
|
addPermission
Permission addPermission(Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
deletePermission
void deletePermission(long permissionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deletePermission
void deletePermission(Permission permission)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
dynamicQuery
java.util.List<Permission> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<Permission> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updatePermission
Permission updatePermission(Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addPermission
Permission addPermission(long companyId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addPermissions
java.util.List<Permission> addPermissions(long companyId,
java.lang.String name,
long resourceId,
boolean portletActions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addUserPermissions
void addUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getActions
java.util.List<java.lang.String> getActions(java.util.List<Permission> permissions)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupPermissions
java.util.List<Permission> getGroupPermissions(long groupId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupPermissions
java.util.List<Permission> getGroupPermissions(long groupId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrgGroupPermissions
java.util.List<Permission> getOrgGroupPermissions(long organizationId,
long groupId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getLatestPermissionId
long getLatestPermissionId()
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getPermissions
java.util.List<Permission> getPermissions(long companyId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getRolePermissions
java.util.List<Permission> getRolePermissions(long roleId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getRolePermissions
java.util.List<Permission> getRolePermissions(long roleId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserPermissions
java.util.List<Permission> getUserPermissions(long userId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserPermissions
java.util.List<Permission> getUserPermissions(long userId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasGroupPermission
boolean hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasRolePermission
boolean hasRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String actionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasRolePermission
boolean hasRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasUserPermission
boolean hasUserPermission(long userId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasUserPermissions
boolean hasUserPermissions(long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
PermissionCheckerBag permissionCheckerBag)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setGroupPermissions
void setGroupPermissions(long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setGroupPermissions
void setGroupPermissions(java.lang.String className,
java.lang.String classPK,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setOrgGroupPermissions
void setOrgGroupPermissions(long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setRolePermission
void setRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setRolePermissions
void setRolePermissions(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String[] actionIds)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setRolePermissions
void setRolePermissions(long roleId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setUserPermissions
void setUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermission
void unsetRolePermission(long roleId,
long permissionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermission
void unsetRolePermission(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermissions
void unsetRolePermissions(long roleId,
long companyId,
java.lang.String name,
int scope,
java.lang.String actionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetUserPermissions
void unsetUserPermissions(long userId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException