]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3150: Removed debugging print statements.
authorRichard Millet <richard.millet@berkeley.edu>
Wed, 3 Nov 2010 21:51:55 +0000 (21:51 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Wed, 3 Nov 2010 21:51:55 +0000 (21:51 +0000)
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/PermissionDocumentHandler.java
services/authorization/service/src/main/java/org/collectionspace/services/authorization/URIResourceImpl.java

index 29503a36a2ed5d284b7c6356f418a8893b1407ea..9af981151e9925bff1d3876255663e09fb57cf48 100644 (file)
@@ -62,10 +62,6 @@ public class PermissionDocumentHandler
     private PermissionsList permissionsList;
     
     public CSpaceAction getAction(ActionType action) {
-       System.out.println("Hello, world? " + action.name());
-       System.out.println("Hello, world? " + ActionType.CREATE.name());
-       
-       try {
         if (ActionType.CREATE.name().equals(action.name())) {
             return CSpaceAction.CREATE;
         } else if (ActionType.READ.equals(action)) {
@@ -83,9 +79,9 @@ public class PermissionDocumentHandler
         } else if (ActionType.STOP.equals(action)) {
             return CSpaceAction.STOP;
         }
-       } catch (Exception x) {
-               x.printStackTrace();
-       }
+        //
+        // We could not find a match, so we need to throw an exception.
+        //
         throw new IllegalArgumentException("action = " + action.toString());
     }
     
index 5996bb7553f80727cee4aa14cebad568f99bf814..04b40aae7f7254680d5e5d9f2b22b73e88fd2a99 100644 (file)
@@ -124,11 +124,9 @@ public class URIResourceImpl extends CSpaceResourceImpl {
     /*
      * Map a Permission ActionType to a CSpaceAction
      */
+    //FIXME: This method is duplicated in PermissionDocumentHandler.java class.  The class loader was having
+    //trouble with the ActionType class file.  Not sure why?
     public static CSpaceAction getAction(ActionType action) {
-       System.out.println("Hello, world? " + action.name());
-       System.out.println("Hello, world? " + ActionType.CREATE.name());
-       
-       try {
         if (ActionType.CREATE.name().equals(action.name())) {
             return CSpaceAction.CREATE;
         } else if (ActionType.READ.equals(action)) {
@@ -146,9 +144,6 @@ public class URIResourceImpl extends CSpaceResourceImpl {
         } else if (ActionType.STOP.equals(action)) {
             return CSpaceAction.STOP;
         }
-       } catch (Exception x) {
-               x.printStackTrace();
-       }
         throw new IllegalArgumentException("action = " + action.toString());
     }