@ProviderType
public class ResourceBlockServiceHttp
extends Object
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.
ResourceBlockServiceSoap
,
HttpPrincipal
,
ResourceBlockServiceUtil
Constructor and Description |
---|
ResourceBlockServiceHttp() |
Modifier and Type | Method and Description |
---|---|
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) |
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException