Class CompareModel
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.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 Summary
Fields Modifier and Type Field Description static String
PARAM_PATH
Parameter with path to a page / page resource for which we compare live relationship source and the containing page.
-
Constructor Summary
Constructors Constructor Description CompareModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUrl1()
If the request contained a valid path as "path" or suffix, this is the URL of the page.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.void
init()
-
-
-
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
-
-
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.
-
-