Class Segment
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.Segment
-
public class Segment extends Object
A segment, as it is represented in Adobe TargetThe properties of a segment are exactly those returned by the Adobe Target API, with no modification.
-
-
Constructor Summary
Constructors Constructor Description Segment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreated()
String
getCreatedBy()
String
getDescription()
boolean
getHidden()
long
getId()
Map<String,String>
getMarketingCloudMetadata()
Segment metadata information Contains following information keys: sourceProductName, editURL, remoteModifiedBy Present starting with TnT segments API v7Date
getModified()
String
getModifiedBy()
String
getName()
String
getPath()
String
getSegmentRule()
String
getSource()
Returns this segments's source, i.e.String
getType()
Segment type [reusable|anonymous] Present starting with TnT segments API v7void
setCreated(Date created)
void
setCreatedBy(String createdBy)
void
setDescription(String description)
void
setHidden(boolean hidden)
void
setId(long id)
void
setMarketingCloudMetadata(Map<String,String> metadata)
void
setModified(Date modified)
void
setModifiedBy(String modifiedBy)
void
setName(String name)
void
setPath(String path)
void
setSegmentRule(String segmentRule)
void
setSource(String source)
void
setType(String type)
String
toString()
-
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getSegmentRule
public String getSegmentRule()
-
setSegmentRule
public void setSegmentRule(String segmentRule)
-
getCreated
public Date getCreated()
-
setCreated
public void setCreated(Date created)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getModified
public Date getModified()
-
setModified
public void setModified(Date modified)
-
getModifiedBy
public String getModifiedBy()
-
setModifiedBy
public void setModifiedBy(String modifiedBy)
-
getHidden
public boolean getHidden()
-
setHidden
public void setHidden(boolean hidden)
-
getType
public String getType()
Segment type [reusable|anonymous] Present starting with TnT segments API v7- Returns:
- segment type
String
- Since:
- AEM 6.2
-
setType
public void setType(String type)
-
getMarketingCloudMetadata
public Map<String,String> getMarketingCloudMetadata()
Segment metadata information Contains following information keys: sourceProductName, editURL, remoteModifiedBy Present starting with TnT segments API v7- Returns:
- metadata information
Map
- Since:
- AEM 6.2
-
getSource
public String getSource()
Returns this segments's source, i.e. the solution that contributed it to Target (could be AAM, Bullseye or Target itself)- Returns:
- a
String
object representing the source. This string representation is the one from Target with no formatting applied. It's the caller's job to map this source name to actual solution names (e.g. for Target the source istnt
)
-
setSource
public void setSource(String source)
-
-