Package org.craftercms.studio.api.v1.to
Class GoLiveDeleteCandidates
java.lang.Object
org.craftercms.studio.api.v1.to.GoLiveDeleteCandidates
- All Implemented Interfaces:
Serializable
Contains all items that are deleted. Tracks live dependencies in a seperate collection since they have to be generally be deleted for staging sandbox
- Author:
- Shankar Krishnan, Dejan Brkic
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentServiceprotected ItemServiceInternalprotected String -
Constructor Summary
ConstructorsConstructorDescriptionGoLiveDeleteCandidates(String site, ContentService contentService, ItemServiceInternal itemServiceInternal) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDependency(String uri) Update the dependency collection with the given dependency urivoidAdd the folder path and remove all the child from the live dependency collectionReturns all the page paths and dependenciesgetPaths()voidsetDependencies(Set<String> dependencies) voidsetLiveDependencyItems(Set<String> liveItems)
-
Field Details
-
paths
-
dependencies
-
liveDependencyItems
-
contentService
-
site
-
itemServiceInternal
-
-
Constructor Details
-
GoLiveDeleteCandidates
public GoLiveDeleteCandidates(String site, ContentService contentService, ItemServiceInternal itemServiceInternal)
-
-
Method Details
-
getAllItems
Returns all the page paths and dependencies- Returns:
- return all paths and dependencies
-
addDependency
Update the dependency collection with the given dependency uri- Parameters:
uri- path- Returns:
- true if dependency added
-
addDependencyParentFolder
Add the folder path and remove all the child from the live dependency collection- Parameters:
uri- path
-
getPaths
-
getLiveDependencyItems
-
setLiveDependencyItems
-
getDependencies
-
setDependencies
-