Interface StudioBlobStoreAdapter
-
- All Superinterfaces:
org.craftercms.commons.file.blob.BlobStore
,ContentRepository
,ContentRepository
,StudioBlobStore
- All Known Implementing Classes:
StudioAwsS3BlobStore
public interface StudioBlobStoreAdapter extends StudioBlobStore
Base class for all implementations ofStudioBlobStore
- Since:
- 3.1.6
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
addRemote(String siteId, String remoteName, String remoteUrl, String authenticationType, String remoteUsername, String remotePassword, String remoteToken, String remotePrivateKey)
Add remote repository for site content repositorydefault void
cleanupRepositories(String siteId)
Performs a cleanup all repositories for the given sitedefault boolean
commitIdExists(String site, String commitId)
Check if given commit id existsdefault boolean
commitIdExists(String site, GitRepositories repoType, String commitId)
Check if given commit id existsdefault int
countUnprocessedCommits(String siteId, long marker)
Count unprocessed commits from databasedefault boolean
createSiteCloneRemote(String siteId, String sandboxBranch, String remoteName, String remoteUrl, String remoteBranch, boolean singleBranch, String authenticationType, String remoteUsername, String remotePassword, String remoteToken, String remotePrivateKey, Map<String,String> params, boolean createAsOrphan, String creator)
Create new site as a clone from remote repositorydefault boolean
createSiteFromBlueprint(String blueprintLocation, String siteId, String sandboxBranch, Map<String,String> params, String creator)
Create a new site based on a blueprintdefault String
createVersion(String site, String path, boolean majorVersion)
create a versiondefault String
createVersion(String site, String path, String comment, boolean majorVersion)
create a versiondefault void
deleteGitLogForSite(String siteId)
Delete Git log for sitedefault boolean
deleteSite(String siteId)
Deletes an existing site.default Map<String,String>
getChangeSetPathsFromDelta(String site, String commitIdFrom, String commitIdTo)
Get a list of paths that changed since the commit ID provided to commit ID provideddefault Optional<org.springframework.core.io.Resource>
getContentByCommitId(String site, String path, String commitId)
return a specific version of the contentdefault RepositoryItem[]
getContentChildren(String site, String path)
get immediate children for pathdefault VersionTO[]
getContentVersionHistory(String site, String path)
get the version history for an itemdefault List<String>
getEditCommitIds(String site, String path, String commitIdFrom, String commitIdTo)
Get a list of commits for updates on a contentdefault GitLog
getGitLog(String siteId, String commitId)
Get git log object from databasedefault org.craftercms.core.service.Item
getItem(String siteId, String path, boolean flatten)
default DetailedItem.Environment
getItemEnvironmentProperties(String siteId, GitRepositories repo, String environment, String path)
Get environment properties for itemdefault String
getLastEditCommitId(String siteId, String path)
default List<RepoOperation>
getOperations(String site, String commitIdFrom, String commitIdTo)
Get a list of operations since the commit ID provided (compare that commit to HEAD)default List<RepoOperation>
getOperationsFromDelta(String site, String commitIdFrom, String commitIdTo)
Get a list of operations since the commit ID provided (compare that commit to HEAD)default String
getPreviousCommitId(String siteId, String commitId)
Get the previous commit id from repository for given a site id and a commit iddefault List<PublishingHistoryItem>
getPublishingHistory(String siteId, String environment, String path, String publisher, ZonedDateTime fromDate, ZonedDateTime toDate, int limit)
Get publishing historydefault String
getRepoFirstCommitId(String site)
Get first id from repository for given sitedefault String
getRepoLastCommitId(String site)
Get last commit id from repository for given site.default List<String>
getSubtreeItems(String site, String path)
List subtree items for give site and pathdefault List<GitLog>
getUnauditedCommits(String siteId, int batchSize)
Get unaudited commits from databasedefault List<GitLog>
getUnprocessedCommits(String siteId, long marker)
Get unprocessed commits from databasedefault void
initialPublish(String site, String sandboxBranch, String environment, String author, String comment)
Initial publish to specified environment.default void
insertFullGitLog(String siteId, int processed)
Insert Full Git Logdefault void
insertGitLog(String siteId, String commitId, int processed)
Insert Git Logdefault void
insertGitLog(String siteId, String commitId, int processed, int audited)
Insert Git Logdefault boolean
isFolder(String siteId, String path)
Check if content at given path is folderdefault void
itemUnlock(String site, String path)
unlock an itemdefault List<RemoteRepositoryInfoTO>
listRemote(String siteId, String sandboxBranch)
List remote repositories for given sitedefault void
lockItem(String site, String path)
lock an item NOTE: site will be removed from this interfacedefault void
lockItemForPublishing(String site, String path)
lock an item NOTE: site will be removed from this interfacedefault void
markGitLogAudited(String siteId, String commitId)
Mark Git log as auditeddefault void
markGitLogProcessedBeforeMarker(String siteId, long marker, int processed)
Mark all git logs as processed if they are inserted before markerdefault void
markGitLogVerifiedProcessed(String siteId, String commitId)
Mark Git log as verifieddefault void
markGitLogVerifiedProcessedBulk(String siteId, List<String> commitIds)
Mark Git logs as verifieddefault boolean
publishedRepositoryExists(String siteId)
Check if published repository exists for given site.default boolean
pullFromRemote(String siteId, String remoteName, String remoteBranch)
Pull from remote repositorydefault boolean
pushToRemote(String siteId, String remoteName, String remoteBranch)
Push content to remote repositorydefault void
reloadRepository(String siteId)
Reload repository for given sitedefault boolean
removeRemote(String siteId, String remoteName)
Remove remote with given name for sitedefault void
removeRemoteRepositoriesForSite(String siteId)
Remove all remotes for given sitedefault boolean
repositoryExists(String site)
Check if repository exists for given sitedefault void
resetStagingRepository(String siteId)
Reset staging repository to live for given sitedefault String
revertContent(String site, String path, String version, boolean major, String comment)
revert a version (create a new version based on an old version)default void
unLockItem(String site, String path)
unlock an item for publishing NOTE: site will be removed from this interfacedefault void
unLockItemForPublishing(String site, String path)
unlock an item for publishing NOTE: site will be removed from this interfacedefault void
updateGitlog(String siteId, String lastProcessedCommitId, int batchSize)
Update gitlog table with commit ids from repositorydefault void
upsertGitLogList(String siteId, List<String> commitIds, boolean processed, boolean audited)
Upsert git logs as processed and audited-
Methods inherited from interface org.craftercms.commons.file.blob.BlobStore
getId, getResource, init, isCompatible
-
Methods inherited from interface org.craftercms.studio.api.v1.repository.ContentRepository
contentExists, copyContent, createFolder, deleteContent, getContent, moveContent, moveContent, shallowContentExists, writeContent
-
Methods inherited from interface org.craftercms.studio.api.v2.repository.ContentRepository
cancelPublishAll, checkContentExists, completePublishAll, contentExists, getContentSize, initialPublish, populateGitLog, preparePublishAll, publish, publishAll
-
Methods inherited from interface org.craftercms.studio.api.v2.repository.blob.StudioBlobStore
getReference
-
-
-
-
Method Detail
-
getContentChildren
default RepositoryItem[] getContentChildren(String site, String path)
Description copied from interface:ContentRepository
get immediate children for path- Specified by:
getContentChildren
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path to content- Returns:
- a list of children
-
getContentVersionHistory
default VersionTO[] getContentVersionHistory(String site, String path)
Description copied from interface:ContentRepository
get the version history for an item- Specified by:
getContentVersionHistory
in interfaceContentRepository
- Parameters:
site
- - the project IDpath
- - the path of the item- Returns:
- a list of versions
-
createVersion
default String createVersion(String site, String path, boolean majorVersion)
Description copied from interface:ContentRepository
create a version- Specified by:
createVersion
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- location of contentmajorVersion
- true if major- Returns:
- the created version ID or null on failure
-
createVersion
default String createVersion(String site, String path, String comment, boolean majorVersion)
Description copied from interface:ContentRepository
create a version- Specified by:
createVersion
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- location of contentcomment
- version history commentmajorVersion
- true if major- Returns:
- the created version ID or null on failure
-
revertContent
default String revertContent(String site, String path, String version, boolean major, String comment)
Description copied from interface:ContentRepository
revert a version (create a new version based on an old version)- Specified by:
revertContent
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- - the path of the item to "revert"version
- - old version ID to base to version onmajor
- flag if it is major versioncomment
- add comment when committing content- Returns:
- Commit ID if successful, empty string otherwise
-
getContentByCommitId
default Optional<org.springframework.core.io.Resource> getContentByCommitId(String site, String path, String commitId)
Description copied from interface:ContentRepository
return a specific version of the content- Specified by:
getContentByCommitId
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the contentcommitId
- version to return- Returns:
- the resource if available
-
lockItem
default void lockItem(String site, String path)
Description copied from interface:ContentRepository
lock an item NOTE: site will be removed from this interface- Specified by:
lockItem
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the item
-
lockItemForPublishing
default void lockItemForPublishing(String site, String path)
Description copied from interface:ContentRepository
lock an item NOTE: site will be removed from this interface- Specified by:
lockItemForPublishing
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the item
-
unLockItem
default void unLockItem(String site, String path)
Description copied from interface:ContentRepository
unlock an item for publishing NOTE: site will be removed from this interface- Specified by:
unLockItem
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the item
-
unLockItemForPublishing
default void unLockItemForPublishing(String site, String path)
Description copied from interface:ContentRepository
unlock an item for publishing NOTE: site will be removed from this interface- Specified by:
unLockItemForPublishing
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the item
-
isFolder
default boolean isFolder(String siteId, String path)
Description copied from interface:ContentRepository
Check if content at given path is folder- Specified by:
isFolder
in interfaceContentRepository
- Parameters:
siteId
- site identifierpath
- content path- Returns:
- true if path is folder, otherwise false
-
createSiteFromBlueprint
default boolean createSiteFromBlueprint(String blueprintLocation, String siteId, String sandboxBranch, Map<String,String> params, String creator)
Description copied from interface:ContentRepository
Create a new site based on a blueprint- Specified by:
createSiteFromBlueprint
in interfaceContentRepository
- Parameters:
blueprintLocation
- blueprint locationsiteId
- site identifiersandboxBranch
- sandbox branch nameparams
- site parameterscreator
- site creator- Returns:
- true if successful, false otherwise
-
deleteSite
default boolean deleteSite(String siteId)
Description copied from interface:ContentRepository
Deletes an existing site.- Specified by:
deleteSite
in interfaceContentRepository
- Parameters:
siteId
- site to delete- Returns:
- true if successful, false otherwise
-
initialPublish
default void initialPublish(String site, String sandboxBranch, String environment, String author, String comment)
Description copied from interface:ContentRepository
Initial publish to specified environment.- Specified by:
initialPublish
in interfaceContentRepository
- Parameters:
site
- site identifiersandboxBranch
- sandbox branch nameenvironment
- environment to publishauthor
- authorcomment
- comment
-
getRepoLastCommitId
default String getRepoLastCommitId(String site)
Description copied from interface:ContentRepository
Get last commit id from repository for given site.- Specified by:
getRepoLastCommitId
in interfaceContentRepository
- Specified by:
getRepoLastCommitId
in interfaceContentRepository
- Parameters:
site
- site id- Returns:
- last commit id (current HEAD)
-
getRepoFirstCommitId
default String getRepoFirstCommitId(String site)
Description copied from interface:ContentRepository
Get first id from repository for given site- Specified by:
getRepoFirstCommitId
in interfaceContentRepository
- Specified by:
getRepoFirstCommitId
in interfaceContentRepository
- Parameters:
site
- site id- Returns:
- first commit id
-
getEditCommitIds
default List<String> getEditCommitIds(String site, String path, String commitIdFrom, String commitIdTo)
Description copied from interface:ContentRepository
Get a list of commits for updates on a content- Specified by:
getEditCommitIds
in interfaceContentRepository
- Parameters:
site
- site idpath
- pathcommitIdFrom
- range from commit id (inclusive)commitIdTo
- range to commit id (inclusive)- Returns:
- list of edit commit ids
-
commitIdExists
default boolean commitIdExists(String site, String commitId)
Description copied from interface:ContentRepository
Check if given commit id exists- Specified by:
commitIdExists
in interfaceContentRepository
- Parameters:
site
- site idcommitId
- commit id to check- Returns:
- true if it exists in site repository, otherwise false
-
commitIdExists
default boolean commitIdExists(String site, GitRepositories repoType, String commitId)
Description copied from interface:ContentRepository
Check if given commit id exists- Specified by:
commitIdExists
in interfaceContentRepository
- Parameters:
site
- site idrepoType
- repository typecommitId
- commit id to check- Returns:
- true if it exists in site repository, otherwise false
-
insertFullGitLog
default void insertFullGitLog(String siteId, int processed)
Description copied from interface:ContentRepository
Insert Full Git Log- Specified by:
insertFullGitLog
in interfaceContentRepository
- Parameters:
siteId
- siteprocessed
- processed
-
deleteGitLogForSite
default void deleteGitLogForSite(String siteId)
Description copied from interface:ContentRepository
Delete Git log for site- Specified by:
deleteGitLogForSite
in interfaceContentRepository
- Parameters:
siteId
- site identifier
-
createSiteCloneRemote
default boolean createSiteCloneRemote(String siteId, String sandboxBranch, String remoteName, String remoteUrl, String remoteBranch, boolean singleBranch, String authenticationType, String remoteUsername, String remotePassword, String remoteToken, String remotePrivateKey, Map<String,String> params, boolean createAsOrphan, String creator)
Description copied from interface:ContentRepository
Create new site as a clone from remote repository- Specified by:
createSiteCloneRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifiersandboxBranch
- sandbox branch nameremoteName
- remote nameremoteUrl
- remote repository urlremoteBranch
- remote branch namesingleBranch
- flag to signal if clone single branch or full repositoryauthenticationType
- type of authentication to use to connect remote repositoryremoteUsername
- remote usernameremotePassword
- remote passwordremoteToken
- remote tokenremotePrivateKey
- remote private keyparams
- site parameterscreateAsOrphan
- create as orphancreator
- site creator- Returns:
- true if success
-
addRemote
default boolean addRemote(String siteId, String remoteName, String remoteUrl, String authenticationType, String remoteUsername, String remotePassword, String remoteToken, String remotePrivateKey)
Description copied from interface:ContentRepository
Add remote repository for site content repository- Specified by:
addRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifierremoteName
- remote nameremoteUrl
- remote urlauthenticationType
- authentication typeremoteUsername
- remote usernameremotePassword
- remote passwordremoteToken
- remote tokenremotePrivateKey
- remote private key- Returns:
- true if operation was successful
-
removeRemote
default boolean removeRemote(String siteId, String remoteName)
Description copied from interface:ContentRepository
Remove remote with given name for site- Specified by:
removeRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifierremoteName
- remote name- Returns:
- true if operation was successful
-
removeRemoteRepositoriesForSite
default void removeRemoteRepositoriesForSite(String siteId)
Description copied from interface:ContentRepository
Remove all remotes for given site- Specified by:
removeRemoteRepositoriesForSite
in interfaceContentRepository
- Parameters:
siteId
- site identifier
-
listRemote
default List<RemoteRepositoryInfoTO> listRemote(String siteId, String sandboxBranch)
Description copied from interface:ContentRepository
List remote repositories for given site- Specified by:
listRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifiersandboxBranch
- sandbox branch name- Returns:
- list of names of remote repositories
-
pushToRemote
default boolean pushToRemote(String siteId, String remoteName, String remoteBranch)
Description copied from interface:ContentRepository
Push content to remote repository- Specified by:
pushToRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifierremoteName
- remote nameremoteBranch
- remote branch- Returns:
- true if operation was successful
-
pullFromRemote
default boolean pullFromRemote(String siteId, String remoteName, String remoteBranch)
Description copied from interface:ContentRepository
Pull from remote repository- Specified by:
pullFromRemote
in interfaceContentRepository
- Parameters:
siteId
- site identifierremoteName
- remote nameremoteBranch
- remote branch- Returns:
- true if operation was successful
-
resetStagingRepository
default void resetStagingRepository(String siteId)
Description copied from interface:ContentRepository
Reset staging repository to live for given site- Specified by:
resetStagingRepository
in interfaceContentRepository
- Parameters:
siteId
- site identifier to use for resetting
-
reloadRepository
default void reloadRepository(String siteId)
Description copied from interface:ContentRepository
Reload repository for given site- Specified by:
reloadRepository
in interfaceContentRepository
- Parameters:
siteId
- site identifier
-
cleanupRepositories
default void cleanupRepositories(String siteId)
Description copied from interface:ContentRepository
Performs a cleanup all repositories for the given site- Specified by:
cleanupRepositories
in interfaceContentRepository
- Parameters:
siteId
- site identifier
-
repositoryExists
default boolean repositoryExists(String site)
Description copied from interface:ContentRepository
Check if repository exists for given site- Specified by:
repositoryExists
in interfaceContentRepository
- Parameters:
site
- site id- Returns:
- true if repository exists, otherwise false
-
getSubtreeItems
default List<String> getSubtreeItems(String site, String path)
Description copied from interface:ContentRepository
List subtree items for give site and path- Specified by:
getSubtreeItems
in interfaceContentRepository
- Parameters:
site
- site identifierpath
- path for subtree root- Returns:
- list of item paths contained in the subtree
-
getOperations
default List<RepoOperation> getOperations(String site, String commitIdFrom, String commitIdTo)
Description copied from interface:ContentRepository
Get a list of operations since the commit ID provided (compare that commit to HEAD)- Specified by:
getOperations
in interfaceContentRepository
- Parameters:
site
- site to usecommitIdFrom
- commit ID to start atcommitIdTo
- commit ID to end at- Returns:
- commit ID of current HEAD, updated operationsSinceCommit
-
getOperationsFromDelta
default List<RepoOperation> getOperationsFromDelta(String site, String commitIdFrom, String commitIdTo)
Description copied from interface:ContentRepository
Get a list of operations since the commit ID provided (compare that commit to HEAD)- Specified by:
getOperationsFromDelta
in interfaceContentRepository
- Parameters:
site
- site to usecommitIdFrom
- commit ID to start atcommitIdTo
- commit ID to end at- Returns:
- commit ID of current HEAD, updated operationsSinceCommit
-
getGitLog
default GitLog getGitLog(String siteId, String commitId)
Description copied from interface:ContentRepository
Get git log object from database- Specified by:
getGitLog
in interfaceContentRepository
- Parameters:
siteId
- site idcommitId
- commit ID- Returns:
- git log object
-
markGitLogVerifiedProcessed
default void markGitLogVerifiedProcessed(String siteId, String commitId)
Description copied from interface:ContentRepository
Mark Git log as verified- Specified by:
markGitLogVerifiedProcessed
in interfaceContentRepository
- Parameters:
siteId
- site identifiercommitId
- commit id
-
insertGitLog
default void insertGitLog(String siteId, String commitId, int processed)
Description copied from interface:ContentRepository
Insert Git Log- Specified by:
insertGitLog
in interfaceContentRepository
- Parameters:
siteId
- sitecommitId
- commit IDprocessed
- processed
-
insertGitLog
default void insertGitLog(String siteId, String commitId, int processed, int audited)
Description copied from interface:ContentRepository
Insert Git Log- Specified by:
insertGitLog
in interfaceContentRepository
- Parameters:
siteId
- sitecommitId
- commit IDprocessed
- processedaudited
- audited
-
getPublishingHistory
default List<PublishingHistoryItem> getPublishingHistory(String siteId, String environment, String path, String publisher, ZonedDateTime fromDate, ZonedDateTime toDate, int limit)
Description copied from interface:ContentRepository
Get publishing history- Specified by:
getPublishingHistory
in interfaceContentRepository
- Parameters:
siteId
- site identifierenvironment
- environmentpath
- path regular expression to use as filterpublisher
- user to filter byfromDate
- lower boundary for published datetoDate
- upper boundary for published datelimit
- number of records to return- Returns:
- publishing history
-
getItem
default org.craftercms.core.service.Item getItem(String siteId, String path, boolean flatten)
- Specified by:
getItem
in interfaceContentRepository
-
getLastEditCommitId
default String getLastEditCommitId(String siteId, String path)
- Specified by:
getLastEditCommitId
in interfaceContentRepository
-
getChangeSetPathsFromDelta
default Map<String,String> getChangeSetPathsFromDelta(String site, String commitIdFrom, String commitIdTo)
Description copied from interface:ContentRepository
Get a list of paths that changed since the commit ID provided to commit ID provided- Specified by:
getChangeSetPathsFromDelta
in interfaceContentRepository
- Parameters:
site
- site to usecommitIdFrom
- commit ID to start atcommitIdTo
- commit ID to end at- Returns:
- list of paths of files that changed between two commits
-
markGitLogAudited
default void markGitLogAudited(String siteId, String commitId)
Description copied from interface:ContentRepository
Mark Git log as audited- Specified by:
markGitLogAudited
in interfaceContentRepository
- Parameters:
siteId
- site identifiercommitId
- commit id
-
updateGitlog
default void updateGitlog(String siteId, String lastProcessedCommitId, int batchSize)
Description copied from interface:ContentRepository
Update gitlog table with commit ids from repository- Specified by:
updateGitlog
in interfaceContentRepository
- Parameters:
siteId
- site identifierlastProcessedCommitId
- last processed commit idbatchSize
- size of a batch to update
-
getUnauditedCommits
default List<GitLog> getUnauditedCommits(String siteId, int batchSize)
Description copied from interface:ContentRepository
Get unaudited commits from database- Specified by:
getUnauditedCommits
in interfaceContentRepository
- Parameters:
siteId
- site identifierbatchSize
- size of a batch to retrieve- Returns:
- list of gitlog records
-
getUnprocessedCommits
default List<GitLog> getUnprocessedCommits(String siteId, long marker)
Description copied from interface:ContentRepository
Get unprocessed commits from database- Specified by:
getUnprocessedCommits
in interfaceContentRepository
- Parameters:
siteId
- site identifiermarker
- id of last verified commit Id- Returns:
- list of gitlog records
-
getItemEnvironmentProperties
default DetailedItem.Environment getItemEnvironmentProperties(String siteId, GitRepositories repo, String environment, String path)
Description copied from interface:ContentRepository
Get environment properties for item- Specified by:
getItemEnvironmentProperties
in interfaceContentRepository
- Parameters:
siteId
- site identifierrepo
- repository typeenvironment
- branchpath
- path of the item- Returns:
- environment properties
-
countUnprocessedCommits
default int countUnprocessedCommits(String siteId, long marker)
Description copied from interface:ContentRepository
Count unprocessed commits from database- Specified by:
countUnprocessedCommits
in interfaceContentRepository
- Parameters:
siteId
- site identifiermarker
- id of last verified commit Id- Returns:
- number of unprocessed gitlog records
-
markGitLogProcessedBeforeMarker
default void markGitLogProcessedBeforeMarker(String siteId, long marker, int processed)
Description copied from interface:ContentRepository
Mark all git logs as processed if they are inserted before marker- Specified by:
markGitLogProcessedBeforeMarker
in interfaceContentRepository
- Parameters:
siteId
- site identifiermarker
- marker git commitprocessed
- value for processed
-
getPreviousCommitId
default String getPreviousCommitId(String siteId, String commitId)
Description copied from interface:ContentRepository
Get the previous commit id from repository for given a site id and a commit id- Specified by:
getPreviousCommitId
in interfaceContentRepository
- Parameters:
siteId
- site identifiercommitId
- commit Id- Returns:
-
itemUnlock
default void itemUnlock(String site, String path)
Description copied from interface:ContentRepository
unlock an item- Specified by:
itemUnlock
in interfaceContentRepository
- Parameters:
site
- site id where the operation will be executedpath
- path of the item
-
markGitLogVerifiedProcessedBulk
default void markGitLogVerifiedProcessedBulk(String siteId, List<String> commitIds)
Description copied from interface:ContentRepository
Mark Git logs as verified- Specified by:
markGitLogVerifiedProcessedBulk
in interfaceContentRepository
- Parameters:
siteId
- site identifiercommitIds
- list of commit ids
-
upsertGitLogList
default void upsertGitLogList(String siteId, List<String> commitIds, boolean processed, boolean audited)
Description copied from interface:ContentRepository
Upsert git logs as processed and audited- Specified by:
upsertGitLogList
in interfaceContentRepository
- Parameters:
siteId
- site identifiercommitIds
- commit idsprocessed
- true if already processedaudited
- true if already audited
-
publishedRepositoryExists
default boolean publishedRepositoryExists(String siteId)
Description copied from interface:ContentRepository
Check if published repository exists for given site.- Specified by:
publishedRepositoryExists
in interfaceContentRepository
- Parameters:
siteId
- site identifier- Returns:
- true if PUBLISHED repository exists, otherwise false
-
-