Class LocationItem

java.lang.Object
com.day.cq.personalization.dto.LocationItem

@Deprecated @ProviderType public class LocationItem extends Object
Deprecated.
Simple data object that represents a targeted location item.
  • Constructor Details

    • LocationItem

      public LocationItem(String name)
      Deprecated.
      Constructs an object of this type, using the name of the location
      Parameters:
      name - the name of the location
  • Method Details

    • withPath

      public LocationItem withPath(String path)
      Deprecated.
      Sets the path of this location
      Parameters:
      path - the path of the location
      Returns:
      a reference to this object
    • withParentPage

      public LocationItem withParentPage(String parentPage)
      Deprecated.
      Sets the parent page of this location
      Parameters:
      parentPage - the path to the page that contains this targeted location
      Returns:
      a reference to this object
    • getName

      public String getName()
      Deprecated.
      Returns the name of the location
      Returns:
      Name of the location
    • getPath

      public String getPath()
      Deprecated.
      Returns the path to the location
      Returns:
      Path to the location
    • getPage

      public String getPage()
      Deprecated.
      Returns the path to the parent page of the location
      Returns:
      Path to the parent page of the location