Author: keith
Date: Mon Jan 21 04:00:54 2008
New Revision: 12626

Log:

Minor code cleanup



Modified:
   
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java

Modified: 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java
==============================================================================
--- 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java
   (original)
+++ 
trunk/mashup/java/modules/admin/service/src/org/wso2/mashup/admin/service/MashupAdminService.java
   Mon Jan 21 04:00:54 2008
@@ -45,16 +45,12 @@
 public class MashupAdminService {
 
     public Boolean saveServiceSource(String path, String modifiedSource) 
throws MashupFault {
-        boolean success = false;
+        boolean success;
 
         try {
 
             String[] pathContents = path.split("/");
 
-            // Extracting the service author from the path.
-            // Not using the registry here on purpose to allow saving the 
service source even when it's undeployed.
-            String author = pathContents[2];
-
             //todo Add verification and validation routines to ensure only the 
author of the service and admins can write.
 
             //Extracting the real path from the registry path provided
@@ -86,7 +82,7 @@
     }
 
     public Boolean saveUiSource(String path, String modifiedSource) throws 
MashupFault {
-        boolean success = false;
+        boolean success;
 
         try {
 
@@ -97,8 +93,6 @@
                 path = path + "/" + pathContents[x];
             }
 
-            String serviceName = pathContents[pathContents.length - 1];
-
             ServerManager serverManager = ServerManager.getInstance();
             ConfigurationContext configContext = serverManager.configContext;
 
@@ -161,7 +155,7 @@
     }
 
     public Boolean setServiceDocumentation(String serviceName, String 
documentation) throws MashupFault {
-        boolean success = false;
+        boolean success;
 
         MessageContext currentMessageContext = 
MessageContext.getCurrentMessageContext();
         AxisConfiguration configuration =

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to