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 int PRIORITY_HIGH
      High priority constant
      static int PRIORITY_LOW
      Low priority constant
      static int PRIORITY_NORMAL
      Normal priority constant
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getActiveStatus()
      Returns the activity active status.
      java.lang.String getActivityType()
      Returns the activity type.
      java.util.Collection<Location> getLocations()
      Returns a collection of Location's related to this activity.
      java.lang.String getModifiedBy()
      Returns the formatted user name by whom the item has been modified.
      java.util.Calendar getModifiedDate()
      Returns the modification date or null if this information is not available.
      java.lang.String getNavigatorHref()
      Returns the composed URL for navigating to the item.
      java.util.Calendar getOffTime()
      Returns the date the activity is set to inactive.
      java.util.Calendar getOnTime()
      Returns the date the activity is set to active.
      java.lang.String getPath()
      Returns the path.
      int getPriority()
      Returns the activity priority.
      java.lang.String getPublishedBy()
      Returns the formatted user name by whom the item has been published.
      java.util.Calendar getPublishedDate()
      Returns the published date or null if this information is not available.
      java.util.Set<java.lang.String> getQuickactionsRel()
      Returns a set of relation identifiers for the quick actions.
      java.lang.String getResourceType()
      Returns the resource type.
      java.lang.String getSyncError()
      Returns the last synchronization error in an untranslated form as returned by the remote service.
      java.lang.String getSyncStatus()
      Returns the activity sync status.
      java.lang.String getTargetConfigurationPath()
      Returns the path to the target configuration.
      java.lang.String getThumbnailPath()
      Returns the thumbnail path.
      java.lang.String getTitle()
      Returns the title
      boolean isActive()
      Returns if the item is active.
      boolean isActivity()
      Returns if the item is an activity.
      boolean isLiveCopy()
      Returns if the item is a LiveCopy.
      boolean isPage()
      Returns if the item is a Page.
    • 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 null if 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 null if 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 null if the resource is not an activity.
      • getLocations

        java.util.Collection<Location> getLocations()
        Returns a collection of Location'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 null if target is not configured for this activity.
      • getModifiedDate

        java.util.Calendar getModifiedDate()
        Returns the modification date or null if 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 or null if 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:
        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 a Page.
        Returns:
        true if the item is a cq:Page, false otherwise
      • isLiveCopy

        boolean isLiveCopy()
        Returns if the item is a LiveCopy.
        Returns:
        true if the item is a LiveCopy, false otherwise.