|
||||||||
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.ProductSetPolicyAddCmdImpl
Add a product set policy.
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
productSetXml | String | optional | The XML string of the product set definition. |
productSetDescription | String | optional | The description of the product set. |
name | String | optional | The name of the product set policy. |
policyDescription | String | optional | The description of the product set policy. |
languageId | Integer | optional | The language of the description. |
catalogId | Long | optional | The catalog ID. |
categoryId | Long | optional | The category ID. |
Output parameters:
Name | Type | Description |
---|---|---|
productSetId | Integer | The newly created product set's ID. |
productSetName | String | The newly created product set's name. |
policyId | Long | The newly created product set policy's ID. |
policyName | String | The newly created product set policy's name. |
Behavior:
Exception:
Field Summary | |
java.lang.Long |
catalogId
The Catalog ID. |
java.lang.Long |
catChildGroupId
The Child Catalog Group ID. |
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 XML definition of the product set. |
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.ProductSetPolicyAddCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ProductSetPolicyAddCmdImpl()
No value constructor. |
Method Summary | |
void |
createCatGroupProductSetRel()
Creates an association between the catalog group and the product set. |
java.lang.Long |
getCatalogId()
Returns the CatalogId that represents the primary key of the catalog. |
java.lang.Long |
getCatGroupId()
Returns the CatalogGroupId (CategoryId) that represents the primary key of the category. |
java.lang.Integer |
getLanguageId()
Returns the LanguageId that represents the primary key of language of the description. |
java.lang.Long |
getMemberId()
Returns the MemberId that represents the primary key of the product set's owner. |
java.lang.String |
getPolicyDescription()
Returns the description of the policy. |
java.lang.Long |
getPolicyId()
Returns the PolicyId that represents the primary key of the policy. |
java.lang.String |
getPolicyName()
Returns the name of the policy. |
java.lang.String |
getProductSetDescription()
Returns the description of the product set. |
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. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
setCatalogId(java.lang.Long newCatalogId)
Sets the CatalogId that represents the primary key of the catalog. |
void |
setCatGroupId(java.lang.Long newCatChildGroupId)
Sets the CatalogGroupId (CategoryId) that represents the primary key of the category. |
void |
setLanguageId(java.lang.Integer newLanguageId)
Sets the LanguageId that represents the primary key of language of the description. |
void |
setMemberId(java.lang.Long newMemberId)
Sets the MemberId that represents the primary key of the product set's owner. |
void |
setPolicyDescription(java.lang.String newPolicyDescription)
|
void |
setPolicyId(java.lang.Long newPolicyId)
Sets the ID of the policy. |
void |
setPolicyName(java.lang.String newPolicyName)
Sets the name of the policy. |
void |
setProductSetDescription(java.lang.String newProductSetDescription)
Sets the description of the product set. |
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 |
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, getResources, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public java.lang.Long catalogId
public java.lang.Long catChildGroupId
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.String productSetXml
Constructor Detail |
public ProductSetPolicyAddCmdImpl()
Method Detail |
public void createCatGroupProductSetRel() throws ECException
ECException
- public java.lang.Long getCatalogId()
public java.lang.Long getCatGroupId()
public java.lang.Integer getLanguageId()
public java.lang.Long getMemberId()
public java.lang.String getPolicyDescription()
public java.lang.Long getPolicyId()
ProductSetPolicyAddCmd
getPolicyId
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
public java.lang.String getPolicyName()
ProductSetPolicyAddCmd
getPolicyName
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
public java.lang.String getProductSetDescription()
public java.lang.Integer getProductSetId()
ProductSetPolicyAddCmd
getProductSetId
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
public java.lang.String getProductSetName()
ProductSetPolicyAddCmd
getProductSetName
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
public java.lang.String getProductSetXml()
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 setCatalogId(java.lang.Long newCatalogId)
ProductSetPolicyAddCmd
setCatalogId
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
newCatalogId
- java.lang.Longpublic void setCatGroupId(java.lang.Long newCatChildGroupId)
ProductSetPolicyAddCmd
setCatGroupId
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
newCatGroupId
- java.lang.Longpublic void setLanguageId(java.lang.Integer newLanguageId)
ProductSetPolicyAddCmd
setLanguageId
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
newLanguageId
- java.lang.Integerpublic void setMemberId(java.lang.Long newMemberId)
newMemberId
- java.lang.Longpublic void setPolicyDescription(java.lang.String newPolicyDescription)
public void setPolicyId(java.lang.Long newPolicyId)
newPolicyId
- java.lang.Longpublic void setPolicyName(java.lang.String newPolicyName)
ProductSetPolicyAddCmd
setPolicyName
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
newPolicyName
- java.lang.Stringpublic void setProductSetDescription(java.lang.String newProductSetDescription)
ProductSetPolicyAddCmd
setProductSetDescription
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
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)
ProductSetPolicyAddCmd
setProductSetXml
in interface ProductSetPolicyAddCmd
com.ibm.commerce.productset.commands.ProductSetPolicyAddCmd
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 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 |