...
Requires Java JDK 1.7 or 1.8
Scenario
...
- K-Market is an online trading company. You can create a user account with K-Market and user profile data store in their own JDBC user store.
- K-Market enforces some control over online trading based on the customer’s privileges which are determined by certain attributes of the customer (age, email etc).
In the initial phase of their access control system, K-Market has included the following access control scenario:
K-Market has three seperate customer groups (i.e. Blue, Silver and Gold) and have put limitations for each group when purchasing items online:Blue Customers Silver Customers Gold Customers Can not buy any liquor or medicine Can not buy any liquor Can purchase liquor and medicine Maximum amount spent on a purchase is limited to $100 Maximum amount spent on a purchase is limited to $500 Maximum amount spent on a purchase is limited to $500 Maximum amount spent on purchasing drinks is limited to $10 Maximum amount spent on purchasing drinks is limited to $50 Maximum amount spent on a purchasing liquor is limited to $10 Maximum amount spent on purchasing medicine is limited to $50 - When the customer proceeds to the shopping cart checkout to enter credit card details, the K-Market access control system is triggered to check whether it is an authorized online purchase.
...