@@ -35,7 +35,6 @@ public class AruPatch implements Comparable<AruPatch> {
3535 private String downloadPath ;
3636 private String fileName ;
3737 private String access ;
38- private String lifecycle ;
3938
4039 public String patchId () {
4140 return patchId ;
@@ -149,15 +148,6 @@ public boolean isOpenAccess() {
149148 return "Open access" .equals (access );
150149 }
151150
152- public AruPatch lifecycle (String value ) {
153- lifecycle = value ;
154- return this ;
155- }
156-
157- public boolean isRecommended () {
158- return "Recommended" .equals (lifecycle );
159- }
160-
161151 public boolean notStackPatchBundle () {
162152 return !isStackPatchBundle ();
163153 }
@@ -166,6 +156,10 @@ public boolean isStackPatchBundle() {
166156 return description != null && description .contains ("STACK PATCH BUNDLE" );
167157 }
168158
159+ private boolean isCoherenceFeaturePack () {
160+ return description != null && description .contains ("Coherence 14.1.1 Feature Pack" );
161+ }
162+
169163 /**
170164 * Given an XML document with a list of patches, extract each patch into the AruPatch bean and return the list.
171165 * @param patchList an XML document with a list of patches from ARU
@@ -199,7 +193,6 @@ public static List<AruPatch> getPatches(Document patchList, String patchSelector
199193 .product (XPathUtil .string (nodeList .item (i ), "./product/@id" ))
200194 .psuBundle (XPathUtil .string (nodeList .item (i ), "./psu_bundle" ))
201195 .access (XPathUtil .string (nodeList .item (i ), "./access" ))
202- .lifecycle (XPathUtil .string (nodeList .item (i ), "./life_cycle" ))
203196 .downloadHost (XPathUtil .string (nodeList .item (i ), "./files/file/download_url/@host" ))
204197 .downloadPath (XPathUtil .string (nodeList .item (i ), "./files/file/download_url/text()" ));
205198
@@ -224,7 +217,7 @@ public static List<AruPatch> getPatches(Document patchList, String patchSelector
224217 }
225218
226219 /**
227- * Select a an ARU patch from the list based on a version number.
220+ * Select an ARU patch from the list based on a version number.
228221 * Version preference is: provided version, PSU version, and then installer version.
229222 * If there is only one patch in the list, no version checking is done, and that patch is returned.
230223 * @param patches list of patches to search
@@ -310,6 +303,10 @@ public static List<AruPatch> removeStackPatchBundle(List<AruPatch> patches) {
310303 return patches .stream ().filter (AruPatch ::notStackPatchBundle ).collect (Collectors .toList ());
311304 }
312305
306+ public static List <AruPatch > removeCoherenceFeaturePackPatch (List <AruPatch > patches ) {
307+ return patches .stream ().filter (p -> !p .isCoherenceFeaturePack ()).collect (Collectors .toList ());
308+ }
309+
313310 @ Override
314311 public String toString () {
315312 return patchId + " - " + description ;
0 commit comments