|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.ecap.merchant.shopdecisions.negotiationpreparation.NegotiationDescriptionInventory
public class NegotiationDescriptionInventory
A class responsible for gethering and managing of previous negotiation descriptions of products. Implemented using a simple map, hence it doesn't provide persistence.
Constructor Summary | |
---|---|
NegotiationDescriptionInventory()
|
Method Summary | |
---|---|
NegotiationDescription |
getLastDescription(java.lang.String productId)
Returns the previous negotiation desription of the given product or null if none exists. |
java.util.List<java.lang.String> |
getRegisteredProducts()
Returns a list of ids of products registered for periodical template updates. |
boolean |
isRegistered(java.lang.String productId)
Determines whether the specified product is registered for periodical template updates. |
void |
registerProduct(java.lang.String productId)
Registers a product for management of negotiation descriptions. |
void |
setLastDescription(java.lang.String productId,
NegotiationDescription description)
Updates the previous negotiation description of the product. |
void |
withdrawProduct(java.lang.String productId)
Withdraws a product from management of negotiation descriptions. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NegotiationDescriptionInventory()
Method Detail |
---|
public NegotiationDescription getLastDescription(java.lang.String productId)
productId
- the id of the product which negotiation description is to be returned
public void registerProduct(java.lang.String productId)
productId
- the id of the product to register.public void withdrawProduct(java.lang.String productId)
productId
- the id of the product to withdraw.public void setLastDescription(java.lang.String productId, NegotiationDescription description)
productId
- description
- public boolean isRegistered(java.lang.String productId)
productId
- the id of the product to check
true
if the specified product is registered for periodical template updates
false
otherwisepublic java.util.List<java.lang.String> getRegisteredProducts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |