Class AutoTranslateMergeModel
- java.lang.Object
 - 
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateMergeModel
 
 
- 
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class AutoTranslateMergeModel extends Object
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutoTranslateMergeModel.AutoTranslateComponentstatic classAutoTranslateMergeModel.PropertyFilterstatic classAutoTranslateMergeModel.Scope 
- 
Field Summary
Fields Modifier and Type Field Description protected static StringPARAM_COMPONENTPATHParameter that limits output to just that component - for specific reloading.protected static StringPARAM_PROPERTY_FILTERParameter to show properties wrt.protected static StringPARAM_PROPERTYNAMEParameter that limits output to just that property - for specific reloading.protected static StringPARAM_SCOPEParameter to show properties wrt.protected List<AutoTranslateMergeService.AutoTranslateProperty>propertiesprotected intunfilteredPropertiesSize 
- 
Constructor Summary
Constructors Constructor Description AutoTranslateMergeModel() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLinkToPageProperties()List<AutoTranslateMergeModel.AutoTranslateComponent>getPageComponents()StringgetPageLanguage()StringgetPagePath()The path to the cq:Page, without jcr:content.protected org.apache.sling.api.resource.ResourcegetPageResource()Finds the content resource for the page that is in the request suffix.List<AutoTranslateMergeService.AutoTranslateProperty>getProperties()protected AutoTranslateMergeModel.PropertyFiltergetPropertyFilter(org.apache.sling.api.SlingHttpServletRequest request)protected AutoTranslateMergeModel.ScopegetScope(org.apache.sling.api.SlingHttpServletRequest request)intgetUnfilteredPropertiesSize()booleanisBlueprintBroken()booleanisDisabled()booleanisPageSuspended()If a whole page is suspended as a live copy then the jcr:content node has a cancelled relationship. 
 - 
 
- 
- 
Field Detail
- 
PARAM_PROPERTY_FILTER
protected static final String PARAM_PROPERTY_FILTER
Parameter to show properties wrt. cancellation status.- See Also:
 - Constant Field Values
 
 
- 
PARAM_SCOPE
protected static final String PARAM_SCOPE
Parameter to show properties wrt. needed actions.- See Also:
 - Constant Field Values
 
 
- 
PARAM_COMPONENTPATH
protected static final String PARAM_COMPONENTPATH
Parameter that limits output to just that component - for specific reloading.- See Also:
 - Constant Field Values
 
 
- 
PARAM_PROPERTYNAME
protected static final String PARAM_PROPERTYNAME
Parameter that limits output to just that property - for specific reloading.- See Also:
 PARAM_COMPONENTPATH, Constant Field Values
 
- 
properties
protected List<AutoTranslateMergeService.AutoTranslateProperty> properties
 
- 
unfilteredPropertiesSize
protected int unfilteredPropertiesSize
 
 - 
 
- 
Method Detail
- 
getPropertyFilter
protected AutoTranslateMergeModel.PropertyFilter getPropertyFilter(org.apache.sling.api.SlingHttpServletRequest request)
 
- 
getScope
protected AutoTranslateMergeModel.Scope getScope(org.apache.sling.api.SlingHttpServletRequest request)
 
- 
isDisabled
public boolean isDisabled()
 
- 
getProperties
public List<AutoTranslateMergeService.AutoTranslateProperty> getProperties()
 
- 
getUnfilteredPropertiesSize
public int getUnfilteredPropertiesSize()
 
- 
isBlueprintBroken
public boolean isBlueprintBroken()
 
- 
isPageSuspended
public boolean isPageSuspended()
If a whole page is suspended as a live copy then the jcr:content node has a cancelled relationship. Otherwise, the jcr:content node itself is never cancelled - only some of it's properties. 
- 
getLinkToPageProperties
public String getLinkToPageProperties()
 
- 
getPageComponents
public List<AutoTranslateMergeModel.AutoTranslateComponent> getPageComponents()
 
- 
getPageLanguage
public String getPageLanguage()
 
- 
getPageResource
protected org.apache.sling.api.resource.Resource getPageResource()
Finds the content resource for the page that is in the request suffix. 
- 
getPagePath
public String getPagePath()
The path to the cq:Page, without jcr:content. 
 - 
 
 -