com.liferay.portal.service.http
Class ResourceBlockServiceHttp
java.lang.Object
com.liferay.portal.service.http.ResourceBlockServiceHttp
@ProviderType
public class ResourceBlockServiceHttp
- extends Object
Provides the HTTP utility for the
ResourceBlockServiceUtil
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:
ResourceBlockServiceSoap
,
HttpPrincipal
,
ResourceBlockServiceUtil
- {$generated.description}
Method Summary |
static void |
addCompanyScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
|
static void |
addGroupScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
String actionId)
|
static void |
addIndividualScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
|
static void |
removeAllGroupScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
|
static void |
removeCompanyScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
|
static void |
removeGroupScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
String actionId)
|
static void |
removeIndividualScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
|
static void |
setCompanyScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
List<String> actionIds)
|
static void |
setGroupScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
List<String> actionIds)
|
static void |
setIndividualScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
List<String> actionIds)
|
static void |
setIndividualScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
Map<Long,String[]> roleIdsToActionIds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBlockServiceHttp
public ResourceBlockServiceHttp()
addCompanyScopePermission
public static void addCompanyScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
addGroupScopePermission
public static void addGroupScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
addIndividualScopePermission
public static void addIndividualScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
removeAllGroupScopePermissions
public static void removeAllGroupScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
removeCompanyScopePermission
public static void removeCompanyScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
removeGroupScopePermission
public static void removeGroupScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
removeIndividualScopePermission
public static void removeIndividualScopePermission(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
String actionId)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
setCompanyScopePermissions
public static void setCompanyScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
String name,
long roleId,
List<String> actionIds)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
setGroupScopePermissions
public static void setGroupScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long scopeGroupId,
long companyId,
long groupId,
String name,
long roleId,
List<String> actionIds)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
setIndividualScopePermissions
public static void setIndividualScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
long roleId,
List<String> actionIds)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException
setIndividualScopePermissions
public static void setIndividualScopePermissions(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long groupId,
String name,
long primKey,
Map<Long,String[]> roleIdsToActionIds)
throws com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.PortalException