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