public interface PatchingTaskContext
Modifier and Type | Interface and Description |
---|---|
static class |
PatchingTaskContext.Mode |
Modifier and Type | Method and Description |
---|---|
File |
getBackupFile(MiscContentItem item)
Get the backup location for a misc file.
|
PatchingTaskContext.Mode |
getCurrentMode()
Get whether the patch is applied or rolled back.
|
File[] |
getTargetBundlePath()
Get the current bundle path.
|
File |
getTargetFile(ContentItem item)
Get the target location for a given content item.
|
File[] |
getTargetModulePath()
Get the current module path.
|
void |
invalidateRoot(File root)
Add a root for invalidation.
|
boolean |
isExcluded(ContentItem contentItem)
Check the content verification policy whether a given
content item can be excluded or not.
|
void |
recordChange(ContentModification change,
ContentModification rollbackAction)
Record a change to be included in the patch history.
|
PatchingTaskContext.Mode getCurrentMode()
File getTargetFile(ContentItem item)
item
- the content itemFile getBackupFile(MiscContentItem item)
item
- the misc content itemboolean isExcluded(ContentItem contentItem)
contentItem
- the content itemvoid recordChange(ContentModification change, ContentModification rollbackAction)
change
- the modificationrollbackAction
- the rollback actionvoid invalidateRoot(File root) throws IOException
root
- the invalidation rootIOException
File[] getTargetBundlePath()
File[] getTargetModulePath()
Copyright © 2023 JBoss by Red Hat. All rights reserved.