com.liferay.portal.service.http
Class PermissionServiceHttp
java.lang.Object
com.liferay.portal.service.http.PermissionServiceHttp
- public class PermissionServiceHttp
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be overwritten
the next time is generated.
This class provides a HTTP utility for the com.liferay.portal.service.PermissionServiceUtil
service utility. The static methods of this class calls the same methods of the
service utility. However, the signatures are different because it requires an
additional com.liferay.portal.security.auth.HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling
without the cost of serializing to text. The drawback is that it only works with
Java.
Set the property tunnel.servlet.hosts.allowed
in portal.properties
to configure security.
The HTTP utility is only generated for remote services.
- Author:
- Brian Wing Shun Chan
- See Also:
HttpPrincipal
,
PermissionServiceUtil
,
PermissionServiceSoap
Method Summary |
static void |
checkPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String primKey)
|
static boolean |
hasGroupPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String actionId,
long resourceId)
|
static boolean |
hasUserPermission(HttpPrincipal httpPrincipal,
long userId,
java.lang.String actionId,
long resourceId)
|
static boolean |
hasUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
com.liferay.portal.kernel.security.permission.PermissionCheckerBag permissionCheckerBag)
|
static void |
setGroupPermissions(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
static void |
setGroupPermissions(HttpPrincipal httpPrincipal,
java.lang.String className,
java.lang.String classPK,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
static void |
setOrgGroupPermissions(HttpPrincipal httpPrincipal,
long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
static void |
setRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
static void |
setUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
static void |
unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
long permissionId)
|
static void |
unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
static void |
unsetRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String actionId)
|
static void |
unsetUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionServiceHttp
public PermissionServiceHttp()
checkPermission
public static void checkPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String primKey)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasGroupPermission
public static boolean hasGroupPermission(HttpPrincipal httpPrincipal,
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
hasUserPermission
public static boolean hasUserPermission(HttpPrincipal httpPrincipal,
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
public static boolean hasUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
com.liferay.portal.kernel.security.permission.PermissionCheckerBag permissionCheckerBag)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
setGroupPermissions
public static void setGroupPermissions(HttpPrincipal httpPrincipal,
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
public static void setGroupPermissions(HttpPrincipal httpPrincipal,
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
public static void setOrgGroupPermissions(HttpPrincipal httpPrincipal,
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
public static void setRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
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
setUserPermissions
public static void setUserPermissions(HttpPrincipal httpPrincipal,
long userId,
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
unsetRolePermission
public static void unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
long permissionId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRolePermission
public static void unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
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
public static void unsetRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
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
public static void unsetUserPermissions(HttpPrincipal httpPrincipal,
long userId,
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