public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, NO_CONTENT, isDirectory); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash, condition)); return returnThis(); }
/** * Add a content modification. * * @param modification the content modification */ public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, newHash, isDirectory); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT, condition)); return returnThis(); }
public T modifyFile(final String name, final List<String> path, final byte[] existingHash, final byte[] newHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, newHash, isDirectory); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash, condition)); return returnThis(); }
/** * Modify a module. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @param newHash the new hash of the modified content * @return the builder */ public T modifyModule(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return returnThis(); }
public T removeFile(final String name, final List<String> path, final byte[] existingHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, NO_CONTENT, isDirectory); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash, condition)); return returnThis(); }
/** * Remove a module. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @return the builder */ public T removeModule(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createModuleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
/** * Add a module. * * @param moduleName the module name * @param slot the module slot * @param newHash the new hash of the added content * @return the builder */ public T addModule(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
/** * Add a content modification. * * @param modification the content modification */ public T addContentModification(final ContentModification modification) { if (itemFilter.accepts(modification.getItem())) { internalAddModification(modification); } return returnThis(); }
public T addFile(final String name, final List<String> path, final byte[] newHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, newHash, isDirectory); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT, condition)); return returnThis(); }
public T modifyFile(final String name, final List<String> path, final byte[] existingHash, final byte[] newHash, final boolean isDirectory, ModificationCondition condition) { final ContentItem item = createMiscItem(name, path, newHash, isDirectory); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash, condition)); return returnThis(); }
/** * Remove a module. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @return the builder */ public T removeModule(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createModuleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
/** * Modify a bundle. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @param newHash the new hash of the modified content * @return the builder */ public T modifyBundle(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return returnThis(); }
/** * Add a bundle. * * @param moduleName the module name * @param slot the module slot * @param newHash the new hash of the added content * @return the builder */ public T addBundle(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
/** * Remove a bundle. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @return the builder */ public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
/** * Add a module. * * @param moduleName the module name * @param slot the module slot * @param newHash the new hash of the added content * @return the builder */ public T addModule(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
/** * Add a bundle. * * @param moduleName the module name * @param slot the module slot * @param newHash the new hash of the added content * @return the builder */ public T addBundle(final String moduleName, final String slot, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT)); return returnThis(); }
/** * Remove a bundle. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @return the builder */ public T removeBundle(final String moduleName, final String slot, final byte[] existingHash) { final ContentItem item = createBundleItem(moduleName, slot, NO_CONTENT); addContentModification(createContentModification(item, ModificationType.REMOVE, existingHash)); return returnThis(); }
/** * Modify a bundle. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @param newHash the new hash of the modified content * @return the builder */ public T modifyBundle(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createBundleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return returnThis(); }
/** * Modify a module. * * @param moduleName the module name * @param slot the module slot * @param existingHash the existing hash * @param newHash the new hash of the modified content * @return the builder */ public T modifyModule(final String moduleName, final String slot, final byte[] existingHash, final byte[] newHash) { final ContentItem item = createModuleItem(moduleName, slot, newHash); addContentModification(createContentModification(item, ModificationType.MODIFY, existingHash)); return returnThis(); }