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.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddCustomProperty(String key, Object value) Add a property to the custom propertygetCustomProperties()Return the path to the asset folder associated with the payload.Return the path to be opened in a browser to load the representation of the payload.Return the date and time when the payload was created.Returns the ID of the user who created the payloadReturn the custom property Map.getCustomProperty(String key) Return a custom property from the custom propertygetCustomProperties().Return the description of the payload.Return the date and time when the payload was last modifiedReturns the ID of the user who last modified the payload.Returns the ID of the user who locked the payload.longReturn the number of monthly hits the payload has received.Return the date and time that the payload will be turned off.Return the date and time that the payload will be turned on.getPath()Return the path of the payload content.Return the type of the payloadReturn the path to the thumbnail that represents the payloadlongReturn the amount of time in ms until the payload is considered valid.getTitle()Return the title associated with the payload.booleanisActive()Return whether or not the payload is active.booleanisLocked()Return whether or not the payload is locked.setAssetFolderPath(String assetFolderPath) Set the path to the asset folder associated with the payload.setBrowserPath(String browserPath) Set the path to be opened in a browser to load the representation of the payload.setCreated(Calendar created) Set the date and time when the payload was created.setCreatedBy(String createdBy) Set the ID of the user who created the payload.setCustomProperties(Map<String, Object> customProperties) Set the custom property Map.setDescription(String description) Set the description of the payload.setIsActive(boolean isActive) Set whether or not the payload is active.setIsLocked(boolean isLocked) Set whether or not the payload is locked.setLastModified(Calendar lastModified) Set the date and time when the payload was last modifiedsetLastModifiedBy(String lastModifiedBy) Set the ID of the user who last modified the payload.setLockedBy(String lockedBy) Set the ID of the user who locked the payload.setMonthlyHits(long monthlyHits) Set the number of monthly hits the payload has received.setOffTime(Calendar offTime) Set the date and time that the payload will be turned off.Set the date and time that the payload will be turned on.Set the path of the payload content.setPayloadType(String payloadType) Set the type of the payloadsetThumbnailPath(String thumbnailPath) Set the path to the thumbnail that represents the payloadsetTimeUntilValid(long timeUntilValid) Set the amount of time in ms until the payload is considered valid.Set the title associated with the payload.
-
Method Details
-
getPath
String getPath()Return the path of the payload content.- Returns:
- the path to the payload content
- See Also:
-
setPath
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
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
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
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
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
Calendarrepresenting when the payload was created
-
setCreated
Set the date and time when the payload was created.- Parameters:
created- theCalendarrepresenting 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
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
Calendarrepresenting when the payload was last modified
-
setLastModified
Set the date and time when the payload was last modified- Parameters:
lastModified- theCalendarrepresenting 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
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
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
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
Calendarrepresenting the date and time that the payload will be turned on
-
setOnTime
Set the date and time that the payload will be turned on. Generally only used by payloads of typePayloadInfo.PAYLOAD_TYPE.PAGE.- Parameters:
onTime- theCalendarrepresenting 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
Calendarrepresenting the date and time that the payload will be turned off
-
setOffTime
Set the date and time that the payload will be turned off. Generally only used by payloads of typePayloadInfo.PAYLOAD_TYPE.PAGE.- Parameters:
offTime- theCalendarrepresenting 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
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
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
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
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
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
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
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
Add a property to the custom propertygetCustomProperties()- Parameters:
key- the property's keyvalue- the property's value- Returns:
- this PayloadInfo object
-
getCustomProperty
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
-