com.liferay.portal.service.http
Class PermissionServiceHttp
java.lang.Object
com.liferay.portal.service.http.PermissionServiceHttp
public class PermissionServiceHttp
- extends Object
This class provides a HTTP utility for the
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
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.
- See Also:
PermissionServiceSoap
,
HttpPrincipal
,
PermissionServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static void |
checkPermission(HttpPrincipal httpPrincipal,
long groupId,
long resourceId)
|
static void |
checkPermission(HttpPrincipal httpPrincipal,
long groupId,
String name,
long primKey)
|
static void |
checkPermission(HttpPrincipal httpPrincipal,
long groupId,
String name,
String primKey)
|
static boolean |
hasGroupPermission(HttpPrincipal httpPrincipal,
long groupId,
String actionId,
long resourceId)
|
static boolean |
hasUserPermission(HttpPrincipal httpPrincipal,
long userId,
String actionId,
long resourceId)
|
static boolean |
hasUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
|
static void |
setGroupPermissions(HttpPrincipal httpPrincipal,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setGroupPermissions(HttpPrincipal httpPrincipal,
String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setIndividualPermissions(HttpPrincipal httpPrincipal,
long groupId,
long companyId,
Map<Long,String[]> roleIdsToActionIds,
long resourceId)
|
static void |
setOrgGroupPermissions(HttpPrincipal httpPrincipal,
long organizationId,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
static void |
setRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
setUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
String[] actionIds,
long resourceId)
|
static void |
unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
long permissionId)
|
static void |
unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
static void |
unsetRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String actionId)
|
static void |
unsetUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
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 PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
public static void checkPermission(HttpPrincipal httpPrincipal,
long groupId,
String name,
long primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
public static void checkPermission(HttpPrincipal httpPrincipal,
long groupId,
String name,
String primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasGroupPermission
public static boolean hasGroupPermission(HttpPrincipal httpPrincipal,
long groupId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermission
public static boolean hasUserPermission(HttpPrincipal httpPrincipal,
long userId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermissions
public static boolean hasUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
public static void setGroupPermissions(HttpPrincipal httpPrincipal,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
public static void setGroupPermissions(HttpPrincipal httpPrincipal,
String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setIndividualPermissions
public static void setIndividualPermissions(HttpPrincipal httpPrincipal,
long groupId,
long companyId,
Map<Long,String[]> roleIdsToActionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setOrgGroupPermissions
public static void setOrgGroupPermissions(HttpPrincipal httpPrincipal,
long organizationId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermission
public static void setRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermissions
public static void setRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setUserPermissions
public static void setUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
public static void unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
long permissionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
public static void unsetRolePermission(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermissions
public static void unsetRolePermissions(HttpPrincipal httpPrincipal,
long roleId,
long groupId,
String name,
int scope,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetUserPermissions
public static void unsetUserPermissions(HttpPrincipal httpPrincipal,
long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException