Class Segment


  • public class Segment
    extends Object
    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 Detail

      • Segment

        public Segment()
    • 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
      • setMarketingCloudMetadata

        public void setMarketingCloudMetadata​(Map<String,​String> metadata)
      • 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 is tnt)
      • setSource

        public void setSource​(String source)