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 TypeMethodDescriptionint
countMyCouponsByEmail
(String email) Counts allMyCouponBO
s 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 aMyCouponBO
by a coupon codegetMyCouponBOByEmail
(String email) Gets aMyCouponBO
by 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
MyCouponBO
for the given email
-
countMyCouponsByEmail
Counts allMyCouponBO
s for the given email.- Returns:
- the count of all
MyCouponBO
for a single email
-
getMyCouponBOByCode
Gets aMyCouponBO
by a coupon code- Parameters:
couponCode
- - the coupon code- Returns:
- the
MyCouponBO
-
getMyCouponBOByEmail
Gets aMyCouponBO
by a email- Parameters:
couponCode
- - the coupon code- Returns:
- list of
MyCouponBO
-
getAllCouponBOs
Collection<MyCouponBO> getAllCouponBOs()Generates a coupon code- Returns:
- the generated coupon code
-