Package org.craftercms.deployer.api
Class ChangeSet
- java.lang.Object
-
- org.craftercms.search.batch.AbstractUpdateDetailProvider
-
- org.craftercms.deployer.api.ChangeSet
-
- All Implemented Interfaces:
org.craftercms.search.batch.UpdateDetailProvider
public class ChangeSet extends org.craftercms.search.batch.AbstractUpdateDetailProvider
The collection of created, updated and deleted files that have been changed in a deployment.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
createdFiles
protected List<String>
deletedFiles
protected List<String>
updatedFiles
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCreatedFile(String file)
Adds a file to the list of created files if it's not in the listvoid
addDeletedFile(String file)
Adds a file to the list of deleted files if it's not in the listvoid
addUpdatedFile(String file)
Adds a file to the list of updated files if it's not in the listList<String>
getCreatedFiles()
Returns the list of created files.List<String>
getDeletedFiles()
Returns the list of deleted files.List<String>
getUpdatedFiles()
Returns the list of updated files.boolean
isEmpty()
Returns true if there are not created, updated or deleted files.void
removeCreatedFile(String file)
Removes a file from the list of created files.void
removeDeletedFile(String file)
Removes a file from the list of deleted files.void
removeUpdatedFile(String file)
Removes a file from the list of updated files.
-
-
-
Method Detail
-
addCreatedFile
public void addCreatedFile(String file)
Adds a file to the list of created files if it's not in the list- Parameters:
file
- the file to add
-
removeCreatedFile
public void removeCreatedFile(String file)
Removes a file from the list of created files.- Parameters:
file
- the file to remove
-
addUpdatedFile
public void addUpdatedFile(String file)
Adds a file to the list of updated files if it's not in the list- Parameters:
file
- the file to add
-
removeUpdatedFile
public void removeUpdatedFile(String file)
Removes a file from the list of updated files.- Parameters:
file
- the file to remove
-
addDeletedFile
public void addDeletedFile(String file)
Adds a file to the list of deleted files if it's not in the list- Parameters:
file
- the file to add
-
removeDeletedFile
public void removeDeletedFile(String file)
Removes a file from the list of deleted files.- Parameters:
file
- the file to remove
-
isEmpty
public boolean isEmpty()
Returns true if there are not created, updated or deleted files.
-
-