java/code/src/com/redhat/rhn/frontend/xmlrpc/schedule/ScheduleHandler.java | 5 +++--
java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java | 10
++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
New commits:
commit 0f6c23433d1b1d6232c89fbaf4c301b9b5561639
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Tue Jul 27 15:06:20 2010 -0400
checkstyle fixes
diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/schedule/ScheduleHandler.java
b/java/code/src/com/redhat/rhn/frontend/xmlrpc/schedule/ScheduleHandler.java
index fd1b997..c863675 100644
--- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/schedule/ScheduleHandler.java
+++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/schedule/ScheduleHandler.java
@@ -264,6 +264,7 @@ public class ScheduleHandler extends BaseHandler {
* Reschedule all actions in the given list.
* @param sessionKey The sessionkey for the session containing the logged in user.
* @param actionIds The list of ids for actions to reschedule.
+ * @param onlyFailed only reschedule failed actions
* @return Returns a list of actions with details
* @throws FaultException A FaultException is thrown if one of the actions provided
* is invalid.
@@ -275,8 +276,8 @@ public class ScheduleHandler extends BaseHandler {
* "True to only reschedule failed actions, False to reschedule
all")
* @xmlrpc.returntype #return_int_success()
*/
- public int rescheduleActions(String sessionKey, List<Integer> actionIds,
boolean onlyFailed)
- throws FaultException {
+ public int rescheduleActions(String sessionKey, List<Integer> actionIds,
+ boolean onlyFailed) throws FaultException {
// Get the logged in user
User loggedInUser = getLoggedInUser(sessionKey);
commit b7aba4a8401ec8d92a825a6c8fe04b3fca613826
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Tue Jul 27 15:05:46 2010 -0400
checkstyle fixes
diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java
b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java
index 94159c3..8e09e98 100644
--- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java
+++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java
@@ -1041,6 +1041,7 @@ public class SystemHandler extends BaseHandler {
* Get the latest available version of a package for each system
* @param sessionKey The sessionKey containing the logged in user
* @param systemIds The IDs of the systems in question
+ * @param name the package name
* @return Returns an a map with the latest available package for each system
* @throws FaultException A FaultException is thrown if the server corresponding to
* sid cannot be found.
@@ -1063,8 +1064,8 @@ public class SystemHandler extends BaseHandler {
* #array_end()
*
*/
- public List listLatestAvailablePackage(String sessionKey, List<Integer>
systemIds, String name)
- throws FaultException {
+ public List listLatestAvailablePackage(String sessionKey, List<Integer>
systemIds,
+ String name) throws FaultException {
// Get the logged in user
User loggedInUser = getLoggedInUser(sessionKey);
@@ -1081,7 +1082,7 @@ public class SystemHandler extends BaseHandler {
if (pkgEvr != null) {
// find the latest package available to each system
Package pkg = PackageManager.guestimatePackageBySystem(sid.longValue(),
- (Long) pkgEvr.get("name_id"), (Long)
pkgEvr.get("evr_id"),
+ (Long) pkgEvr.get("name_id"), (Long)
pkgEvr.get("evr_id"),
null, loggedInUser.getOrg());
// build the hash to return
@@ -1095,7 +1096,8 @@ public class SystemHandler extends BaseHandler {
if (pkg.getPackageEvr().getEpoch() != null) {
pkgMap.put("epoch", pkg.getPackageEvr().getEpoch());
- } else {
+ }
+ else {
pkgMap.put("epoch", "");
}
Show replies by date