com.composum.ai.composum.bundle.model.TranslationDialogModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of composum-ai-integration-composum-bundle Show documentation
Show all versions of composum-ai-integration-composum-bundle Show documentation
Composum specific bundle for Composum AI
package com.composum.ai.composum.bundle.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nonnull;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.resource.Resource;
import org.jetbrains.annotations.Nullable;
import com.composum.pages.commons.PagesConstants;
import com.composum.pages.commons.model.AbstractModel;
import com.composum.pages.commons.model.properties.Language;
import com.composum.pages.commons.taglib.PropertyEditHandle;
import com.composum.sling.core.BeanContext;
/**
* Model for rendering the translation dialog. It gets instantiated on a property resource, e.g. page/cr:content/jcr:description .
*/
public class TranslationDialogModel extends AbstractModel {
/**
* The name of the property for which the translation dialog is opened, e.g. "jcr:title", "title", "text", ...
*/
protected String propertyName;
/**
* The path where the property is actually saved according to our i18n method, e.g. "i18n/de/text".
*/
protected String propertyI18nPath;
/**
* The property edit handle for the property.
*/
protected PropertyEditHandle handle;
/**
* The sources for translation.
*/
protected List