public class CampaignSimpleListDataBean
extends com.ibm.commerce.beans.SmartDataBeanImpl
implements com.ibm.commerce.security.Protectable, com.ibm.commerce.security.Delegator
CampaignListDataBean
as this class only
returns the campaign IDs and the campaign names. This is used when associating
a web activity to a campaign. You can specify to return the
campaigns for all stores on the store path, or only the ones from the
current store.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CampaignSimpleListDataBean()
Constructs an CampaignSimpleListDataBean
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCampaignIdList()
This method returns the list of campaign IDs for the campaigns in a store.
|
java.lang.String[] |
getCampaignNameList()
This method returns the list of campaign names for the campaigns in a store.
|
com.ibm.commerce.security.Protectable |
getDelegate()
This method returns the access control delegate of this data bean.
|
boolean |
getLocalSearch()
This method gets the value of the local search flag.
|
java.lang.Long |
getOwner()
This method gets the owner of the campaigns.
|
void |
populate()
This method searches the database for the campaigns in a store, and sets the data to be returned by the
getCampaignIdList and getCampaignNameList methods. |
void |
setLocalSearch(boolean newLocalSearch)
This method sets the local search flag.
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
public static final java.lang.String COPYRIGHT
public CampaignSimpleListDataBean()
public java.lang.String[] getCampaignIdList()
getCampaignNameList
will be an array of the same size with the corresponding
names of the campaigns.public java.lang.String[] getCampaignNameList()
getCampaignIdList
will be an array of the same size with the corresponding
IDs of the campaigns.public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public boolean getLocalSearch()
public java.lang.Long getOwner() throws java.lang.Exception
getOwner
in interface com.ibm.commerce.security.Protectable
java.lang.Exception
- raised when there is a remote exceptionpublic void populate() throws java.lang.Exception
getCampaignIdList
and getCampaignNameList
methods.populate
in interface com.ibm.commerce.beans.SmartDataBean
populate
in class com.ibm.commerce.beans.SmartDataBeanImpl
java.lang.Exception
public void setLocalSearch(boolean newLocalSearch)
newLocalSearch
- Set true to return from the current store only.