Class SiteDAOImpl

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<SiteEntity,Long>
org.exoplatform.portal.mop.dao.AbstractDAO<SiteEntity>
org.exoplatform.portal.mop.dao.SiteDAOImpl
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<SiteEntity,Long>, SiteDAO

public class SiteDAOImpl extends AbstractDAO<SiteEntity> implements SiteDAO
  • Constructor Details

  • Method Details

    • deleteAll

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

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

      public SiteEntity findByKey(org.exoplatform.portal.mop.SiteKey siteKey)
      Specified by:
      findByKey in interface SiteDAO
    • refresh

      public SiteEntity refresh(SiteEntity entity)
      Description copied from interface: SiteDAO
      Reads the site row again from the database, bypassing the state already loaded in the current persistence context
      Specified by:
      refresh in interface SiteDAO
      Parameters:
      entity - a site entity loaded by this DAO, detached from the persistence context by this call
      Returns:
      the entity read again, null when the site was removed meanwhile
    • findByType

      public List<SiteEntity> findByType(org.exoplatform.portal.mop.SiteType siteType)
      Specified by:
      findByType in interface SiteDAO
    • findSiteKey

      public List<org.exoplatform.portal.mop.SiteKey> findSiteKey(org.exoplatform.portal.mop.SiteType siteType)
      Specified by:
      findSiteKey in interface SiteDAO
    • findGroupSites

      public List<String> findGroupSites(int offset, int limit)
      Specified by:
      findGroupSites in interface SiteDAO
    • findSpaceSites

      public List<String> findSpaceSites(int offset, int limit)
      Specified by:
      findSpaceSites in interface SiteDAO
    • findPortalSites

      public List<String> findPortalSites(int offset, int limit)
      Specified by:
      findPortalSites in interface SiteDAO
    • findUserSites

      public List<String> findUserSites(int offset, int limit)
      Specified by:
      findUserSites in interface SiteDAO
    • findSitesKeys

      public List<org.exoplatform.portal.mop.SiteKey> findSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter)
      Specified by:
      findSitesKeys in interface SiteDAO