Interface MyCouponBORepository
- All Superinterfaces:
com.intershop.beehive.businessobject.capi.BusinessObjectRepository
public interface MyCouponBORepository
extends com.intershop.beehive.businessobject.capi.BusinessObjectRepository
Repository for
MyCouponBO.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcountMyCouponsByEmail(String email) Counts allMyCouponBOs for the given email.createMyCouponBOByEmail(String email) Creates a coupon by the given email if the email has already an active coupon, the active coupon will be returned.Generates a coupon codegetMyCouponBOByCode(String couponCode) Gets aMyCouponBOby a coupon codegetMyCouponBOByEmail(String email) Gets aMyCouponBOby a emailMethods inherited from interface com.intershop.beehive.businessobject.capi.BusinessObjectRepository
getContext, getRepositoryID
-
Field Details
-
EXTENSION_ID
- See Also:
-
-
Method Details
-
createMyCouponBOByEmail
Creates a coupon by the given email if the email has already an active coupon, the active coupon will be returned.- Parameters:
email- - the email for the coupon- Returns:
- a new
MyCouponBOfor the given email
-
countMyCouponsByEmail
Counts allMyCouponBOs for the given email.- Returns:
- the count of all
MyCouponBOfor a single email
-
getMyCouponBOByCode
Gets aMyCouponBOby a coupon code- Parameters:
couponCode- - the coupon code- Returns:
- the
MyCouponBO
-
getMyCouponBOByEmail
Gets aMyCouponBOby a email- Parameters:
couponCode- - the coupon code- Returns:
- list of
MyCouponBO
-
getAllCouponBOs
Collection<MyCouponBO> getAllCouponBOs()Generates a coupon code- Returns:
- the generated coupon code
-