Class PageDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<PageEntity,Long>
org.exoplatform.wiki.jpa.dao.WikiBaseDAO<PageEntity,Long>
org.exoplatform.wiki.jpa.dao.PageDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>

public class PageDAO extends WikiBaseDAO<PageEntity,Long>
  • Constructor Details

  • Method Details

    • getAllPagesOfWiki

      public List<PageEntity> getAllPagesOfWiki(String wikiType, String wikiOwner)
    • getPagesOfWiki

      public List<PageEntity> getPagesOfWiki(String wikiType, String wikiOwner, boolean deleted)
    • getPageOfWikiByName

      public PageEntity getPageOfWikiByName(String wikiType, String wikiOwner, String pageName)
    • getChildrenPages

      public List<PageEntity> getChildrenPages(PageEntity page)
    • getAllChildrenPages

      public List<PageEntity> getAllChildrenPages(PageEntity page)
    • findAllIds

      public List<Long> findAllIds(int offset, int limit)
    • countAllIds

      public Long countAllIds()
    • findAllBySyntax

      public List<PageEntity> findAllBySyntax(String syntax, int offset, int limit)
    • getRelatedPages

      public List<PageEntity> getRelatedPages(long pageId)
    • countPageChildrenById

      public Long countPageChildrenById(Long pageId)
    • deleteAll

      public void deleteAll(List<PageEntity> entities)
      Specified by:
      deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>
      Overrides:
      deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<PageEntity,Long>
    • delete

      public void delete(PageEntity entity)
      Specified by:
      delete in interface org.exoplatform.commons.api.persistence.GenericDAO<PageEntity,Long>
      Overrides:
      delete in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<PageEntity,Long>
    • refreshEntity

      protected PageEntity refreshEntity(PageEntity entity)
    • updatePageDependencies

      protected void updatePageDependencies(PageEntity entity)