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
Modifier and TypeFieldDescriptionFields inherited from class org.craftercms.search.batch.AbstractUpdateDetailProvider
updateDetails, updateLog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 listReturns the list of created files.Returns the list of deleted files.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.Methods inherited from class org.craftercms.search.batch.AbstractUpdateDetailProvider
getUpdateDetail, getUpdateDetails, getUpdateLog, setUpdateDetails, setUpdateLog
-
Field Details
-
createdFiles
-
updatedFiles
-
deletedFiles
-
-
Constructor Details
-
ChangeSet
public ChangeSet() -
ChangeSet
-
-
Method Details
-
getCreatedFiles
Returns the list of created files. -
addCreatedFile
Adds a file to the list of created files if it's not in the list- Parameters:
file
- the file to add
-
removeCreatedFile
Removes a file from the list of created files.- Parameters:
file
- the file to remove
-
getUpdatedFiles
Returns the list of updated files. -
addUpdatedFile
Adds a file to the list of updated files if it's not in the list- Parameters:
file
- the file to add
-
removeUpdatedFile
Removes a file from the list of updated files.- Parameters:
file
- the file to remove
-
getDeletedFiles
Returns the list of deleted files. -
addDeletedFile
Adds a file to the list of deleted files if it's not in the list- Parameters:
file
- the file to add
-
removeDeletedFile
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.
-