@Override protected PatchOperationBuilder createPatchOperationBuilder(CommandContext ctx) throws CommandException { if (streams) { return PatchOperationBuilder.Factory.streams(); } PatchOperationBuilder builder; final String pId = getPatchId(); if (pId == null) { builder = PatchOperationBuilder.Factory.info(patchStream); } else { builder = PatchOperationBuilder.Factory.info(patchStream, pId, verbose); } return builder; }
@Override protected PatchOperationBuilder createPatchOperationBuilder(CommandContext ctx) throws CommandException { if (streams) { return PatchOperationBuilder.Factory.streams(); } PatchOperationBuilder builder; final String pId = getPatchId(); if (pId == null) { builder = PatchOperationBuilder.Factory.info(patchStream); } else { builder = PatchOperationBuilder.Factory.info(patchStream, pId, verbose); } return builder; }
/** * Get the patch info for the specific patchId. * * @return the patch info */ public static PatchOperationBuilder info(final String patchId, final boolean verbose) { return info(null, patchId, verbose); }
/** * Get the current patch info. * * @return the patch info */ public static PatchOperationBuilder info() { return info(null); }
/** * Get the patch info for the specific patchId. * * @return the patch info */ public static PatchOperationBuilder info(final String patchId, final boolean verbose) { return info(null, patchId, verbose); }
/** * Get the current patch info. * * @return the patch info */ public static PatchOperationBuilder info() { return info(null); }