Class CompareModel


  • @Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class)
    public class CompareModel
    extends Object
    Model for comparing a page with its live relationship source.
    • Field Detail

      • PARAM_PATH

        public static final String PARAM_PATH
        Parameter with path to a page / page resource for which we compare live relationship source and the containing page.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CompareModel

        public CompareModel()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws com.day.cq.wcm.api.WCMException
        Throws:
        com.day.cq.wcm.api.WCMException
      • getUrl1

        public String getUrl1()
        If the request contained a valid path as "path" or suffix, this is the URL of the page.
      • getUrl2

        public String getUrl2()
        If the request contained a valid path as "path" or suffix, this is the URL of the page that is the source of the live relationship.