Class Segment
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.Segment
-
public class Segment extends java.lang.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 java.util.Date
getCreated()
java.lang.String
getCreatedBy()
java.lang.String
getDescription()
boolean
getHidden()
long
getId()
java.util.Map<java.lang.String,java.lang.String>
getMarketingCloudMetadata()
Segment metadata information Contains following information keys: sourceProductName, editURL, remoteModifiedBy Present starting with TnT segments API v7java.util.Date
getModified()
java.lang.String
getModifiedBy()
java.lang.String
getName()
java.lang.String
getPath()
java.lang.String
getSegmentRule()
java.lang.String
getSource()
Returns this segments's source, i.e.java.lang.String
getType()
Segment type [reusable|anonymous] Present starting with TnT segments API v7void
setCreated(java.util.Date created)
void
setCreatedBy(java.lang.String createdBy)
void
setDescription(java.lang.String description)
void
setHidden(boolean hidden)
void
setId(long id)
void
setMarketingCloudMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
void
setModified(java.util.Date modified)
void
setModifiedBy(java.lang.String modifiedBy)
void
setName(java.lang.String name)
void
setPath(java.lang.String path)
void
setSegmentRule(java.lang.String segmentRule)
void
setSource(java.lang.String source)
void
setType(java.lang.String type)
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getPath
public java.lang.String getPath()
-
setPath
public void setPath(java.lang.String path)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getSegmentRule
public java.lang.String getSegmentRule()
-
setSegmentRule
public void setSegmentRule(java.lang.String segmentRule)
-
getCreated
public java.util.Date getCreated()
-
setCreated
public void setCreated(java.util.Date created)
-
getCreatedBy
public java.lang.String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
-
getModified
public java.util.Date getModified()
-
setModified
public void setModified(java.util.Date modified)
-
getModifiedBy
public java.lang.String getModifiedBy()
-
setModifiedBy
public void setModifiedBy(java.lang.String modifiedBy)
-
getHidden
public boolean getHidden()
-
setHidden
public void setHidden(boolean hidden)
-
getType
public java.lang.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(java.lang.String type)
-
getMarketingCloudMetadata
public java.util.Map<java.lang.String,java.lang.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
-
setMarketingCloudMetadata
public void setMarketingCloudMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
-
getSource
public java.lang.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(java.lang.String source)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-