|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.liferay.portlet.shopping.service.http.ShoppingCouponServiceHttp
public class ShoppingCouponServiceHttp
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.portlet.shopping.service.ShoppingCouponServiceUtil 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.
HttpPrincipal,
ShoppingCouponServiceUtil,
ShoppingCouponServiceSoap| Constructor Summary | |
|---|---|
ShoppingCouponServiceHttp()
|
|
| Method Summary | |
|---|---|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
addCoupon(HttpPrincipal httpPrincipal,
long plid,
java.lang.String code,
boolean autoCode,
java.lang.String name,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int endDateHour,
int endDateMinute,
boolean neverExpire,
boolean active,
java.lang.String limitCategories,
java.lang.String limitSkus,
double minOrder,
double discount,
java.lang.String discountType)
|
static void |
deleteCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
getCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId)
|
static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> |
search(HttpPrincipal httpPrincipal,
long plid,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator,
int begin,
int end)
|
static com.liferay.portlet.shopping.model.ShoppingCoupon |
updateCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId,
java.lang.String name,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int endDateHour,
int endDateMinute,
boolean neverExpire,
boolean active,
java.lang.String limitCategories,
java.lang.String limitSkus,
double minOrder,
double discount,
java.lang.String discountType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingCouponServiceHttp()
| Method Detail |
|---|
public static com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(HttpPrincipal httpPrincipal,
long plid,
java.lang.String code,
boolean autoCode,
java.lang.String name,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int endDateHour,
int endDateMinute,
boolean neverExpire,
boolean active,
java.lang.String limitCategories,
java.lang.String limitSkus,
double minOrder,
double discount,
java.lang.String discountType)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public static void deleteCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public static com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(HttpPrincipal httpPrincipal,
long plid,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator,
int begin,
int end)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public static com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(HttpPrincipal httpPrincipal,
long plid,
long couponId,
java.lang.String name,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int endDateHour,
int endDateMinute,
boolean neverExpire,
boolean active,
java.lang.String limitCategories,
java.lang.String limitSkus,
double minOrder,
double discount,
java.lang.String discountType)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||