@@ -35,7 +35,6 @@ public class AruPatch implements Comparable<AruPatch> {
35
35
private String downloadPath ;
36
36
private String fileName ;
37
37
private String access ;
38
- private String lifecycle ;
39
38
40
39
public String patchId () {
41
40
return patchId ;
@@ -149,15 +148,6 @@ public boolean isOpenAccess() {
149
148
return "Open access" .equals (access );
150
149
}
151
150
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
-
161
151
public boolean notStackPatchBundle () {
162
152
return !isStackPatchBundle ();
163
153
}
@@ -166,6 +156,10 @@ public boolean isStackPatchBundle() {
166
156
return description != null && description .contains ("STACK PATCH BUNDLE" );
167
157
}
168
158
159
+ private boolean isCoherenceFeaturePack () {
160
+ return description != null && description .contains ("Coherence 14.1.1 Feature Pack" );
161
+ }
162
+
169
163
/**
170
164
* Given an XML document with a list of patches, extract each patch into the AruPatch bean and return the list.
171
165
* @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
199
193
.product (XPathUtil .string (nodeList .item (i ), "./product/@id" ))
200
194
.psuBundle (XPathUtil .string (nodeList .item (i ), "./psu_bundle" ))
201
195
.access (XPathUtil .string (nodeList .item (i ), "./access" ))
202
- .lifecycle (XPathUtil .string (nodeList .item (i ), "./life_cycle" ))
203
196
.downloadHost (XPathUtil .string (nodeList .item (i ), "./files/file/download_url/@host" ))
204
197
.downloadPath (XPathUtil .string (nodeList .item (i ), "./files/file/download_url/text()" ));
205
198
@@ -224,7 +217,7 @@ public static List<AruPatch> getPatches(Document patchList, String patchSelector
224
217
}
225
218
226
219
/**
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.
228
221
* Version preference is: provided version, PSU version, and then installer version.
229
222
* If there is only one patch in the list, no version checking is done, and that patch is returned.
230
223
* @param patches list of patches to search
@@ -310,6 +303,10 @@ public static List<AruPatch> removeStackPatchBundle(List<AruPatch> patches) {
310
303
return patches .stream ().filter (AruPatch ::notStackPatchBundle ).collect (Collectors .toList ());
311
304
}
312
305
306
+ public static List <AruPatch > removeCoherenceFeaturePackPatch (List <AruPatch > patches ) {
307
+ return patches .stream ().filter (p -> !p .isCoherenceFeaturePack ()).collect (Collectors .toList ());
308
+ }
309
+
313
310
@ Override
314
311
public String toString () {
315
312
return patchId + " - " + description ;
0 commit comments