public abstract class ModificationBuilderTarget<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ModificationBuilderTarget() |
protected |
ModificationBuilderTarget(ContentItemFilter itemFilter) |
| Modifier and Type | Method and Description |
|---|---|
T |
addBundle(String moduleName,
String slot,
byte[] newHash)
Add a bundle.
|
T |
addContentModification(ContentModification modification)
Add a content modification.
|
T |
addFile(String name,
List<String> path,
byte[] newHash,
boolean isDirectory)
Add a misc file.
|
T |
addModule(String moduleName,
String slot,
byte[] newHash)
Add a module.
|
protected ModuleItem |
createBundleItem(String moduleName,
String slot,
byte[] hash) |
protected ContentModification |
createContentModification(ContentItem item,
ModificationType type,
byte[] existingHash) |
protected MiscContentItem |
createMiscItem(String name,
List<String> path,
byte[] newHash,
boolean isDirectory) |
protected ModuleItem |
createModuleItem(String moduleName,
String slot,
byte[] hash) |
protected abstract T |
internalAddModification(ContentModification modification) |
T |
modifyBundle(String moduleName,
String slot,
byte[] existingHash,
byte[] newHash)
Modify a bundle.
|
T |
modifyFile(String name,
List<String> path,
byte[] existingHash,
byte[] newHash,
boolean isDirectory)
Modify a misc file.
|
T |
modifyModule(String moduleName,
String slot,
byte[] existingHash,
byte[] newHash)
Modify a module.
|
T |
removeBundle(String moduleName,
String slot,
byte[] existingHash)
Remove a bundle.
|
T |
removeFile(String name,
List<String> path,
byte[] existingHash,
boolean isDirectory)
Remove a misc file.
|
T |
removeModule(String moduleName,
String slot,
byte[] existingHash)
Remove a module.
|
protected abstract T |
returnThis() |
void |
setContentItemFilter(ContentItemFilter filter) |
protected ModificationBuilderTarget()
protected ModificationBuilderTarget(ContentItemFilter itemFilter)
protected abstract T internalAddModification(ContentModification modification)
protected abstract T returnThis()
public T addContentModification(ContentModification modification)
modification - the content modificationpublic T addBundle(String moduleName, String slot, byte[] newHash)
moduleName - the module nameslot - the module slotnewHash - the new hash of the added contentpublic T modifyBundle(String moduleName, String slot, byte[] existingHash, byte[] newHash)
moduleName - the module nameslot - the module slotexistingHash - the existing hashnewHash - the new hash of the modified contentpublic T removeBundle(String moduleName, String slot, byte[] existingHash)
moduleName - the module nameslot - the module slotexistingHash - the existing hashpublic T addFile(String name, List<String> path, byte[] newHash, boolean isDirectory)
name - the file namepath - the relative pathnewHash - the new hash of the added contentisDirectory - whether the file is a directory or notpublic T modifyFile(String name, List<String> path, byte[] existingHash, byte[] newHash, boolean isDirectory)
name - the file namepath - the relative pathexistingHash - the existing hashnewHash - the new hash of the modified contentisDirectory - whether the file is a directory or notpublic T removeFile(String name, List<String> path, byte[] existingHash, boolean isDirectory)
name - the file namepath - the relative pathexistingHash - the existing hashisDirectory - whether the file is a directory or notpublic T addModule(String moduleName, String slot, byte[] newHash)
moduleName - the module nameslot - the module slotnewHash - the new hash of the added contentpublic T modifyModule(String moduleName, String slot, byte[] existingHash, byte[] newHash)
moduleName - the module nameslot - the module slotexistingHash - the existing hashnewHash - the new hash of the modified contentpublic T removeModule(String moduleName, String slot, byte[] existingHash)
moduleName - the module nameslot - the module slotexistingHash - the existing hashpublic void setContentItemFilter(ContentItemFilter filter)
protected ContentModification createContentModification(ContentItem item, ModificationType type, byte[] existingHash)
protected MiscContentItem createMiscItem(String name, List<String> path, byte[] newHash, boolean isDirectory)
protected ModuleItem createBundleItem(String moduleName, String slot, byte[] hash)
protected ModuleItem createModuleItem(String moduleName, String slot, byte[] hash)
Copyright © 2014 JBoss by Red Hat. All rights reserved.