public class ContractDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Protectable, com.ibm.commerce.security.Delegator
Constructor and Description |
---|
ContractDataBean()
Creates a ContractDataBean
|
ContractDataBean(java.lang.Long newContractId,
java.lang.Integer newLangId)
Constructs a ContractDataBean from an existing Contract identifier
|
Modifier and Type | Method and Description |
---|---|
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource.
|
java.lang.Long |
getAccountId()
Gets the account identifier of the account this contract belongs to
If can't get the id, it will return null.
|
java.util.Vector |
getBaseContractIds()
Gets the base contract IDs of this contract
|
java.util.Vector |
getBuyerName()
Gets the customer names assigned to the contract
|
java.lang.String |
getBuyerName(int index)
Gets a customer name assigned to the contract
|
java.lang.String |
getBuyerNumber(int index)
Gets a customer identifier assigned to the contract
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Returns the current command's context
|
java.lang.String |
getContractAccount()
Gets the name of the account of the contract that this contract refers to
|
java.util.Vector |
getContractAttachments()
Gets the list of attachments on the contract
|
java.lang.String |
getContractComment()
Gets the comments in the contract
|
java.lang.String |
getContractDescription()
Gets the description of the contract
|
java.lang.String |
getContractId()
Gets the identifier of the contract
|
java.lang.String |
getContractName()
Gets the name of the contract
|
java.lang.String |
getContractOrigin()
Gets the origin of the contract
|
java.lang.String |
getContractOriginValue()
Gets the origin of the contract as the numeric value.
|
java.lang.String |
getContractState()
Gets the state of the contract
|
java.lang.String |
getContractStore()
Gets the name of the store of the contract that this contract refers to
|
java.lang.String |
getContractStoreId()
Gets the contract store id
|
java.lang.String |
getContractStoreName()
Gets the contractStoreName
|
java.lang.String |
getContractStoreStatus()
Gets the contract store status
|
java.lang.String |
getContractStoreURL()
Gets the contract store URL
|
java.lang.String |
getContractTitle()
Gets the title of the contract
|
java.lang.String |
getContractUsage()
Gets the usage type of the contract
|
java.sql.Timestamp |
getCreateDate()
Gets the creation date of the contract
|
boolean |
getCreditLineAllowed()
Gets where the contract can use the credit line defined in the account
|
java.lang.String |
getCustomerName()
Gets the customer name, used when account is also listed
|
com.ibm.commerce.security.Protectable |
getDelegate()
Returns the access control delegate of this data bean
|
java.sql.Timestamp |
getEndDate()
Gets the end date of the contract
|
java.lang.Long |
getEntityId()
Gets the entity identifier for UBF
|
java.lang.String |
getFamilyId()
Gets the family identifier of the contract
|
java.lang.String |
getMajorVersionNumber()
Gets the major version number of the contract
|
java.lang.String |
getMemberGroupId(int index)
Gets the owner of a member group assigned to the contract.
|
java.util.Vector |
getMemberGroupName()
Gets the member groups assigned to the contract.
|
java.lang.String |
getMemberGroupName(int index)
Gets a member group assigned to the contract.
|
java.util.Vector |
getMemberGroupName(java.lang.String role)
Gets the member groups assigned to the contract with the assigned role.
|
java.lang.Long |
getMemberId()
Gets the member identifier of the owner of the contract
|
java.lang.String |
getMinorVersionNumber()
Gets the minor version number of the contract
|
java.lang.Long |
getOwner()
Gets the owner of the contract
|
java.lang.String |
getPriceListType()
Gets the price list type associated with this contract, or any base contract, catalog filter term and condition
|
java.lang.String |
getPriceListType(boolean thisContractOnly)
Gets the price list type associated with this contract, or any base contract, catalog filter term and condition
|
java.lang.String |
getReferenceContractAccount()
Gets the name of the account of the contract that this contract refers to
|
java.lang.String |
getReferenceContractId()
Gets the id of the contract this contract refers to
|
java.lang.String |
getReferenceContractName()
Gets the name of the contract this contract refers to
|
java.lang.String |
getReferenceContractStore()
Gets the name of the store of the contract that this contract refers to
|
java.lang.String |
getReferenceFamilyId()
Gets the referred contract family id that this contract refers to.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
java.sql.Timestamp |
getStartDate()
Gets the start date of the contract
|
java.lang.Integer |
getStateIdentifier()
Gets the state identifier for UBF
|
java.lang.String[] |
getStoreentIndentifiersFromContract()
Gets the storeent identifiers (Hosted Reseller Store Name) with given contract Id
|
java.lang.String |
getUpdateDate()
Gets the update date of the contract
|
boolean |
isDeployedToStore(java.lang.Integer storeId)
Checks if a Contract is deployed to a store
|
void |
populate()
This method is used to retrieve the data for the contract.
|
void |
save()
Method for UBF
|
void |
setBuyerName(java.lang.String newBuyerName,
int index)
Sets a customer name assigned to the contract
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command context
|
void |
setContractId(java.lang.String contractId)
Sets the contract id
|
void |
setContractName(java.lang.String newContractName)
Sets the contract's name
|
void |
setContractState(java.lang.String state)
Sets the state
|
void |
setContractStoreId(java.lang.String contractStoreId)
Sets the contract store id
|
void |
setContractStoreName(java.lang.String contractStoreName)
Sets the contract store name
|
void |
setContractStoreStatus(java.lang.String contractStoreStatus)
Sets the contract store status
|
void |
setContractTitle(java.lang.String contractDescription)
Sets the description
|
void |
setCreateDate(java.sql.Timestamp newCreateDate)
Sets the create date
|
void |
setCustomerName(java.lang.String customerName)
Sets the customer name, used when account is also listed
|
void |
setEndDate(java.sql.Timestamp newEndDate)
Sets the end date
|
void |
setEntityId(java.lang.Long aId)
Sets the entity identifier for UBF
|
void |
setFamilyId(java.lang.String familyId)
Sets the family id
|
void |
setMajorVersionNumber(java.lang.String number)
Sets the major version number
|
void |
setMinorVersionNumber(java.lang.String number)
Sets the minor version number
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
|
void |
setStartDate(java.sql.Timestamp startDate)
Sets the start date
|
void |
setStateIdentifier(java.lang.Integer aStateIdentifier)
Sets the state identifier for UBF
|
public ContractDataBean()
public ContractDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
newContractId
- an existing Contract identifiernewLangId
- the language identifier for which language to retrieve the datapublic boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
fulfills
in interface com.ibm.commerce.security.Protectable
member
- the member id of the contractrelationship
- the relationship the member has with respect to the resourceraises
- a remote exceptionraises
- an exceptionjava.lang.Exception
public java.lang.Long getAccountId()
public java.util.Vector getBaseContractIds()
public java.util.Vector getBuyerName()
public java.lang.String getBuyerName(int index)
public java.lang.String getBuyerNumber(int index)
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.String getContractAccount()
public java.util.Vector getContractAttachments()
public java.lang.String getContractComment()
public java.lang.String getContractDescription()
public java.lang.String getContractId()
public java.lang.String getContractName()
public java.lang.String getContractOrigin()
public java.lang.String getContractOriginValue()
public java.lang.String getContractState()
public java.lang.String getContractStore()
public java.lang.String getContractStoreId()
public java.lang.String getContractStoreName()
public java.lang.String getContractStoreStatus()
public java.lang.String getContractStoreURL()
public java.lang.String getContractTitle()
public java.lang.String getContractUsage()
public java.sql.Timestamp getCreateDate()
public boolean getCreditLineAllowed()
public java.lang.String getCustomerName()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public java.sql.Timestamp getEndDate()
public java.lang.Long getEntityId()
public java.lang.String getFamilyId()
public java.lang.String getMajorVersionNumber()
public java.lang.String getMemberGroupId(int index)
public java.util.Vector getMemberGroupName()
public java.lang.String getMemberGroupName(int index)
public java.util.Vector getMemberGroupName(java.lang.String role)
public java.lang.Long getMemberId()
public java.lang.String getMinorVersionNumber()
public java.lang.Long getOwner() throws java.lang.Exception
getOwner
in interface com.ibm.commerce.security.Protectable
throws
- a remote exceptionjava.lang.Exception
public java.lang.String getPriceListType()
public java.lang.String getPriceListType(boolean thisContractOnly)
thisContractOnly
- only check the term and condition in this contractpublic java.lang.String getReferenceContractAccount()
public java.lang.String getReferenceContractId()
public java.lang.String getReferenceContractName()
public java.lang.String getReferenceContractStore()
public java.lang.String getReferenceFamilyId()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public java.sql.Timestamp getStartDate()
public java.lang.Integer getStateIdentifier()
public java.lang.String[] getStoreentIndentifiersFromContract()
public java.lang.String getUpdateDate()
public boolean isDeployedToStore(java.lang.Integer storeId)
storeId
- the store IDpublic void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void save()
public void setBuyerName(java.lang.String newBuyerName, int index)
newBuyerName
- the buyer name to be setindex
- the index of the new buyer's namepublic void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
newICommandContext
- sets the command contextpublic void setContractId(java.lang.String contractId)
contractId
- the contract id to setpublic void setContractName(java.lang.String newContractName)
newContractName
- the contract namepublic void setContractState(java.lang.String state)
state
- the state to setpublic void setContractStoreId(java.lang.String contractStoreId)
contractStoreId
- sets the contract store's idpublic void setContractStoreName(java.lang.String contractStoreName)
contractStoreName
- the contract store namepublic void setContractStoreStatus(java.lang.String contractStoreStatus)
contractStoreStatus
- sets the contract store statuspublic void setContractTitle(java.lang.String contractDescription)
contractDescription
- the contract description to setpublic void setCreateDate(java.sql.Timestamp newCreateDate)
newCreateDate
- the create date to setpublic void setCustomerName(java.lang.String customerName)
customerName
- the customer name to setpublic void setEndDate(java.sql.Timestamp newEndDate)
newEndDate
- the endDate to setpublic void setEntityId(java.lang.Long aId)
aId
- the entity id to be setpublic void setFamilyId(java.lang.String familyId)
familyId
- the family id to setpublic void setMajorVersionNumber(java.lang.String number)
number
- the major version number to setpublic void setMinorVersionNumber(java.lang.String number)
number
- the minor version number to setpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- sets the request propertiespublic void setStartDate(java.sql.Timestamp startDate)
startDate
- the startDate to setpublic void setStateIdentifier(java.lang.Integer aStateIdentifier)
aStateIdentifier
- sets the state identifier