Interface AutoTranslateMergeService

  • All Known Implementing Classes:
    AutoTranslateMergeServiceImpl

    public interface AutoTranslateMergeService
    Service for handling merge operations related to auto-translation. Provides methods to retrieve properties for resources in the context of translations.
    • Method Detail

      • saveTranslation

        Map<String,​String> saveTranslation​(@Nonnull
                                                 org.apache.sling.api.resource.Resource resource,
                                                 @Nonnull
                                                 String propertyName,
                                                 @Nonnull
                                                 String content,
                                                 @Nonnull
                                                 boolean markAsMerged)
                                          throws com.day.cq.wcm.api.WCMException
        Saves the new content to a property.
        Parameters:
        resource - the resource to save the translation to.
        propertyName - the name of the property to save the translation to.
        content - the new content to save.
        markAsMerged - whether to mark the property as merged
        Returns:
        a map containing "saved" and the text saved in the resource, to verify that it went OK, otherwise empty.
        Throws:
        com.day.cq.wcm.api.WCMException