@ProviderType public interface PayloadInfo
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.Modifier and Type | Interface and Description |
---|---|
static class |
PayloadInfo.PAYLOAD_TYPE
Known Payload types
|
Modifier and Type | Method and Description |
---|---|
PayloadInfo |
addCustomProperty(java.lang.String key,
java.lang.Object value)
Add a property to the custom property
getCustomProperties() |
java.lang.String |
getAssetFolderPath()
Return the path to the asset folder associated with the payload.
|
java.lang.String |
getBrowserPath()
Return the path to be opened in a browser to load the representation of the payload.
|
java.util.Calendar |
getCreated()
Return the date and time when the payload was created.
|
java.lang.String |
getCreatedBy()
Returns the ID of the user who created the payload
|
java.util.Map<java.lang.String,java.lang.Object> |
getCustomProperties()
Return the custom property Map.
|
java.lang.Object |
getCustomProperty(java.lang.String key)
Return a custom property from the custom property
getCustomProperties() . |
java.lang.String |
getDescription()
Return the description of the payload.
|
java.util.Calendar |
getLastModified()
Return the date and time when the payload was last modified
|
java.lang.String |
getLastModifiedBy()
Returns the ID of the user who last modified the payload.
|
java.lang.String |
getLockedBy()
Returns the ID of the user who locked the payload.
|
long |
getMonthlyHits()
Return the number of monthly hits the payload has received.
|
java.util.Calendar |
getOffTime()
Return the date and time that the payload will be turned off.
|
java.util.Calendar |
getOnTime()
Return the date and time that the payload will be turned on.
|
java.lang.String |
getPath()
Return the path of the payload content.
|
java.lang.String |
getPayloadType()
Return the type of the payload
|
java.lang.String |
getThumbnailPath()
Return the path to the thumbnail that represents the payload
|
long |
getTimeUntilValid()
Return the amount of time in ms until the payload is considered valid.
|
java.lang.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(java.lang.String assetFolderPath)
Set the path to the asset folder associated with the payload.
|
PayloadInfo |
setBrowserPath(java.lang.String browserPath)
Set the path to be opened in a browser to load the representation of the payload.
|
PayloadInfo |
setCreated(java.util.Calendar created)
Set the date and time when the payload was created.
|
PayloadInfo |
setCreatedBy(java.lang.String createdBy)
Set the ID of the user who created the payload.
|
PayloadInfo |
setCustomProperties(java.util.Map<java.lang.String,java.lang.Object> customProperties)
Set the custom property Map.
|
PayloadInfo |
setDescription(java.lang.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(java.util.Calendar lastModified)
Set the date and time when the payload was last modified
|
PayloadInfo |
setLastModifiedBy(java.lang.String lastModifiedBy)
Set the ID of the user who last modified the payload.
|
PayloadInfo |
setLockedBy(java.lang.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(java.util.Calendar offTime)
Set the date and time that the payload will be turned off.
|
PayloadInfo |
setOnTime(java.util.Calendar onTime)
Set the date and time that the payload will be turned on.
|
PayloadInfo |
setPath(java.lang.String path)
Set the path of the payload content.
|
PayloadInfo |
setPayloadType(java.lang.String payloadType)
Set the type of the payload
|
PayloadInfo |
setThumbnailPath(java.lang.String thumbnailPath)
Set the path to the thumbnail that represents the payload
|
PayloadInfo |
setTimeUntilValid(long timeUntilValid)
Set the amount of time in ms until the payload is considered valid.
|
PayloadInfo |
setTitle(java.lang.String title)
Set the title associated with the payload.
|
java.lang.String getPath()
InboxItem.getContentPath()
PayloadInfo setPath(java.lang.String path)
path
- the path to the payload contentInboxItem.getContentPath()
java.lang.String getBrowserPath()
PayloadInfo setBrowserPath(java.lang.String browserPath)
browserPath
- the path to the payload to be opened in a browserjava.lang.String getTitle()
PayloadInfo setTitle(java.lang.String title)
title
- the payload's titlejava.lang.String getThumbnailPath()
PayloadInfo setThumbnailPath(java.lang.String thumbnailPath)
thumbnailPath
- the payload's thumbnail pathjava.lang.String getPayloadType()
PayloadInfo.PAYLOAD_TYPE
PayloadInfo setPayloadType(java.lang.String payloadType)
payloadType
- the payload's typePayloadInfo.PAYLOAD_TYPE
java.util.Calendar getCreated()
Calendar
representing when the payload was createdPayloadInfo setCreated(java.util.Calendar created)
created
- the Calendar
representing when the payload was createdjava.lang.String getCreatedBy()
PayloadInfo setCreatedBy(java.lang.String createdBy)
createdBy
- the ID of the user who created the payloadjava.util.Calendar getLastModified()
Calendar
representing when the payload was last modifiedPayloadInfo setLastModified(java.util.Calendar lastModified)
lastModified
- the Calendar
representing when the payload was last modifiedjava.lang.String getLastModifiedBy()
PayloadInfo setLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- the ID of the user who last modified the payloadboolean isLocked()
PayloadInfo setIsLocked(boolean isLocked)
isLocked
- whether or not the payload is lockedjava.lang.String getLockedBy()
PayloadInfo setLockedBy(java.lang.String lockedBy)
lockedBy
- the ID of the user who locked the payloadjava.util.Calendar getOnTime()
PayloadInfo.PAYLOAD_TYPE.PAGE
.Calendar
representing the date and time that the payload will be turned onPayloadInfo setOnTime(java.util.Calendar onTime)
PayloadInfo.PAYLOAD_TYPE.PAGE
.onTime
- the Calendar
representing the date and time that the payload will be turned onjava.util.Calendar getOffTime()
PayloadInfo.PAYLOAD_TYPE.PAGE
.Calendar
representing the date and time that the payload will be turned offPayloadInfo setOffTime(java.util.Calendar offTime)
PayloadInfo.PAYLOAD_TYPE.PAGE
.offTime
- the Calendar
representing the date and time that the payload will be turned offlong getTimeUntilValid()
PayloadInfo.PAYLOAD_TYPE.PAGE
.PayloadInfo setTimeUntilValid(long timeUntilValid)
PayloadInfo.PAYLOAD_TYPE.PAGE
timeUntilValid
- the amount of time in ms until the payload is considered validlong getMonthlyHits()
PayloadInfo.PAYLOAD_TYPE.PAGE
.PayloadInfo setMonthlyHits(long monthlyHits)
PayloadInfo.PAYLOAD_TYPE.PAGE
.monthlyHits
- the number of monthly hits the payload has receivedjava.lang.String getDescription()
PayloadInfo setDescription(java.lang.String description)
description
- the description of the payloadjava.lang.String getAssetFolderPath()
PayloadInfo.PAYLOAD_TYPE.PROJECT
.PayloadInfo setAssetFolderPath(java.lang.String assetFolderPath)
PayloadInfo.PAYLOAD_TYPE.PAGE
.assetFolderPath
- the path to the asset folder associated with the payloadboolean isActive()
PayloadInfo.PAYLOAD_TYPE.PAGE
.PayloadInfo setIsActive(boolean isActive)
PayloadInfo.PAYLOAD_TYPE.PAGE
.isActive
- whether or not the paylaod is activejava.util.Map<java.lang.String,java.lang.Object> getCustomProperties()
PayloadInfo setCustomProperties(java.util.Map<java.lang.String,java.lang.Object> customProperties)
customProperties
- the custom property getCustomProperties()
PayloadInfo addCustomProperty(java.lang.String key, java.lang.Object value)
getCustomProperties()
key
- the property's keyvalue
- the property's valuejava.lang.Object getCustomProperty(java.lang.String key)
getCustomProperties()
.key
- the key to look up in the custom property MapCopyright © 2010 - 2020 Adobe. All Rights Reserved