public class RewardPointMgr extends BaseMgr
Modifier | Constructor and Description |
---|---|
protected |
RewardPointMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
addPoints(int points,
java.lang.String code,
java.lang.String description)
Adds a number of reward points to the customer's total
|
int |
getCurrentOffset() |
int |
getCurrentPage() |
com.konakart.appif.RewardPointIf[] |
getCurrentRewardPoints() |
com.konakart.appif.FetchRewardPointOptionsIf |
getFetchRewardPointOptions() |
int |
getMaxRows()
Maximum number of reward point transactions to show in a list.
|
java.lang.String |
getNavBack()
Static string - navigate backwards.
|
java.lang.String |
getNavNext()
Static string - navigate forwards.
|
java.lang.String |
getNavStart()
Static string - navigate to the start.
|
int |
getNumberOfRewardPoints()
Returns the number of reward point records currently retrieved.
|
int |
getNumPages() |
java.util.ArrayList<java.lang.Integer> |
getPageList() |
void |
getRewardPoints()
It gets an array of reward point transactions
|
int |
getShowBack()
Show the back button if set to 1.
|
int |
getShowNext()
Show the next button if set to 1.
|
int |
getTotalNumberOfRewardPoints() |
boolean |
isEnabled()
Based on a configuration variable decides whether reward points are enabled.
|
void |
navigateCurrentRewardPoints(java.lang.String navDir)
This method is called to navigate through a list of reward point records when the list is
longer than maxRows.
navDir can take the following values which are retrieved using getter methods on
the RewardPointMgr instance:
getNavNext()
getNavBack()
getNavStart()
|
int |
pointsAvailable()
Returns the number of reward points available to the customer.
|
void |
refreshConfigs()
Refresh the configuration variables.
|
void |
reset()
Puts the RewardPointMgr object back into it's original state
|
void |
setCurrentPage(int currentPage) |
void |
setNumPages(int numPages) |
getEng, getKkAppEng, getPages, isMgrReady, setEng, setKkAppEng
protected RewardPointMgr(com.konakart.appif.KKEngIf eng, KKAppEng kkAppEng) throws com.konakart.app.KKException
eng
- the engkkAppEng
- the kkAppEngcom.konakart.app.KKException
- an unexpected KKException exceptionpublic void reset() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionpublic int pointsAvailable() throws com.konakart.app.KKException, KKAppException
com.konakart.app.KKException
- an unexpected KKException exceptionKKAppException
- an unexpected KKAppException exceptionpublic int addPoints(int points, java.lang.String code, java.lang.String description) throws java.lang.Exception
points
- the pointscode
- An optional code to categorize the reason for awarding the pointsdescription
- An optional description describing why the points were awardedjava.lang.Exception
- an unexpected exceptionpublic void refreshConfigs() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionpublic void navigateCurrentRewardPoints(java.lang.String navDir) throws com.konakart.app.KKException, KKAppException
navDir
can take the following values which are retrieved using getter methods on
the RewardPointMgr instance:
navDir
- The navigation directioncom.konakart.app.KKException
- an unexpected KKException exceptionKKAppException
- an unexpected KKAppException exceptionpublic void getRewardPoints() throws com.konakart.app.KKException, KKAppException
com.konakart.app.KKException
- an unexpected KKException exceptionKKAppException
- an unexpected KKAppException exceptionpublic int getNumberOfRewardPoints()
public int getCurrentOffset()
public boolean isEnabled() throws KKAppException
KKAppException
- an unexpected KKAppException exceptionpublic java.lang.String getNavBack()
navdir
attribute when navigating backwards.public java.lang.String getNavNext()
navdir
attribute when navigating forwards.public java.lang.String getNavStart()
navdir
attribute when navigating to the
start.public int getShowBack()
public int getShowNext()
public int getNumPages()
public void setNumPages(int numPages)
numPages
- the numPages to setpublic int getTotalNumberOfRewardPoints()
public int getMaxRows()
public com.konakart.appif.RewardPointIf[] getCurrentRewardPoints()
public int getCurrentPage()
public void setCurrentPage(int currentPage)
currentPage
- the currentPage to setpublic java.util.ArrayList<java.lang.Integer> getPageList()
public com.konakart.appif.FetchRewardPointOptionsIf getFetchRewardPointOptions()
Copyright © 2018 DS Data Systems UK Ltd.