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 DategetCreated()StringgetCreatedBy()StringgetDescription()booleangetHidden()longgetId()Map<String,String>getMarketingCloudMetadata()Segment metadata information Contains following information keys: sourceProductName, editURL, remoteModifiedBy Present starting with TnT segments API v7DategetModified()StringgetModifiedBy()StringgetName()StringgetPath()StringgetSegmentRule()StringgetSource()Returns this segments's source, i.e.StringgetType()Segment type [reusable|anonymous] Present starting with TnT segments API v7voidsetCreated(Date created)voidsetCreatedBy(String createdBy)voidsetDescription(String description)voidsetHidden(boolean hidden)voidsetId(long id)voidsetMarketingCloudMetadata(Map<String,String> metadata)voidsetModified(Date modified)voidsetModifiedBy(String modifiedBy)voidsetName(String name)voidsetPath(String path)voidsetSegmentRule(String segmentRule)voidsetSource(String source)voidsetType(String type)StringtoString()
-
-
-
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
Stringobject 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)
-
-