Package org.craftercms.studio.api.v1.dal
Interface SiteFeedMapper
public interface SiteFeedMapper
-
Method Summary
Modifier and TypeMethodDescriptionintbooleancreateSite(SiteFeed siteFeed) booleandeleteSite(String siteId, String state) Delete sitevoidduplicate(String sourceSiteId, String siteId, String name, String description, String sandboxBranch, String siteUuid) Duplicate a site in the database.voidenablePublishing(Map params) existsById(String id) existsByName(String name) getAllCreatedSites(String state) intgetPublishedRepoCreated(String siteId) getPublishingStatus(String siteId) Get publishing status for sitegetSites()getSitesPerUserData(Map params) getSitesPerUserQuery(Map params) intgetSitesPerUserQueryTotal(Map params) getSiteState(String siteId) booleanisNameUsed(String siteId, String name) Checks if there is a site, different than the siteId, using the given namevoidsetPublishedRepoCreated(String siteId) Set published repo created flagvoidsetSiteState(String siteId, String state) voidupdateLastCommitId(Map params) voidupdatePublishingStatus(String siteId, String status) Update publishing statusintupdateSite(String siteId, String name, String description) Updates the name and description for the given site
-
Method Details
-
getSites
-
countSites
int countSites() -
getSite
-
createSite
-
deleteSite
Delete site- Parameters:
siteId- site identifierstate- deleted state value- Returns:
-
updateLastCommitId
-
exists
-
existsById
-
existsByName
-
isNameUsed
Checks if there is a site, different than the siteId, using the given name- Parameters:
siteId- the id of the sitename- the name of the site- Returns:
- true if the name is being used by another site
-
getSitesPerUserQueryTotal
-
getSitesPerUserQuery
-
getSitesPerUserData
-
enablePublishing
-
updatePublishingStatus
void updatePublishingStatus(@Param("siteId") String siteId, @Param("publishingStatus") String status) Update publishing status- Parameters:
siteId- site identifierstatus- publisher status
-
getDeletedSites
-
setPublishedRepoCreated
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 sitename- the name of the sitedescription- the description of the site- Returns:
- the number of changed rows
-
setSiteState
-
getAllCreatedSites
-
getSiteState
-
getPublishedRepoCreated
-
getPublishingStatus
Get publishing status for site- Parameters:
siteId- site identifier- Returns:
- Publishing status
-
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. Notice that populateItemParentId SP should be called after this method to populate the new site's item parent ids.- Parameters:
sourceSiteId- the id of the site to duplicatesiteId- the id of the new sitename- the name of the new sitedescription- the description of the new sitesandboxBranch- the sandbox branch of the new sitesiteUuid- the uuid of the new site- See Also:
-