|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.productset.commands.ProductSetAddCmdImpl
Add a product set definition based on the input XML input.
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
productSetXml | String | mandatory | The XML string of the product set definition. |
productSetDescription | String | optional | The description of the product set. |
languageId | Integer | optional | The language of the description. |
Output parameters:
Name | Type | Description |
---|---|---|
productSetId | Integer | The newly created product set's ID. |
productSetName | String | The newly created product set's name. |
memberId | Long | The newly created product set's member ID. |
Behavior:
Exception:
Field Summary | |
static java.lang.String |
CLASSNAME
The fully qualified name of this class. |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
java.lang.String |
productSetXml
The product set XML definition. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.productset.commands.ProductSetAddCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ProductSetAddCmdImpl()
No value constructor. |
Method Summary | |
org.w3c.dom.Element |
getElementByTag(org.w3c.dom.Element aElement,
java.lang.String tag)
Returns the first DOM element specified by the given tag. |
java.lang.Integer |
getLanguageId()
Returns the LanguageId that represents the primary key of language of the product set description. |
java.lang.Long |
getMemberId()
Returns the MemberId that represents the primary key of the owner of the product set. |
java.lang.String |
getProductSetDescription()
Returns the product set description. |
java.lang.Integer |
getProductSetId()
Returns the ProductSetId that represents the primary key of the product set. |
java.lang.String |
getProductSetName()
Returns the Name of the product set. |
java.lang.String |
getProductSetXml()
Returns the XML definition of the product set. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.lang.String |
getStatic()
Returns the static value of the product set. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
setLanguageId(java.lang.Integer newLanguageId)
Sets the LanguageId that represents the primary key of language of the product set description. |
void |
setMemberId(java.lang.Long newMemberId)
Sets the MemberId that represents the primary key of the owner of the product set. |
void |
setProductSetDescription(java.lang.String newProductSetDescription)
Sets the product set description. |
void |
setProductSetId(java.lang.Integer newPsId)
Sets the ProductSetId that represents the primary key of the product set. |
void |
setProductSetName(java.lang.String newPsName)
Sets the Name of the product set. |
void |
setProductSetXml(java.lang.String newProductSetXml)
Sets the XML definition of the product set. |
void |
setRequestProperties(TypedProperty reqParms)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
void |
setStatic(java.lang.String newStatic)
Sets the static value of the product set. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.String productSetXml
Constructor Detail |
public ProductSetAddCmdImpl()
Method Detail |
public org.w3c.dom.Element getElementByTag(org.w3c.dom.Element aElement, java.lang.String tag)
aElement
- org.w3c.dom.Elementtag
- java.lang.Stringpublic java.lang.Integer getLanguageId()
public java.lang.Long getMemberId()
ProductSetAddCmd
getMemberId
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
public java.lang.String getProductSetDescription()
java.lang.String
- public java.lang.Integer getProductSetId()
ProductSetAddCmd
getProductSetId
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
public java.lang.String getProductSetName()
ProductSetAddCmd
getProductSetName
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
public java.lang.String getProductSetXml()
java.lang.String
- public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public java.lang.String getStatic()
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setLanguageId(java.lang.Integer newLanguageId)
ProductSetAddCmd
setLanguageId
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
newLanguageId
- java.lang.Integerpublic void setMemberId(java.lang.Long newMemberId)
newMemberId
- java.lang.Longpublic void setProductSetDescription(java.lang.String newProductSetDescription)
ProductSetAddCmd
setProductSetDescription
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
newProductSetDescription
- java.lang.Stringpublic void setProductSetId(java.lang.Integer newPsId)
newPsId
- java.lang.Integerpublic void setProductSetName(java.lang.String newPsName)
newPsName
- java.lang.Stringpublic void setProductSetXml(java.lang.String newProductSetXml)
ProductSetAddCmd
setProductSetXml
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
newProductSetXml
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void setStatic(java.lang.String newStatic)
ProductSetAddCmd
setStatic
in interface ProductSetAddCmd
com.ibm.commerce.productset.commands.ProductSetAddCmd
newProductSetXml
- java.lang.Stringpublic void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |