Class OptimizeProposition
-
- All Implemented Interfaces:
public class OptimizeProposition
-
-
Method Summary
Modifier and Type Method Description StringgetId()Gets the OptimizePropositionidentifier.List<Offer>getOffers()Gets the OptimizePropositionitems.StringgetScope()Gets the OptimizePropositionscope.Map<String, Object>getScopeDetails()Gets the OptimizePropositionscope details.Map<String, Object>getActivity()Gets the OptimizePropositionactivity details.Map<String, Object>getPlacement()Gets the OptimizePropositionplacement details.Map<String, Object>generateReferenceXdm()Generates a map containing XDM formatted data for Experience Event - OptimizeProposition Referencefield group from thisOptimizeProposition.static OptimizePropositionfromEventData(Map<String, Object> data)Creates a OptimizePropositionobject using information provided indatamap.booleanequals(Object o)inthashCode()-
-
Method Detail
-
getId
String getId()
Gets the
OptimizePropositionidentifier.- Returns:
String containing the OptimizeProposition identifier.
-
getOffers
List<Offer> getOffers()
Gets the
OptimizePropositionitems.- Returns:
List<Offer>containing the OptimizeProposition items.
-
getScope
String getScope()
Gets the
OptimizePropositionscope.- Returns:
String containing the encoded OptimizeProposition scope.
-
getScopeDetails
@Nullable() Map<String, Object> getScopeDetails()
Gets the
OptimizePropositionscope details.- Returns:
Map<String, Object>containing the OptimizeProposition scope details.
-
getActivity
@Nullable() Map<String, Object> getActivity()
Gets the
OptimizePropositionactivity details.- Returns:
Map<String, Object>containing the activity details.
-
getPlacement
@Nullable() Map<String, Object> getPlacement()
Gets the
OptimizePropositionplacement details.- Returns:
Map<String, Object>containing the placement details.
-
generateReferenceXdm
Map<String, Object> generateReferenceXdm()
Generates a map containing XDM formatted data for
Experience Event - OptimizeProposition Referencefield group from thisOptimizeProposition.The returned XDM data does not contain
eventTypefor the Experience Event.- Returns:
Map<String, Object>containing the XDM data for the proposition reference.
-
fromEventData
static OptimizeProposition fromEventData(Map<String, Object> data)
Creates a
OptimizePropositionobject using information provided indatamap.This method returns null if the provided
datais empty or null or if it does not contain required info for creating a OptimizeProposition object.- Parameters:
data-Map<String, Object>containing proposition data.- Returns:
OptimizePropositionobject or null, which may or may not contain scopeDetails, activity and placement based of the data provider TGT or AJO (i.e, target or ODE).
-
hashCode
int hashCode()
-
-
-
-