@@ -99,6 +99,22 @@ public static String getLatestPSUFor(String category, String version, UserSessio
99
99
}
100
100
101
101
102
+ /**
103
+ * Get list of PSU available for given category and release
104
+ * @param category wls or fmw
105
+ * @param version version number like 12.2.1.3.0
106
+ * @param userSession user session containing the oraclient
107
+ * @return Document listing of all patches (full details)
108
+ * @throws IOException when failed
109
+ */
110
+ public static Document getAllPSUFor (String category , String version , UserSession userSession ) throws IOException {
111
+ User user = userSession .getUser ();
112
+ String releaseNumber = getReleaseNumber (category , version , user .getEmail (), String .valueOf (user .getPassword ()));
113
+ return getAllPSU (category , releaseNumber , user .getEmail (), String .valueOf (user .getPassword ()));
114
+ }
115
+
116
+
117
+
102
118
/**
103
119
* Download a list of FMW patches
104
120
*
@@ -211,6 +227,18 @@ private static String getLatestPSU(String category, String release, String userI
211
227
return savePatch (allPatches , userId , password );
212
228
}
213
229
230
+ private static Document getAllPSU (String category , String release , String userId , String password ) throws
231
+ IOException {
232
+
233
+ String expression ;
234
+ if ("wls" .equalsIgnoreCase (category ))
235
+ expression = String .format (LATEST_PSU_URL , WLS_PROD_ID , release );
236
+ else
237
+ expression = String .format (LATEST_PSU_URL , FMW_PROD_ID , release );
238
+
239
+ return HttpUtil .getXMLContent (expression , userId , password );
240
+ }
241
+
214
242
private static String getPatch (String category , String version , String bugNumber , String userId , String password )
215
243
throws
216
244
IOException {
0 commit comments