public class AttributeUpdateControllerCmdImpl extends ToolsControllerCommandImpl implements AttributeUpdateControllerCmd
AttributeUpdateControllerCmd. This tool controller command updates attributes and attribute values
associated to a catalog entry of type ProductBean as returned by the defining attribute update dialog. This class is not a primary customization point, and it is recommended that customization occurs at the controller and task command level.
{
fr_FR=
{
status=STATIC
name=definingAttribute1_french
type=STRING
description=definingAttribute1_french_description
attributeValues=
[
{
status=STATIC
original=valeur1
value=valeur1
image=/image/valeur1
sequence=1
id=13901
}
{
status=STATIC
original=valeur2
value=valeur2
image=image/valeur2
sequence=2
id=13902
}
{
status=STATIC
original=valeur3
value=valeur3
image=/image/valeur3
sequence=3
id=13903
}
{
status=ADD
value=valeur0
image=/image/valeur0
sequence=4
id=-1
}
]
id=11451
}
XMLFile=catalog.attributeDetailDialog
productrfnbr=14751
en_US=
{
status=UPDATE
name=definingAttribute1_required_updated
type=STRING
description=definingAttribute1_description_updated
attributeValues=
[
{
status=ADD
value=value0
image=/image/value0
sequence=1
id=-1
}
{
status=UPDATE
original=value1
value=value1
image=/image/value1
sequence=2
id=13901
}
{
status=UPDATE
original=value2
value=value2
image=/image/value2
sequence=3
id=13902
}
{
status=UPDATE
original=value3
value=value3
image=/image/value3
sequence=4
id=13903
}
]
id=11451
}
attributeId=11451
isNewAttribute=false
}
Access Beans:Store, CatalogEntryRelation
none| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
CLASSNAME, defaultCommandClassName, NAMENAME| Constructor and Description |
|---|
AttributeUpdateControllerCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
attributeValueCreate(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
Create the attribute values for the specified attribute id.
|
void |
attributeValueDelete(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
Delete the attribute values for the specified attribute id.
|
void |
attributeValueUpdate(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
Update the attribute values for the specified attribute id.
|
void |
performExecute()
Update a defining attribute and its values for a product.
|
getViewInputProperties, setRequestPropertiescheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public java.lang.Long attributeValueCreate(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
throws ECException
ProductAttributeValue bean. Since these are defining attributes values for a ProductBean, the
catalog entry id used is 0. This method calls the command
AttributeValueAddCmd.attributeId - The attribute ID.avalueDB - The ProductAttributeValue bean.ECException - if the attribute value creation failed.public void attributeValueDelete(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
throws ECException
ProductAttributeValue bean. Since these are defining attributes values for a ProductBean, the
catalog entry id used is 0. This method calls the command AttributeValueDeleteCmd.attributeId - The attribute ID.avalueDB - The ProductAttributeValue bean.ECException - if the attribute value deletion fails.public void attributeValueUpdate(java.lang.Long attributeId,
com.ibm.commerce.tools.catalog.beans.ProductAttributeValue avalueDB)
throws ECException
ProductAttributeValue bean. Since these are defining attributes values for a ProductBean, the
catalog entry id used is 0. This method calls the command AttributeValueUpdateCmd.attributeId - The attribute ID.avalueDB - The ProductAttributeValue bean.ECException - if the attribute value update fails.public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - if 1) the resource properties is not found
or 2) the ProductAttributeForAllLanguagesDataBean cannot be populated
or 3) the XML string is null
or 4) a duplicate key exception occurs
or 5) a resource locked exception occurs
or 6) an exception occurs when updating the attribute.