public class OrderBlockManager extends java.lang.Object implements OrderBlockManagerInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Modifier | Constructor and Description |
---|---|
protected | OrderBlockManager()
A singleton class - protected constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long | block(java.lang.Long longOrderId, java.lang.Integer blkRsnCodeId, java.lang.String comments, CommandContext cmdContext)
A requested has been received to block an order.
|
java.lang.Long | block(java.lang.Long longOrderId, java.lang.String blockReasonDesc, java.lang.String comments, CommandContext cmdContext)
A requested has been received to block an order.
|
void | copyBlocksBetweenOrders(java.lang.Long copyFromOrderId, java.lang.Long copyToOrderId)
Copy all blocks from order A (from order ID) to order B (to order ID).
|
java.lang.Long | getBlockReasonCodeId(java.lang.Long ordersId, java.lang.String blockReasonCodeDescription)
For an order and a textual description of a block.
|
static OrderBlockManagerInterface | getInstance()
This method returns the reference of the instance to this class
|
java.util.Enumeration | getOrderBlockReasons(java.lang.Long ordersId)
For a particular order gets all the reasons it is blocked for
|
boolean | isBlocked(java.lang.Long longOrderId, CommandContext cmdContext)
Determined if the order is blocked or not.
|
boolean | isBlockedDueToReason(java.lang.Long ordersId, java.lang.Integer blkRsnCodeId)
For a particular order ID and block reason code ID, determine if the order is blocked or not
|
boolean | isBlockedDueToReason(java.lang.Long ordersId, java.lang.String blockReasonCodeDescription)
For a particular order and a block reason description determine if the order is blocked or not
|
boolean | isBlockReasonCodeRespected(java.lang.Integer storeEntiyId, java.lang.Integer blkRsnCodeId)
Determines if a block reason code is respected on a store.
|
boolean | isBlockReasonCodeRespected(java.lang.Integer storeEntiyId, java.lang.String blockReasonCodeDescription)
Determines if a block reason code is respected on a store.
|
boolean | isBlockReasonCodeTickerGenearation(java.lang.Integer storeEntiyId, java.lang.Integer blkRsnCodeId)
Determines if a block reason is tickler generation on a store.
|
boolean | isBlockReasonCodeTickerGenearation(java.lang.Integer storeEntiyId, java.lang.String blockReasonCodeDescription)
Determines if a block reason is tickler generation on a store.
|
void | unBlock(java.lang.Long longOrderId, java.lang.Integer blkRsnCodeId, java.lang.String comments, CommandContext cmdContext)
A requested has been received to unblock an order.
|
void | unBlock(java.lang.Long longOrderId, java.lang.String blockReasonDesc, java.lang.String comments, CommandContext cmdContext)
A requested has been received to unblock an order.
|
public static final java.lang.String COPYRIGHT
protected OrderBlockManager()
public static OrderBlockManagerInterface getInstance()
public boolean isBlocked(java.lang.Long longOrderId, CommandContext cmdContext) throws ECException
public java.lang.Long block(java.lang.Long longOrderId, java.lang.Integer blkRsnCodeId, java.lang.String comments, CommandContext cmdContext) throws ECException
public java.lang.Long block(java.lang.Long longOrderId, java.lang.String blockReasonDesc, java.lang.String comments, CommandContext cmdContext) throws ECException
public void unBlock(java.lang.Long longOrderId, java.lang.Integer blkRsnCodeId, java.lang.String comments, CommandContext cmdContext) throws ECException
public void unBlock(java.lang.Long longOrderId, java.lang.String blockReasonDesc, java.lang.String comments, CommandContext cmdContext) throws ECException
public void copyBlocksBetweenOrders(java.lang.Long copyFromOrderId, java.lang.Long copyToOrderId) throws ECException
public java.util.Enumeration getOrderBlockReasons(java.lang.Long ordersId) throws ECException
public boolean isBlockedDueToReason(java.lang.Long ordersId, java.lang.String blockReasonCodeDescription) throws ECException
public boolean isBlockedDueToReason(java.lang.Long ordersId, java.lang.Integer blkRsnCodeId) throws ECException
public java.lang.Long getBlockReasonCodeId(java.lang.Long ordersId, java.lang.String blockReasonCodeDescription) throws ECException
public boolean isBlockReasonCodeRespected(java.lang.Integer storeEntiyId, java.lang.Integer blkRsnCodeId) throws ECException
public boolean isBlockReasonCodeRespected(java.lang.Integer storeEntiyId, java.lang.String blockReasonCodeDescription) throws ECException
public boolean isBlockReasonCodeTickerGenearation(java.lang.Integer storeEntiyId, java.lang.Integer blkRsnCodeId) throws ECException
public boolean isBlockReasonCodeTickerGenearation(java.lang.Integer storeEntiyId, java.lang.String blockReasonCodeDescription) throws ECException