Interface PersonalizationItem
Represents an interface for datasource items related to personalization such
as activities and offers and is intended to be used by UI.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
High priority constantstatic final int
Low priority constantstatic final int
Normal priority constant -
Method Summary
Modifier and TypeMethodDescriptionReturns the activity active status.Returns the activity type.Returns a collection ofLocation
's related to this activity.Returns the formatted user name by whom the item has been modified.Returns the modification date ornull
if this information is not available.Returns the composed URL for navigating to the item.Returns the date the activity is set to inactive.Returns the date the activity is set to active.getPath()
Returns the path.int
Returns the activity priority.Returns the formatted user name by whom the item has been published.Returns the published date ornull
if this information is not available.Returns a set of relation identifiers for the quick actions.Returns the resource type.Returns the last synchronization error in an untranslated form as returned by the remote service.Returns the activity sync status.Returns the path to the target configuration.Returns the thumbnail path.getTitle()
Returns the titleboolean
isActive()
Returns if the item is active.boolean
Returns if the item is an activity.boolean
Returns if the item is aLiveCopy
.boolean
isPage()
Returns if the item is aPage
.
-
Field Details
-
PRIORITY_LOW
static final int PRIORITY_LOWLow priority constant- See Also:
-
PRIORITY_NORMAL
static final int PRIORITY_NORMALNormal priority constant- See Also:
-
PRIORITY_HIGH
static final int PRIORITY_HIGHHigh priority constant- See Also:
-
-
Method Details
-
getPath
String getPath()Returns the path.- Returns:
- Path of the resource.
-
getResourceType
String getResourceType()Returns the resource type.- Returns:
- Resource type of the resource. If the resource is of type cq:Page the resource type of cq:PageContent will be returned.
-
getTitle
String getTitle()Returns the title- Returns:
- Title of the resource or the resource name if title is not available.
-
getThumbnailPath
String getThumbnailPath()Returns the thumbnail path.- Returns:
- Path to the resource thumbnail.
-
getActivityType
String getActivityType()Returns the activity type.- Returns:
- One of the activity types such as 'ab', 'aem', 'xt' or
null
if resource is not an activity.
-
getSyncStatus
String getSyncStatus()Returns the activity sync status.- Returns:
- One of the activity sync states such as'synced',
'synced-with-errors', 'not-synced' or
null
if resource is not an activity.
-
getSyncError
String getSyncError()Returns the last synchronization error in an untranslated form as returned by the remote service.- Returns:
- The synchronization error or
null
-
getActiveStatus
String getActiveStatus()Returns the activity active status.- Returns:
- One of the activity active states such as 'live' or 'inactive' or
null
if the resource is not an activity.
-
getPriority
int getPriority()Returns the activity priority.PRIORITY_LOW
- Low priority.
PRIORITY_NORMAL
- Normal priority. Default value.
PRIORITY_HIGH
- High priority.
- Returns:
- Priority
-
getLocations
Collection<Location> getLocations()Returns a collection ofLocation
's related to this activity.- Returns:
- A collection of location's
-
getTargetConfigurationPath
String getTargetConfigurationPath()Returns the path to the target configuration.- Returns:
- Path to target configuration or
null
if target is not configured for this activity.
-
getModifiedDate
Calendar getModifiedDate()Returns the modification date ornull
if this information is not available.- Returns:
- Modification date or
null
-
getModifiedBy
String getModifiedBy()Returns the formatted user name by whom the item has been modified.- Returns:
- Formatted user name or identifier if an error occurred.
-
getPublishedDate
Calendar getPublishedDate()Returns the published date ornull
if this information is not available.- Returns:
- Publication date or
null
-
getPublishedBy
String getPublishedBy()Returns the formatted user name by whom the item has been published.- Returns:
- Formatted user name or identifier if an error occurred.
-
getOnTime
Calendar getOnTime()Returns the date the activity is set to active.- Returns:
- On date or
null
-
getOffTime
Calendar getOffTime()Returns the date the activity is set to inactive.- Returns:
- Off date or
null
-
getQuickactionsRel
Returns a set of relation identifiers for the quick actions.- Returns:
- Set of relation identifiers
-
isActivity
boolean isActivity()Returns if the item is an activity.- Returns:
true
if the item is an activity,false
otherwise
-
isActive
boolean isActive()Returns if the item is active.- Returns:
true
if the item is active,false
otherwise
-
isPage
boolean isPage()Returns if the item is aPage
.- Returns:
true
if the item is acq:Page
,false
otherwise
-
isLiveCopy
boolean isLiveCopy()Returns if the item is aLiveCopy
.- Returns:
true
if the item is aLiveCopy
,false
otherwise.
-