/** * 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(); }
/** * 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 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(); }
/** * 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(); }
/** * 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(); }