@ProviderType
public class ShoppingCouponServiceUtil
extends java.lang.Object
com.liferay.portlet.shopping.service.impl.ShoppingCouponServiceImpl and is the
primary access point for service operations in application layer code running
on a remote server. Methods of this service are expected to have security
checks based on the propagated JAAS credentials because this service can be
accessed remotely.ShoppingCouponService,
com.liferay.portlet.shopping.service.base.ShoppingCouponServiceBaseImpl,
com.liferay.portlet.shopping.service.impl.ShoppingCouponServiceImpl| Constructor and Description |
|---|
ShoppingCouponServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ShoppingCoupon |
addCoupon(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,
ServiceContext serviceContext) |
static void |
deleteCoupon(long groupId,
long couponId) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static ShoppingCoupon |
getCoupon(long groupId,
long couponId) |
static ShoppingCouponService |
getService() |
static java.util.List<ShoppingCoupon> |
search(long groupId,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator,
int start,
int end) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(ShoppingCouponService service)
Deprecated.
As of 6.2.0
|
static ShoppingCoupon |
updateCoupon(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,
ServiceContext serviceContext) |
public static ShoppingCoupon addCoupon(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, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void deleteCoupon(long groupId,
long couponId)
throws PortalException
PortalExceptionpublic static java.lang.String getBeanIdentifier()
public static ShoppingCoupon getCoupon(long groupId, long couponId) throws PortalException
PortalExceptionpublic static java.util.List<ShoppingCoupon> search(long groupId, long companyId, java.lang.String code, boolean active, java.lang.String discountType, boolean andOperator, int start, int end) throws PortalException
PortalExceptionpublic static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static ShoppingCoupon updateCoupon(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, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static ShoppingCouponService getService()
@Deprecated public void setService(ShoppingCouponService service)