public interface CheckOrderAttributesCmd extends TaskCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation class.
|
static java.lang.String |
NAME
The name of the Command Interface class.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getOrderItems() |
void |
setAttributes(java.lang.String[] attributeNames,
java.lang.String[] attributeValues)
set attributes you want to check.
|
void |
setOrderAccessBean(OrderAccessBean orderAB)
set order access bean you want to check
|
void |
setOrderItemAccessBean(OrderItemAccessBean[] orderItemABs)
set order item access beans you want to check
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setOrderAccessBean(OrderAccessBean orderAB)
orderAB
- OrderAccessBeanvoid setOrderItemAccessBean(OrderItemAccessBean[] orderItemABs)
orderItemABs
- OrderAccessBeanvoid setAttributes(java.lang.String[] attributeNames, java.lang.String[] attributeValues)
The following sample code demonstrates how to set attributes:
String[] attributeNames = new String[] ({"attributeName1", "attributeName2" });
String[] attributeValues = new String[] ({"attributeValue1", "attributeValue2"});
attributeValues can be null.
attributeNames
- attributeValues
- java.util.Map getOrderItems()
The following sample code demonstrates how to resolve the result:
Map result = checkOrderAttributes.getOrderItems();
String[] orderItemIds = (String[]) result.get("orderItemIds");
Map[] attributes = (Map[]) result.get("attributeNames");
for (int i=0; i<orderItemIds.length; i++) {
String orderItem=orderItemIds[i];
Map attributesArray = attributes[i];
if (attributesArray.containsKey("attributeName1")){
String attributeValue1 = (String) attributesArray.get("attributeName1");
}
}