Interface PersonalizationItem
-
@ProviderType public 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
Fields Modifier and Type Field Description static intPRIORITY_HIGHHigh priority constantstatic intPRIORITY_LOWLow priority constantstatic intPRIORITY_NORMALNormal priority constant
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetActiveStatus()Returns the activity active status.java.lang.StringgetActivityType()Returns the activity type.java.util.Collection<Location>getLocations()Returns a collection ofLocation's related to this activity.java.lang.StringgetModifiedBy()Returns the formatted user name by whom the item has been modified.java.util.CalendargetModifiedDate()Returns the modification date ornullif this information is not available.java.lang.StringgetNavigatorHref()Returns the composed URL for navigating to the item.java.util.CalendargetOffTime()Returns the date the activity is set to inactive.java.util.CalendargetOnTime()Returns the date the activity is set to active.java.lang.StringgetPath()Returns the path.intgetPriority()Returns the activity priority.java.lang.StringgetPublishedBy()Returns the formatted user name by whom the item has been published.java.util.CalendargetPublishedDate()Returns the published date ornullif this information is not available.java.util.Set<java.lang.String>getQuickactionsRel()Returns a set of relation identifiers for the quick actions.java.lang.StringgetResourceType()Returns the resource type.java.lang.StringgetSyncError()Returns the last synchronization error in an untranslated form as returned by the remote service.java.lang.StringgetSyncStatus()Returns the activity sync status.java.lang.StringgetTargetConfigurationPath()Returns the path to the target configuration.java.lang.StringgetThumbnailPath()Returns the thumbnail path.java.lang.StringgetTitle()Returns the titlebooleanisActive()Returns if the item is active.booleanisActivity()Returns if the item is an activity.booleanisLiveCopy()Returns if the item is aLiveCopy.booleanisPage()Returns if the item is aPage.
-
-
-
Field Detail
-
PRIORITY_LOW
static final int PRIORITY_LOW
Low priority constant- See Also:
- Constant Field Values
-
PRIORITY_NORMAL
static final int PRIORITY_NORMAL
Normal priority constant- See Also:
- Constant Field Values
-
PRIORITY_HIGH
static final int PRIORITY_HIGH
High priority constant- See Also:
- Constant Field Values
-
-
Method Detail
-
getPath
java.lang.String getPath()
Returns the path.- Returns:
- Path of the resource.
-
getResourceType
java.lang.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
java.lang.String getTitle()
Returns the title- Returns:
- Title of the resource or the resource name if title is not available.
-
getNavigatorHref
java.lang.String getNavigatorHref()
Returns the composed URL for navigating to the item. The URL is composed as follows{request.url}.html{resource.path}.- Returns:
- Composed URL for navigating to the item.
-
getThumbnailPath
java.lang.String getThumbnailPath()
Returns the thumbnail path.- Returns:
- Path to the resource thumbnail.
-
getActivityType
java.lang.String getActivityType()
Returns the activity type.- Returns:
- One of the activity types such as 'ab', 'aem', 'xt' or
nullif resource is not an activity.
-
getSyncStatus
java.lang.String getSyncStatus()
Returns the activity sync status.- Returns:
- One of the activity sync states such as'synced',
'synced-with-errors', 'not-synced' or
nullif resource is not an activity.
-
getSyncError
java.lang.String getSyncError()
Returns the last synchronization error in an untranslated form as returned by the remote service.- Returns:
- The synchronization error or
null
-
getActiveStatus
java.lang.String getActiveStatus()
Returns the activity active status.- Returns:
- One of the activity active states such as 'live' or 'inactive' or
nullif 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
java.util.Collection<Location> getLocations()
Returns a collection ofLocation's related to this activity.- Returns:
- A collection of location's
-
getTargetConfigurationPath
java.lang.String getTargetConfigurationPath()
Returns the path to the target configuration.- Returns:
- Path to target configuration or
nullif target is not configured for this activity.
-
getModifiedDate
java.util.Calendar getModifiedDate()
Returns the modification date ornullif this information is not available.- Returns:
- Modification date or
null
-
getModifiedBy
java.lang.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
java.util.Calendar getPublishedDate()
Returns the published date ornullif this information is not available.- Returns:
- Publication date or
null
-
getPublishedBy
java.lang.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
java.util.Calendar getOnTime()
Returns the date the activity is set to active.- Returns:
- On date or
null
-
getOffTime
java.util.Calendar getOffTime()
Returns the date the activity is set to inactive.- Returns:
- Off date or
null
-
getQuickactionsRel
java.util.Set<java.lang.String> 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:
trueif the item is an activity,falseotherwise
-
isActive
boolean isActive()
Returns if the item is active.- Returns:
trueif the item is active,falseotherwise
-
isPage
boolean isPage()
Returns if the item is aPage.- Returns:
trueif the item is acq:Page,falseotherwise
-
isLiveCopy
boolean isLiveCopy()
Returns if the item is aLiveCopy.- Returns:
trueif the item is aLiveCopy,falseotherwise.
-
-