Package org.craftercms.studio.api.v1.to
Class GoLiveDeleteCandidates
- java.lang.Object
-
- org.craftercms.studio.api.v1.to.GoLiveDeleteCandidates
-
- All Implemented Interfaces:
Serializable
public class GoLiveDeleteCandidates extends Object implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentService
contentService
protected Set<String>
dependencies
protected ItemServiceInternal
itemServiceInternal
protected Set<String>
liveDependencyItems
protected Set<String>
paths
protected String
site
-
Constructor Summary
Constructors Constructor Description GoLiveDeleteCandidates(String site, ContentService contentService, ItemServiceInternal itemServiceInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addDependency(String uri)
Update the dependency collection with the given dependency urivoid
addDependencyParentFolder(String uri)
Add the folder path and remove all the child from the live dependency collectionSet<String>
getAllItems()
Returns all the page paths and dependenciesSet<String>
getDependencies()
Set<String>
getLiveDependencyItems()
Set<String>
getPaths()
void
setDependencies(Set<String> dependencies)
void
setLiveDependencyItems(Set<String> liveItems)
-
-
-
Field Detail
-
contentService
protected ContentService contentService
-
site
protected String site
-
itemServiceInternal
protected ItemServiceInternal itemServiceInternal
-
-
Constructor Detail
-
GoLiveDeleteCandidates
public GoLiveDeleteCandidates(String site, ContentService contentService, ItemServiceInternal itemServiceInternal)
-
-
Method Detail
-
getAllItems
public Set<String> getAllItems()
Returns all the page paths and dependencies- Returns:
- return all paths and dependencies
-
addDependency
public boolean addDependency(String uri)
Update the dependency collection with the given dependency uri- Parameters:
uri
- path- Returns:
- true if dependency added
-
addDependencyParentFolder
public void addDependencyParentFolder(String uri)
Add the folder path and remove all the child from the live dependency collection- Parameters:
uri
- path
-
-