com.liferay.portlet.mobiledevicerules.service.http
Class MDRRuleServiceHttp
java.lang.Object
com.liferay.portlet.mobiledevicerules.service.http.MDRRuleServiceHttp
public class MDRRuleServiceHttp
- extends java.lang.Object
This class provides a HTTP utility for the
MDRRuleServiceUtil 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.
- Author:
- Edward C. Han
- See Also:
MDRRuleServiceSoap,
HttpPrincipal,
MDRRuleServiceUtil- Generated:
|
Method Summary |
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
addRule(HttpPrincipal httpPrincipal,
long ruleGroupId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
|
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
addRule(HttpPrincipal httpPrincipal,
long ruleGroupId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
|
static void |
deleteRule(HttpPrincipal httpPrincipal,
long ruleId)
|
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
fetchRule(HttpPrincipal httpPrincipal,
long ruleId)
|
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
getRule(HttpPrincipal httpPrincipal,
long ruleId)
|
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
updateRule(HttpPrincipal httpPrincipal,
long ruleId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
|
static com.liferay.portlet.mobiledevicerules.model.MDRRule |
updateRule(HttpPrincipal httpPrincipal,
long ruleId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
com.liferay.portal.service.ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MDRRuleServiceHttp
public MDRRuleServiceHttp()
addRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(HttpPrincipal httpPrincipal,
long ruleGroupId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(HttpPrincipal httpPrincipal,
long ruleGroupId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteRule
public static void deleteRule(HttpPrincipal httpPrincipal,
long ruleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
fetchRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(HttpPrincipal httpPrincipal,
long ruleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(HttpPrincipal httpPrincipal,
long ruleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(HttpPrincipal httpPrincipal,
long ruleId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateRule
public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(HttpPrincipal httpPrincipal,
long ruleId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException