Interface HippoTranslationBeanService


  • public interface HippoTranslationBeanService
    Hippo Translation Content Bean service.
    • Method Detail

      • getTranslationBeans

        <T extends HippoBeanMap<String,​T> getTranslationBeans​(Session session,
                                                                      String translationId,
                                                                      Class<T> beanMappingClass)
                                                               throws RepositoryException
        Returns all the Hippo Translation Beans of translationId.
        Parameters:
        session - JCR session
        translationId - the translation ID
        beanMappingClass - expected mapping class of Hippo Translation Beans
        Returns:
        all the Hippo Translation Beans keyed by locale string in the same translationId
        Throws:
        RepositoryException - if any repository exception occurs
      • getTranslationNodes

        List<Node> getTranslationNodes​(Session session,
                                       String translationId)
                                throws RepositoryException
        Returns all the Hippo Translation nodes of translationId.
        Parameters:
        session - JCR session
        translationId - the translation ID
        Returns:
        all the Hippo Translation nodes in the same translationId
        Throws:
        RepositoryException - if any repository exception occurs