Package org.craftercms.studio.api.v2.dal
Interface SiteDAO
public interface SiteDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteSiteDelete(String siteId) Marks the site as DELETEDvoiddeleteSiteRelatedItems(String siteId) Delete sitevoidenablePublishing(String siteId, boolean enabled) Enables/disables publishing for the given sitebooleanChecks if a non-deleted site exists with the given site idgetLastCommitId(String siteId) Get the last commit id for the given siteGets the site with the given site idgetSitesByState(String state) Get the sites matching the given statevoidstartSiteDelete(String siteId) Mark the site as DELETINGvoidupdateLastCommitId(String siteId, String commitId) Update a site's last commit id
-
Method Details
-
deleteSiteRelatedItems
Delete site- Parameters:
siteId- site identifier
-
startSiteDelete
Mark the site as DELETING- Parameters:
siteId- the site id
-
completeSiteDelete
Marks the site as DELETED- Parameters:
siteId- the site id
-
exists
Checks if a non-deleted site exists with the given site id- Parameters:
siteId- the site id- Returns:
- true if the site exists, false otherwise
-
enablePublishing
Enables/disables publishing for the given site- Parameters:
siteId- the site idenabled- true to enable publishing, false to disable
-
getSite
Gets the site with the given site id- Parameters:
siteId- the site id- Returns:
- the
Siteobject
-
getLastCommitId
Get the last commit id for the given site- Parameters:
siteId- site id- Returns:
- the last commit id
-
updateLastCommitId
Update a site's last commit id- Parameters:
siteId- site idcommitId- commit id
-
getSitesByState
Get the sites matching the given state- Parameters:
state- the state- Returns:
- the list of sites
-