Class Segment
java.lang.Object
com.day.cq.analytics.testandtarget.Segment
A segment, as it is represented in Adobe Target
The properties of a segment are exactly those returned by the Adobe Target API, with no modification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()Segment metadata information Contains following information keys: sourceProductName, editURL, remoteModifiedBy Present starting with TnT segments API v7getName()getPath()Returns this segments's source, i.e.getType()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) voidvoidvoidsetSegmentRule(String segmentRule) voidvoidtoString()
-
Constructor Details
-
Segment
public Segment()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getPath
-
setPath
-
getName
-
setName
-
getDescription
-
setDescription
-
getSegmentRule
-
setSegmentRule
-
getCreated
-
setCreated
-
getCreatedBy
-
setCreatedBy
-
getModified
-
setModified
-
getModifiedBy
-
setModifiedBy
-
getHidden
public boolean getHidden() -
setHidden
public void setHidden(boolean hidden) -
getType
Segment type [reusable|anonymous] Present starting with TnT segments API v7- Returns:
- segment type
String - Since:
- AEM 6.2
-
setType
-
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
-
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
-
toString
-