Package org.apache.unomi.api.campaigns
Class Campaign
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.MetadataItem
org.apache.unomi.api.campaigns.Campaign
- All Implemented Interfaces:
Serializable
A goal-oriented, time-limited marketing operation that needs to be evaluated for return on investment performance by tracking the ratio of visits to conversions.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.unomi.api.MetadataItem
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCost()
Retrieves the cost incurred by this Campaign.Retrieves the currency associated to the Campaign's cost.Retrieves the end date for this Campaign.Retrieves the entry condition that must be satisfied for users to be considered as taking part of this Campaign.Retrieves the identifier for this Campaign's primaryGoal
.Retrieves the start date for this Campaign.Retrieves the timezone associated with this Campaign's start and end dates.void
Sets the cost incurred by this Campaign.void
setCurrency
(String currency) Sets the currency associated to the Campaign's cost.void
setEndDate
(Date endDate) Sets the end date for this Campaign.void
setEntryCondition
(Condition entryCondition) Sets the entry condition that must be satisfied for users to be considered as taking part of this Campaign..void
setPrimaryGoal
(String primaryGoal) Sets the identifier for this Campaign's primaryGoal
.void
setStartDate
(Date startDate) Sets the start date for this Campaign.void
setTimezone
(String timezone) Sets the timezone associated with this Campaign's start and end dates.Methods inherited from class org.apache.unomi.api.MetadataItem
getMetadata, getScope, setMetadata
Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
ITEM_TYPE
The Campaign ITEM_TYPE.
-
-
Constructor Details
-
Campaign
public Campaign()Instantiates a new Campaign. -
Campaign
Instantiates a new Campaign with the specified metadata.- Parameters:
metadata
- the metadata
-
-
Method Details
-
getStartDate
Retrieves the start date for this Campaign.- Returns:
- the start date
-
setStartDate
Sets the start date for this Campaign.- Parameters:
startDate
- the start date
-
getEndDate
Retrieves the end date for this Campaign.- Returns:
- the end date
-
setEndDate
Sets the end date for this Campaign.- Parameters:
endDate
- the end date
-
getEntryCondition
Retrieves the entry condition that must be satisfied for users to be considered as taking part of this Campaign.- Returns:
- the entry condition that must be satisfied for users to be considered as taking part of this Campaign
-
setEntryCondition
Sets the entry condition that must be satisfied for users to be considered as taking part of this Campaign..- Parameters:
entryCondition
- the entry condition that must be satisfied for users to be considered as taking part of this Campaign
-
getCost
Retrieves the cost incurred by this Campaign.- Returns:
- the cost incurred by this Campaign
-
setCost
Sets the cost incurred by this Campaign.- Parameters:
cost
- the cost incurred by this Campaign
-
getCurrency
Retrieves the currency associated to the Campaign's cost.- Returns:
- the currency associated to the Campaign's cost
-
setCurrency
Sets the currency associated to the Campaign's cost.- Parameters:
currency
- the currency associated to the Campaign's cost
-
getPrimaryGoal
Retrieves the identifier for this Campaign's primaryGoal
.- Returns:
- the identifier for this Campaign's primary
Goal
-
setPrimaryGoal
Sets the identifier for this Campaign's primaryGoal
.- Parameters:
primaryGoal
- the identifier for this Campaign's primaryGoal
-
getTimezone
Retrieves the timezone associated with this Campaign's start and end dates.- Returns:
- the timezone associated with this Campaign's start and end dates
-
setTimezone
Sets the timezone associated with this Campaign's start and end dates.- Parameters:
timezone
- the timezone associated with this Campaign's start and end dates
-