com.ibm.commerce.tools.contract.beans
Class CustomPricingTCDataBean
- java.lang.Object
-
- com.ibm.commerce.tools.contract.beans.CustomPricingTCDataBean
-
- All Implemented Interfaces:
- com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable
public class CustomPricingTCDataBean extends java.lang.Object implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
This data bean represents a Custom Pricing Term and Condition object. Retrieves all the data associated with a Fixed Pricing Term and Condition Sets the contract and language identifiers in order to populate the bean. When retrieving the Fixed Pricing term and conditions in the contract, the data bean will be called. The data bean maps to a database table TERMCOND- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description CustomPricingTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
Constructs an CustomPricingTCDataBean from an existing contract identifier Finds the Fixed Pricing terms and conditions in the contract
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description com.ibm.commerce.command.CommandContext
getCommandContext()
Returns the current command's contextjava.lang.Long
getContractId()
Gets the contract identifier for the contract this term and condition are injava.lang.String
getCustomPricingReferenceNumber()
Gets the reference number of the fixed price term and conditioncom.ibm.commerce.security.Protectable
getDelegate()
Returns the access control delegate of this data bean.java.lang.String
getLanguageId()
Gets the language identifier in which the data was loadedjava.lang.String[]
getOfferField1()
Gets the field1 of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferId()
Gets the identifiers of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMaximumPurchaseQuantity()
Gets the maximum purchase quantity of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMemberDN()
Gets the member distinguished name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMemberGroupDN()
Gets the member group distinguished name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMemberGroupName()
Gets the member group name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMemberGroupType()
Gets the member group type of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMemberType()
Gets the member type of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferMinimumPurchaseQuantity()
Gets the minimum purchase quantity of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferPrecedence()
Gets the precedence of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferPriceCurrency()
Gets the currency of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferPriceValue()
Gets the price of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferPublished()
Gets the published state of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferQuantityUnit()
Gets the inventory of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferReferenceNumber()
Gets the reference numbers of the products in the fixed pricing term and conditionsjava.lang.String[]
getOfferSkuNumber()
Gets the skus of the products in the fixed pricing term and conditionsstatic com.ibm.commerce.order.objects.TradingPositionContainerAccessBean
getPriceListAccessBean(java.lang.Long contractId)
Gets the price list access bean for the fixed pricing term and condition for a contractjava.lang.String[]
getPriceListDescription()
Gets the description of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListId()
Gets the identifier of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListMemberDN()
Gets the member distinguished name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListMemberGroupDN()
Gets the member group distinguished name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListMemberGroupName()
Gets the member group name of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListMemberGroupType()
Gets the member group type of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListMemberType()
Gets the type of the owner of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListName()
Gets the names of the products in the fixed pricing term and conditionsstatic java.util.Vector
getPriceListOffers(java.lang.String priceListId)
Gets the offers for the fixed pricing term and condition for a contract.java.lang.String[]
getPriceListPrecedence()
Gets the precedence of the products in the fixed pricing term and conditionsjava.lang.String[]
getPriceListReferenceNumber()
Gets the reference numbers of the fixed pricing term and conditionsstatic java.lang.String
getPriceListTermcondId(java.lang.Long contractId)
Gets the term and condition ID for the fixed pricing term and condition for a contract.java.lang.String[]
getPriceListType()
Gets the types of the fixed pricing term and conditionscom.ibm.commerce.datatype.TypedProperty
getRequestProperties()
Gets the request propertiesjava.lang.String
getXmlDefinition()
Gets the XML definition of the fixed pricing term and conditionvoid
populate()
This method is used to retrieve the Fixed Pricing term and conditions in the contract.void
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command contextvoid
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
-
-
-
Constructor Detail
-
CustomPricingTCDataBean
public CustomPricingTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
Constructs an CustomPricingTCDataBean from an existing contract identifier Finds the Fixed Pricing terms and conditions in the contract- Parameters:
newContractId
- Long An existing contract identifiernewLangId
- Integer The language identifier for which language to retrieve the data
-
-
Method Detail
-
getCommandContext
public com.ibm.commerce.command.CommandContext getCommandContext()
Returns the current command's context- Specified by:
getCommandContext
in interfacecom.ibm.commerce.beans.SmartDataBean
- Returns:
- com.ibm.commerce.command.CommandContext
-
getContractId
public java.lang.Long getContractId()
Gets the contract identifier for the contract this term and condition are in- Returns:
- Long
-
getCustomPricingReferenceNumber
public java.lang.String getCustomPricingReferenceNumber()
Gets the reference number of the fixed price term and condition- Returns:
- customPricingReferenceNumber
-
getDelegate
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
Returns the access control delegate of this data bean.- Specified by:
getDelegate
in interfacecom.ibm.commerce.security.Delegator
- Returns:
- com.ibm.commerce.security.Protectable
- Throws:
java.lang.Exception
-
getLanguageId
public java.lang.String getLanguageId()
Gets the language identifier in which the data was loaded- Returns:
- String
-
getOfferField1
public java.lang.String[] getOfferField1()
Gets the field1 of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferId
public java.lang.String[] getOfferId()
Gets the identifiers of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMaximumPurchaseQuantity
public java.lang.String[] getOfferMaximumPurchaseQuantity()
Gets the maximum purchase quantity of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMemberDN
public java.lang.String[] getOfferMemberDN()
Gets the member distinguished name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMemberGroupDN
public java.lang.String[] getOfferMemberGroupDN()
Gets the member group distinguished name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMemberGroupName
public java.lang.String[] getOfferMemberGroupName()
Gets the member group name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMemberGroupType
public java.lang.String[] getOfferMemberGroupType()
Gets the member group type of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMemberType
public java.lang.String[] getOfferMemberType()
Gets the member type of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferMinimumPurchaseQuantity
public java.lang.String[] getOfferMinimumPurchaseQuantity()
Gets the minimum purchase quantity of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferPrecedence
public java.lang.String[] getOfferPrecedence()
Gets the precedence of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferPriceCurrency
public java.lang.String[] getOfferPriceCurrency()
Gets the currency of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferPriceValue
public java.lang.String[] getOfferPriceValue()
Gets the price of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferPublished
public java.lang.String[] getOfferPublished()
Gets the published state of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferQuantityUnit
public java.lang.String[] getOfferQuantityUnit()
Gets the inventory of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferReferenceNumber
public java.lang.String[] getOfferReferenceNumber()
Gets the reference numbers of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getOfferSkuNumber
public java.lang.String[] getOfferSkuNumber()
Gets the skus of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListAccessBean
public static com.ibm.commerce.order.objects.TradingPositionContainerAccessBean getPriceListAccessBean(java.lang.Long contractId)
Gets the price list access bean for the fixed pricing term and condition for a contract- Parameters:
contractId
- Long An existing contract identifier- Returns:
- TradingPositionContainerAccessBean
-
getPriceListDescription
public java.lang.String[] getPriceListDescription()
Gets the description of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListId
public java.lang.String[] getPriceListId()
Gets the identifier of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListMemberDN
public java.lang.String[] getPriceListMemberDN()
Gets the member distinguished name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListMemberGroupDN
public java.lang.String[] getPriceListMemberGroupDN()
Gets the member group distinguished name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListMemberGroupName
public java.lang.String[] getPriceListMemberGroupName()
Gets the member group name of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListMemberGroupType
public java.lang.String[] getPriceListMemberGroupType()
Gets the member group type of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListMemberType
public java.lang.String[] getPriceListMemberType()
Gets the type of the owner of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListName
public java.lang.String[] getPriceListName()
Gets the names of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListOffers
public static java.util.Vector getPriceListOffers(java.lang.String priceListId)
Gets the offers for the fixed pricing term and condition for a contract.- Parameters:
priceListId
- String An existing price list- Returns:
- Vector
-
getPriceListPrecedence
public java.lang.String[] getPriceListPrecedence()
Gets the precedence of the products in the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListReferenceNumber
public java.lang.String[] getPriceListReferenceNumber()
Gets the reference numbers of the fixed pricing term and conditions- Returns:
- String[]
-
getPriceListTermcondId
public static java.lang.String getPriceListTermcondId(java.lang.Long contractId)
Gets the term and condition ID for the fixed pricing term and condition for a contract.- Parameters:
contractId
- Long An existing contract identifier- Returns:
- String
-
getPriceListType
public java.lang.String[] getPriceListType()
Gets the types of the fixed pricing term and conditions- Returns:
- String[]
-
getRequestProperties
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
Gets the request properties- Specified by:
getRequestProperties
in interfacecom.ibm.commerce.beans.InputDataBean
- Returns:
- null
-
getXmlDefinition
public java.lang.String getXmlDefinition()
Gets the XML definition of the fixed pricing term and condition- Returns:
- String
-
populate
public void populate() throws java.lang.Exception
This method is used to retrieve the Fixed Pricing term and conditions in the contract. Loads data into the data bean when theDataBeanManager.activate()
runs.- Specified by:
populate
in interfacecom.ibm.commerce.beans.SmartDataBean
- Throws:
java.lang.Exception
-
setCommandContext
public void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command context- Specified by:
setCommandContext
in interfacecom.ibm.commerce.beans.SmartDataBean
- Parameters:
newICommandContext
- com.ibm.commerce.command.CommandContext
-
setRequestProperties
public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.- Specified by:
setRequestProperties
in interfacecom.ibm.commerce.beans.InputDataBean
- Parameters:
param
- com.ibm.commerce.datatype.TypedProperty
-
-