public class DisplayCustomizationTCDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY_TYPE_ATTACHMENT
Display type attachment
|
static java.lang.String |
DISPLAY_TYPE_TEXTFIELD
Display type textfield
|
Constructor and Description |
---|
DisplayCustomizationTCDataBean()
DisplayCustomizationTCDataBean default constructor, allows to be used
in JSP snippets with
|
DisplayCustomizationTCDataBean(java.lang.Long newAccountId,
java.lang.Integer newLangId)
Construct an DisplayCustomizationTCDataBean from an existing account identifier
Find the Display Customization terms and conditions in the account
|
DisplayCustomizationTCDataBean(java.lang.String newUserId,
java.lang.Integer newStoreId,
java.lang.Integer newLangId)
Construct an DisplayCustomizationTCDataBean from an existing member & store identifiers
Find the Display Customization terms and conditions in the account
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAccountId()
Get the account identifier for the account this term and condition is in
|
AttachmentDataBean |
getAttachment(int indexNumber)
Get a specific attachment databean for this T&C
|
java.lang.String |
getAttachmentReferenceNumber(int indexNumber)
Get a specific attachment reference number for this T&C
|
java.lang.String[] |
getAttachmentURL()
Get a whole list of the display attachment URL for this T&C
|
java.lang.String |
getAttachmentURL(int indexNumber)
Get a specific display attachment URL for this T&C
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Returns the current command's context
|
com.ibm.commerce.security.Protectable |
getDelegate()
Return the access control delegate of this databean
|
java.lang.String |
getDisplayLogoReferenceNumber(int indexNumber)
Get a specific display logo (attachment) reference number for this T&C
|
java.lang.String[] |
getDisplayText()
Get a whole list of the display text for this T&C
|
java.lang.String |
getDisplayText(int indexNumber)
Get a specific display text for this T&C
|
java.lang.String |
getDisplayTextReferenceNumber(int indexNumber)
Get a specific display text's reference number for this T&C
|
boolean |
getHasDisplayLogo()
Is there display logo attachment term and condition in the account
|
boolean |
getHasDisplayText()
Is there display text term and condition in the account
|
java.lang.Integer |
getLanguageId()
Get the language ID
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets request properties
|
java.lang.Integer |
getStoreId()
Get the store ID
|
java.lang.Long |
getUserId()
Get the user ID
|
void |
populate()
Get the Display Customization term and conditions in the account
|
void |
setAccountId(java.lang.Long newAccountId)
Set the account identifier for the account this term and condition is in
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Set the command context
|
void |
setLanguageId(java.lang.Integer newLangId)
Set the language ID
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Set the request properties.
|
void |
setStoreId(java.lang.Integer newStoreId)
Set the store ID, it also uses the user ID together to retrieve & set
the proper account ID for this term & condition.
|
void |
setUserId(java.lang.Long newUserId)
Set the user ID
|
public static final java.lang.String DISPLAY_TYPE_ATTACHMENT
public static final java.lang.String DISPLAY_TYPE_TEXTFIELD
public DisplayCustomizationTCDataBean()
public DisplayCustomizationTCDataBean(java.lang.Long newAccountId, java.lang.Integer newLangId)
newAccountId
- Long An existing account identifiernewLangId
- Integer The language identifier for which language to retrieve the datapublic DisplayCustomizationTCDataBean(java.lang.String newUserId, java.lang.Integer newStoreId, java.lang.Integer newLangId)
newUserId
- String An existing member identifiernewStoreId
- Integer An existing store identifiernewLangId
- Integer The language identifier for which language to retrieve the datapublic java.lang.Long getAccountId()
public AttachmentDataBean getAttachment(int indexNumber) throws com.ibm.commerce.exception.ECException
indexNumber
- attachment's index number for this T&Ccom.ibm.commerce.exception.ECException
public java.lang.String getAttachmentReferenceNumber(int indexNumber) throws com.ibm.commerce.exception.ECException
indexNumber
- attachment's index number for this T&Ccom.ibm.commerce.exception.ECException
public java.lang.String[] getAttachmentURL()
public java.lang.String getAttachmentURL(int indexNumber)
indexNumber
- display attachment's index number for this T&Cpublic com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public java.lang.String getDisplayLogoReferenceNumber(int indexNumber) throws com.ibm.commerce.exception.ECException
indexNumber
- attachment's index number for this T&Ccom.ibm.commerce.exception.ECException
public java.lang.String[] getDisplayText() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public java.lang.String getDisplayText(int indexNumber) throws com.ibm.commerce.exception.ECException
indexNumber
- display text's index number for this T&Ccom.ibm.commerce.exception.ECException
public java.lang.String getDisplayTextReferenceNumber(int indexNumber) throws com.ibm.commerce.exception.ECException
indexNumber
- display text's index number for this T&Ccom.ibm.commerce.exception.ECException
public boolean getHasDisplayLogo()
public boolean getHasDisplayText()
public java.lang.Integer getLanguageId()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public java.lang.Integer getStoreId()
public java.lang.Long getUserId()
public void populate() throws java.lang.Exception
populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setAccountId(java.lang.Long newAccountId)
newAccountId
- Long An existing account identifier for this term & conditionpublic void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
newICommandContext
- com.ibm.commerce.command.CommandContextpublic void setLanguageId(java.lang.Integer newLangId)
newLangId
- Integer The language identifier for which language to retrieve the datapublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- com.ibm.commerce.datatype.TypedPropertypublic void setStoreId(java.lang.Integer newStoreId)
newStoreId
- String An existing store identifierpublic void setUserId(java.lang.Long newUserId)
newUserId
- Long An existing member identifier