Interface SiteFeedMapper


public interface SiteFeedMapper
  • Method Details

    • getSites

      List<SiteFeed> getSites()
    • countSites

      int countSites()
    • getSite

      SiteFeed getSite(Map params)
    • createSite

      boolean createSite(SiteFeed siteFeed)
    • deleteSite

      boolean deleteSite(@Param("siteId") String siteId, @Param("state") String state)
      Delete site
      Parameters:
      siteId - site identifier
      state - deleted state value
      Returns:
    • updateLastCommitId

      void updateLastCommitId(Map params)
    • exists

      Integer exists(String siteId)
    • existsById

      Integer existsById(String id)
    • existsByName

      Integer existsByName(String name)
    • isNameUsed

      boolean isNameUsed(@Param("siteId") String siteId, @Param("name") String name)
      Checks if there is a site, different than the siteId, using the given name
      Parameters:
      siteId - the id of the site
      name - the name of the site
      Returns:
      true if the name is being used by another site
    • getSitesPerUserQueryTotal

      int getSitesPerUserQueryTotal(Map params)
    • getSitesPerUserQuery

      List<String> getSitesPerUserQuery(Map params)
    • getSitesPerUserData

      List<SiteFeed> getSitesPerUserData(Map params)
    • enablePublishing

      void enablePublishing(Map params)
    • updatePublishingStatus

      void updatePublishingStatus(@Param("siteId") String siteId, @Param("publishingStatus") String status)
      Update publishing status
      Parameters:
      siteId - site identifier
      status - publisher status
    • updateLastVerifiedGitlogCommitId

      void updateLastVerifiedGitlogCommitId(Map params)
    • updateLastSyncedGitlogCommitId

      void updateLastSyncedGitlogCommitId(Map params)
    • getDeletedSites

      List<SiteFeed> getDeletedSites()
    • setPublishedRepoCreated

      void setPublishedRepoCreated(@Param("siteId") String siteId)
      Set published repo created flag
      Parameters:
      siteId - site identifier
    • updateSite

      int updateSite(@Param("siteId") String siteId, @Param("name") String name, @Param("description") String description)
      Updates the name and description for the given site
      Parameters:
      siteId - the id of the site
      name - the name of the site
      description - the description of the site
      Returns:
      the number of changed rows
    • getLastCommitId

      String getLastCommitId(@Param("siteId") String siteId)
      Get last commit id for local studio node
      Parameters:
      siteId - site identifier
      Returns:
      commit id
    • getLastVerifiedGitlogCommitId

      String getLastVerifiedGitlogCommitId(@Param("siteId") String siteId)
      Get last verified git log commit id for local studio node
      Parameters:
      siteId - site identifier
      Returns:
      commit id
    • getLastSyncedGitlogCommitId

      String getLastSyncedGitlogCommitId(@Param("siteId") String siteId)
      Get last verified git log commit id for local studio node
      Parameters:
      siteId - site identifier
      Returns:
      commit id
    • setSiteState

      void setSiteState(@Param("siteId") String siteId, @Param("state") String state)
    • getAllCreatedSites

      List<String> getAllCreatedSites(@Param("state") String state)
    • getSiteState

      String getSiteState(@Param("siteId") String siteId)
    • getPublishedRepoCreated

      int getPublishedRepoCreated(@Param("siteId") String siteId)
    • getPublishingStatus

      PublishStatus getPublishingStatus(@Param("siteId") String siteId, @Param("ttl") int ttl)
      Get publishing status for site
      Parameters:
      siteId - site identifier
      ttl - amount of minutes to add to the
      Returns:
      Publishing status
    • clearPublishingLockForSite

      void clearPublishingLockForSite(@Param("siteId") String siteId)
      Clear publishing lock for site
      Parameters:
      siteId - site identifier
    • duplicate

      void duplicate(@Param("sourceSiteId") String sourceSiteId, @Param("siteId") String siteId, @Param("name") String name, @Param("description") String description, @Param("sandboxBranch") String sandboxBranch, @Param("uuid") String siteUuid)
      Duplicate a site in the database
      Parameters:
      sourceSiteId - the id of the site to duplicate
      siteId - the id of the new site
      name - the name of the new site
      description - the description of the new site
      sandboxBranch - the sandbox branch of the new site
      siteUuid - the uuid of the new site