Interface PayloadInfo
-
@ProviderType public interface PayloadInfo
PayloadInfo is used to store all the available information about anInboxItem
's payload. The most needed information is represented as first class properties. Any other information needed can be added to the custom properties Map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PayloadInfo.PAYLOAD_TYPE
Known Payload types
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PayloadInfo
addCustomProperty(String key, Object value)
Add a property to the custom propertygetCustomProperties()
String
getAssetFolderPath()
Return the path to the asset folder associated with the payload.String
getBrowserPath()
Return the path to be opened in a browser to load the representation of the payload.Calendar
getCreated()
Return the date and time when the payload was created.String
getCreatedBy()
Returns the ID of the user who created the payloadMap<String,Object>
getCustomProperties()
Return the custom property Map.Object
getCustomProperty(String key)
Return a custom property from the custom propertygetCustomProperties()
.String
getDescription()
Return the description of the payload.Calendar
getLastModified()
Return the date and time when the payload was last modifiedString
getLastModifiedBy()
Returns the ID of the user who last modified the payload.String
getLockedBy()
Returns the ID of the user who locked the payload.long
getMonthlyHits()
Return the number of monthly hits the payload has received.Calendar
getOffTime()
Return the date and time that the payload will be turned off.Calendar
getOnTime()
Return the date and time that the payload will be turned on.String
getPath()
Return the path of the payload content.String
getPayloadType()
Return the type of the payloadString
getThumbnailPath()
Return the path to the thumbnail that represents the payloadlong
getTimeUntilValid()
Return the amount of time in ms until the payload is considered valid.String
getTitle()
Return the title associated with the payload.boolean
isActive()
Return whether or not the payload is active.boolean
isLocked()
Return whether or not the payload is locked.PayloadInfo
setAssetFolderPath(String assetFolderPath)
Set the path to the asset folder associated with the payload.PayloadInfo
setBrowserPath(String browserPath)
Set the path to be opened in a browser to load the representation of the payload.PayloadInfo
setCreated(Calendar created)
Set the date and time when the payload was created.PayloadInfo
setCreatedBy(String createdBy)
Set the ID of the user who created the payload.PayloadInfo
setCustomProperties(Map<String,Object> customProperties)
Set the custom property Map.PayloadInfo
setDescription(String description)
Set the description of the payload.PayloadInfo
setIsActive(boolean isActive)
Set whether or not the payload is active.PayloadInfo
setIsLocked(boolean isLocked)
Set whether or not the payload is locked.PayloadInfo
setLastModified(Calendar lastModified)
Set the date and time when the payload was last modifiedPayloadInfo
setLastModifiedBy(String lastModifiedBy)
Set the ID of the user who last modified the payload.PayloadInfo
setLockedBy(String lockedBy)
Set the ID of the user who locked the payload.PayloadInfo
setMonthlyHits(long monthlyHits)
Set the number of monthly hits the payload has received.PayloadInfo
setOffTime(Calendar offTime)
Set the date and time that the payload will be turned off.PayloadInfo
setOnTime(Calendar onTime)
Set the date and time that the payload will be turned on.PayloadInfo
setPath(String path)
Set the path of the payload content.PayloadInfo
setPayloadType(String payloadType)
Set the type of the payloadPayloadInfo
setThumbnailPath(String thumbnailPath)
Set the path to the thumbnail that represents the payloadPayloadInfo
setTimeUntilValid(long timeUntilValid)
Set the amount of time in ms until the payload is considered valid.PayloadInfo
setTitle(String title)
Set the title associated with the payload.
-
-
-
Method Detail
-
getPath
String getPath()
Return the path of the payload content.- Returns:
- the path to the payload content
- See Also:
InboxItem.getContentPath()
-
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:
InboxItem.getContentPath()
-
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:
PayloadInfo.PAYLOAD_TYPE
-
setPayloadType
PayloadInfo setPayloadType(String payloadType)
Set the type of the payload- Parameters:
payloadType
- the payload's type- Returns:
- this PayloadInfo objet
- See Also:
PayloadInfo.PAYLOAD_TYPE
-
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
- theCalendar
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
- theCalendar
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 typePayloadInfo.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 typePayloadInfo.PAYLOAD_TYPE.PAGE
.- Parameters:
onTime
- theCalendar
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 typePayloadInfo.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 typePayloadInfo.PAYLOAD_TYPE.PAGE
.- Parameters:
offTime
- theCalendar
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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 typePayloadInfo.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 propertygetCustomProperties()
- Returns:
- this PayloadInfo object
-
addCustomProperty
PayloadInfo addCustomProperty(String key, Object value)
Add a property to the custom propertygetCustomProperties()
- Parameters:
key
- the property's keyvalue
- the property's value- Returns:
- this PayloadInfo object
-
getCustomProperty
Object getCustomProperty(String key)
Return a custom property from the custom propertygetCustomProperties()
.- 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
-
-