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 class
AutoTranslateMergeModel.AutoTranslateComponent
static class
AutoTranslateMergeModel.PropertyFilter
static class
AutoTranslateMergeModel.Scope
-
Field Summary
Fields Modifier and Type Field Description protected static String
PARAM_COMPONENTPATH
Parameter that limits output to just that component - for specific reloading.protected static String
PARAM_PROPERTY_FILTER
Parameter to show properties wrt. cancellation status.protected static String
PARAM_PROPERTYNAME
Parameter that limits output to just that property - for specific reloading.protected static String
PARAM_SCOPE
Parameter to show properties wrt. needed actions.protected List<AutoTranslateMergeService.AutoTranslateProperty>
properties
protected int
unfilteredPropertiesSize
-
Constructor Summary
Constructors Constructor Description AutoTranslateMergeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLinkToPageProperties()
List<AutoTranslateMergeModel.AutoTranslateComponent>
getPageComponents()
String
getPageLanguage()
String
getPagePath()
The path to the cq:Page, without jcr:content.protected org.apache.sling.api.resource.Resource
getPageResource()
Finds the content resource for the page that is in the request suffix.List<AutoTranslateMergeService.AutoTranslateProperty>
getProperties()
protected AutoTranslateMergeModel.PropertyFilter
getPropertyFilter(org.apache.sling.api.SlingHttpServletRequest request)
protected AutoTranslateMergeModel.Scope
getScope(org.apache.sling.api.SlingHttpServletRequest request)
int
getUnfilteredPropertiesSize()
boolean
isBlueprintBroken()
boolean
isDisabled()
boolean
isPageSuspended()
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.
-
-