com.liferay.portal.service
Interface PermissionService
public interface PermissionService
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.PermissionServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
- Author:
- Brian Wing Shun Chan
- See Also:
PermissionServiceFactory
,
PermissionServiceUtil
Method Summary |
void |
checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
|
boolean |
hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
|
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 groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
setRolePermissions(long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
unsetRolePermission(long roleId,
long groupId,
long permissionId)
|
void |
unsetRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
unsetRolePermissions(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String actionId)
|
void |
unsetUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
checkPermission
void checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasGroupPermission
boolean hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasUserPermission
boolean hasUserPermission(long userId,
java.lang.String actionId,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasUserPermissions
boolean hasUserPermissions(long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
PermissionCheckerBag permissionCheckerBag)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setGroupPermissions
void setGroupPermissions(long groupId,
java.lang.String[] actionIds,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
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 java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setOrgGroupPermissions
void setOrgGroupPermissions(long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setRolePermission
void setRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setRolePermissions
void setRolePermissions(long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setUserPermissions
void setUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
long permissionId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermissions
void unsetRolePermissions(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String actionId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetUserPermissions
void unsetUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws java.rmi.RemoteException,
com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException
com.liferay.portal.PortalException