Interface PayloadInfo


@ProviderType public interface PayloadInfo
PayloadInfo is used to store all the available information about an InboxItem's payload. The most needed information is represented as first class properties. Any other information needed can be added to the custom properties Map.
  • Method Details

    • getPath

      String getPath()
      Return the path of the payload content.
      Returns:
      the path to the payload content
      See Also:
    • setPath

      PayloadInfo setPath(String path)
      Set the path of the payload content.
      Parameters:
      path - the path to the payload content
      Returns:
      this PayloadInfo object
      See Also:
    • getBrowserPath

      String getBrowserPath()
      Return the path to be opened in a browser to load the representation of the payload.
      Returns:
      the path to the payload to be opened in a browser
    • setBrowserPath

      PayloadInfo setBrowserPath(String browserPath)
      Set the path to be opened in a browser to load the representation of the payload.
      Parameters:
      browserPath - the path to the payload to be opened in a browser
      Returns:
      this PayloadInfo object
    • getTitle

      String getTitle()
      Return the title associated with the payload.
      Returns:
      the payload's title
    • setTitle

      PayloadInfo setTitle(String title)
      Set the title associated with the payload.
      Parameters:
      title - the payload's title
      Returns:
      this PayloadInfo object
    • getThumbnailPath

      String getThumbnailPath()
      Return the path to the thumbnail that represents the payload
      Returns:
      the payload's thumbnail path
    • setThumbnailPath

      PayloadInfo setThumbnailPath(String thumbnailPath)
      Set the path to the thumbnail that represents the payload
      Parameters:
      thumbnailPath - the payload's thumbnail path
      Returns:
      this PayloadInfo object
    • getPayloadType

      String getPayloadType()
      Return the type of the payload
      Returns:
      the payload's type
      See Also:
    • setPayloadType

      PayloadInfo setPayloadType(String payloadType)
      Set the type of the payload
      Parameters:
      payloadType - the payload's type
      Returns:
      this PayloadInfo objet
      See Also:
    • getCreated

      Calendar getCreated()
      Return the date and time when the payload was created.
      Returns:
      the Calendar representing when the payload was created
    • setCreated

      PayloadInfo setCreated(Calendar created)
      Set the date and time when the payload was created.
      Parameters:
      created - the Calendar representing when the payload was created
      Returns:
      this PayloadInfo object
    • getCreatedBy

      String getCreatedBy()
      Returns the ID of the user who created the payload
      Returns:
      the ID of the user who create the payload
    • setCreatedBy

      PayloadInfo setCreatedBy(String createdBy)
      Set the ID of the user who created the payload.
      Parameters:
      createdBy - the ID of the user who created the payload
      Returns:
      this PayloadInfo object
    • getLastModified

      Calendar getLastModified()
      Return the date and time when the payload was last modified
      Returns:
      the Calendar representing when the payload was last modified
    • setLastModified

      PayloadInfo setLastModified(Calendar lastModified)
      Set the date and time when the payload was last modified
      Parameters:
      lastModified - the Calendar representing when the payload was last modified
      Returns:
      this PayloadInfo object
    • getLastModifiedBy

      String getLastModifiedBy()
      Returns the ID of the user who last modified the payload.
      Returns:
      the ID of the user who last modified the payload.
    • setLastModifiedBy

      PayloadInfo setLastModifiedBy(String lastModifiedBy)
      Set the ID of the user who last modified the payload.
      Parameters:
      lastModifiedBy - the ID of the user who last modified the payload
      Returns:
      this PayloadInfo objet
    • isLocked

      boolean isLocked()
      Return whether or not the payload is locked.
      Returns:
      whether or not the payload is locked
    • setIsLocked

      PayloadInfo setIsLocked(boolean isLocked)
      Set whether or not the payload is locked.
      Parameters:
      isLocked - whether or not the payload is locked
      Returns:
      this PayloadInfo object
    • getLockedBy

      String getLockedBy()
      Returns the ID of the user who locked the payload.
      Returns:
      the ID of the user who locked the payload
    • setLockedBy

      PayloadInfo setLockedBy(String lockedBy)
      Set the ID of the user who locked the payload.
      Parameters:
      lockedBy - the ID of the user who locked the payload
      Returns:
      this PayloadInfo object
    • getOnTime

      Calendar getOnTime()
      Return the date and time that the payload will be turned on. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Returns:
      the Calendar representing the date and time that the payload will be turned on
    • setOnTime

      PayloadInfo setOnTime(Calendar onTime)
      Set the date and time that the payload will be turned on. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Parameters:
      onTime - the Calendar representing the date and time that the payload will be turned on
      Returns:
      this PayloadInfo object
    • getOffTime

      Calendar getOffTime()
      Return the date and time that the payload will be turned off. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Returns:
      the Calendar representing the date and time that the payload will be turned off
    • setOffTime

      PayloadInfo setOffTime(Calendar offTime)
      Set the date and time that the payload will be turned off. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Parameters:
      offTime - the Calendar representing the date and time that the payload will be turned off
      Returns:
      this PayloadInfo object
    • getTimeUntilValid

      long getTimeUntilValid()
      Return the amount of time in ms until the payload is considered valid. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Returns:
      the amount of time in ms until the payload is considered valid
    • setTimeUntilValid

      PayloadInfo setTimeUntilValid(long timeUntilValid)
      Set the amount of time in ms until the payload is considered valid. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE
      Parameters:
      timeUntilValid - the amount of time in ms until the payload is considered valid
      Returns:
      this PayloadInfo object
    • getMonthlyHits

      long getMonthlyHits()
      Return the number of monthly hits the payload has received. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Returns:
      the number of monthly hits the payload has received
    • setMonthlyHits

      PayloadInfo setMonthlyHits(long monthlyHits)
      Set the number of monthly hits the payload has received. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Parameters:
      monthlyHits - the number of monthly hits the payload has received
      Returns:
      this PayloadInfo object
    • getDescription

      String getDescription()
      Return the description of the payload.
      Returns:
      the description of the payload
    • setDescription

      PayloadInfo setDescription(String description)
      Set the description of the payload.
      Parameters:
      description - the description of the payload
      Returns:
      this PayloadInfo object
    • getAssetFolderPath

      String getAssetFolderPath()
      Return the path to the asset folder associated with the payload. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PROJECT.
      Returns:
      the path to the asset folder associated with the payload
    • setAssetFolderPath

      PayloadInfo setAssetFolderPath(String assetFolderPath)
      Set the path to the asset folder associated with the payload. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Parameters:
      assetFolderPath - the path to the asset folder associated with the payload
      Returns:
      this PayloadInfo object
    • isActive

      boolean isActive()
      Return whether or not the payload is active. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Returns:
      whether or not the payload is active
    • setIsActive

      PayloadInfo setIsActive(boolean isActive)
      Set whether or not the payload is active. Generally only used by payloads of type PayloadInfo.PAYLOAD_TYPE.PAGE.
      Parameters:
      isActive - whether or not the paylaod is active
      Returns:
      this PayloadInfo object
    • getCustomProperties

      Map<String,Object> getCustomProperties()
      Return the custom property Map. Custom properties are used to store information about a payload beyond the most common properties.
      Returns:
      the custom property
    • setCustomProperties

      PayloadInfo setCustomProperties(Map<String,Object> customProperties)
      Set the custom property Map. Custom properties are used to store information about a payload beyond the most common properties.
      Parameters:
      customProperties - the custom property getCustomProperties()
      Returns:
      this PayloadInfo object
    • addCustomProperty

      PayloadInfo addCustomProperty(String key, Object value)
      Add a property to the custom property getCustomProperties()
      Parameters:
      key - the property's key
      value - the property's value
      Returns:
      this PayloadInfo object
    • getCustomProperty

      Object getCustomProperty(String key)
      Return a custom property from the custom property getCustomProperties().
      Parameters:
      key - the key to look up in the custom property Map
      Returns:
      the value for the property or null if the key isn't found in the Map