Class Segment


  • public class Segment
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Segment()  
    • Constructor Detail

      • Segment

        public Segment()
    • 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 is tnt)
      • setSource

        public void setSource​(java.lang.String source)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object