java.lang.Object | +--com.ibm.commerce.tools.contract.beans.ContractDataBean
Retrieve all the data associated with an Contract. Set the Contract and language identifiers in order to populate the bean.
Field Summary | |
---|---|
protected
java.lang.String |
storeId |
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
ContractDataBean() Create a ContractDataBean | |
ContractDataBean(java.lang.Long newContractId,
java.lang.Integer newLangId) Construct an ContractDataBean from an existing Contract identifier |
Method Summary | |
---|---|
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() Get the account identifier of the account this contract belongs to |
java.util.Vector |
getBuyerName() Get the customer names assigned to the contract |
java.lang.String |
getBuyerName(int index) Get a customer name assigned to the contract |
java.lang.String |
getBuyerNumber(int index) Get a customer identifer assigned to the contract |
CommandContext |
getCommandContext() Returns the current command's context |
java.util.Vector |
getContractAttachments() Get the list of attachments on the contract |
java.lang.String |
getContractComment() Get the comments in the contract |
java.lang.String |
getContractDescription() Get the description of the contract |
java.lang.String |
getContractId() Get the identifier of the contract |
java.lang.String |
getContractName() Get the name of the contract |
java.lang.String |
getContractOrigin() Get the origin of the contract |
java.lang.String |
getContractState() Get the state of the contract |
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() Get the title of the contract |
java.lang.String |
getContractUsage() Get the usage type of the contract |
java.sql.Timestamp |
getCreateDate() Get the creation date of the contract |
boolean |
getCreditLineAllowed() Can the contract 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() Return the access control delegate of this databean |
java.sql.Timestamp |
getEndDate() Get the end date of the contract |
java.lang.Long |
getEntityId() Get the entity identifier for UBF |
java.lang.String |
getMajorVersionNumber() Get the major version number of the contract |
java.lang.Long |
getMemberId() Get the member identifier of the owner of the contract |
java.lang.String |
getMinorVersionNumber() Get the minor version number of the contract |
java.lang.Long |
getOwner() Get the owner of the contract |
java.lang.String |
getReferenceContractId() Get the id of the contract this contract refers to |
java.lang.String |
getReferenceContractName() Get the name of the contract this contract refers to |
TypedProperty |
getRequestProperties() Get the request properties |
java.sql.Timestamp |
getStartDate() Get the start date of the contract |
java.lang.Integer |
getStateIdentifier() Get 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() Get the update date of the contract |
void |
populate() Retreive the data for the contract This method does nothing because we do not want to load all of the data at one time. |
void |
save() Method for UBF |
void |
setBuyerName(java.lang.String newBuyerName, int index) Set a customer name assigned to the contract |
void |
setCommandContext(
CommandContext newICommandContext) Set 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) Set the entity identifier for UBF |
void |
setRequestProperties(
TypedProperty param) Set the requestProperties associated with the data bean. |
void |
setStartDate(java.sql.Timestamp startDate) Sets the start date |
void |
setStateIdentifier(java.lang.Integer aStateIdentifier) Set the state identifier for UBF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String storeId
Constructor Detail |
---|
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 dataMethod Detail |
---|
public java.lang.Long getAccountId()
public java.util.Vector getBuyerName()
public java.lang.String getBuyerName(int index)
public java.lang.String getBuyerNumber(int index)
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
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 getContractState()
public java.lang.String getContractTitle()
public java.lang.String getContractUsage()
public java.sql.Timestamp getCreateDate()
public java.lang.String getUpdateDate()
public boolean getCreditLineAllowed()
public java.lang.String getReferenceContractId()
public java.lang.String getReferenceContractName()
public java.lang.String getCustomerName()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
java.lang.Exception
public java.sql.Timestamp getEndDate()
public java.lang.Long getEntityId()
public java.lang.String getMajorVersionNumber()
public java.lang.Long getMemberId()
public java.lang.String getMinorVersionNumber()
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException
throws
- a remote exceptionjava.lang.Exception
java.rmi.RemoteException
public TypedProperty getRequestProperties()
getRequestProperties
in interface
InputDataBean
public java.sql.Timestamp getStartDate()
public java.lang.Integer getStateIdentifier()
public void populate() throws java.lang.Exception
populate
in interface
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(CommandContext newICommandContext)
setCommandContext
in interface
SmartDataBean
newICommandContext
- sets the command
contextpublic void setCustomerName(java.lang.String customerName)
customerName
- the customer name to setpublic void setEntityId(java.lang.Long aId)
aId
- the entity id to be setpublic void setRequestProperties(TypedProperty param)
InputDataBean
setRequestProperties
in interface
InputDataBean
public void setStateIdentifier(java.lang.Integer aStateIdentifier)
aStateIdentifier
- sets the state
identifierpublic boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception, java.rmi.RemoteException
member
- the member id of the contractrelationship
- the relationship the member has with respect to
the resourceraises
- a remote exceptionraises
- an exceptionjava.lang.Exception
java.rmi.RemoteException
public void setContractId(java.lang.String contractId)
contractId
- the contract id to setpublic void setStartDate(java.sql.Timestamp startDate)
startDate
- the startDate to setpublic void setEndDate(java.sql.Timestamp newEndDate)
newEndDate
- the endDate to setpublic void setCreateDate(java.sql.Timestamp newCreateDate)
newCreateDate
- the create date to setpublic void setContractTitle(java.lang.String contractDescription)
contractDescription
- the contract description to
setpublic void setContractName(java.lang.String newContractName)
newContractName
- the contract namepublic void setContractState(java.lang.String state)
state
- the state to setpublic java.lang.String getContractStoreName()
public void setContractStoreName(java.lang.String contractStoreName)
contractStoreName
- the contract store
namepublic java.lang.String getContractStoreStatus()
public void setContractStoreStatus(java.lang.String contractStoreStatus)
contractStoreStatus
- sets the contract store
statuspublic java.lang.String getContractStoreId()
public java.lang.String getContractStoreURL()
public void setContractStoreId(java.lang.String contractStoreId)
contractStoreId
- sets the contract store's
idpublic java.lang.String[] getStoreentIndentifiersFromContract()