public class ChangeSet
extends org.craftercms.search.batch.AbstractUpdateDetailProvider
Modifier and Type | Field and Description |
---|---|
protected List<String> |
createdFiles |
protected List<String> |
deletedFiles |
protected List<String> |
updatedFiles |
Constructor and Description |
---|
ChangeSet() |
ChangeSet(List<String> createdFiles,
List<String> updatedFiles,
List<String> deletedFiles) |
Modifier and Type | Method and Description |
---|---|
void |
addCreatedFile(String file)
Adds a file to the list of created files if it's not in the list
|
void |
addDeletedFile(String file)
Adds a file to the list of deleted files if it's not in the list
|
void |
addUpdatedFile(String file)
Adds a file to the list of updated files if it's not in the list
|
List<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.
|
public void addCreatedFile(String file)
file
- the file to addpublic void removeCreatedFile(String file)
file
- the file to removepublic void addUpdatedFile(String file)
file
- the file to addpublic void removeUpdatedFile(String file)
file
- the file to removepublic void addDeletedFile(String file)
file
- the file to addpublic void removeDeletedFile(String file)
file
- the file to removepublic boolean isEmpty()
Copyright © 2021. All rights reserved.