Interface HippoTranslationBeanService


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

      • getTranslationBeans

        <T extends HippoBeanMap<String,​T> getTranslationBeans​(javax.jcr.Session session,
                                                                      String translationId,
                                                                      Class<T> beanMappingClass)
                                                               throws javax.jcr.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:
        javax.jcr.RepositoryException - if any repository exception occurs
      • getTranslationNodes

        List<javax.jcr.Node> getTranslationNodes​(javax.jcr.Session session,
                                                 String translationId)
                                          throws javax.jcr.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:
        javax.jcr.RepositoryException - if any repository exception occurs