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,
long resourceId)
|
static void |
checkPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long primKey)
|
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.util.List<com.liferay.portal.model.Resource> resources,
java.lang.String actionId,
com.liferay.portal.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 |
setRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
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,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkPermission
public static void checkPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
long primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkPermission
public static void checkPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasGroupPermission
public static boolean hasGroupPermission(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserPermission
public static boolean hasUserPermission(HttpPrincipal httpPrincipal,
long userId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserPermissions
public static boolean hasUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.util.List<com.liferay.portal.model.Resource> resources,
java.lang.String actionId,
com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setGroupPermissions
public static void setGroupPermissions(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setOrgGroupPermissions
public static void setOrgGroupPermissions(HttpPrincipal httpPrincipal,
long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setRolePermissions
public static void setRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setUserPermissions
public static void setUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRolePermission
public static void unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
long permissionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetUserPermissions
public static void unsetUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException