Removed DOCUMENT ME comments that were generated and applied source code
[utils] / security / src / main / java / org / wamblee / security / authorization / DefaultOperationRegistry.java
index ad34465d139a4be3e59f61cece10b76d445d32e2..e5da54b48b215b8e7b200b45f88a98b4ec5a3475 100644 (file)
@@ -19,24 +19,19 @@ import java.util.ArrayList;
 import java.util.Map;
 import java.util.TreeMap;
 
-
 /**
- * Operation registry implementation.  This implementation ignores the
+ * Operation registry implementation. This implementation ignores the
  * distinction between different types of resources and simply assumes that
  * every operation is applicable to every type of resource.
- *
+ * 
  * @author Erik Brakkee
  */
 public class DefaultOperationRegistry implements OperationRegistry {
-    /**
-     * DOCUMENT ME!
-     */
     private Map<String, Operation> operations;
 
-/**
+    /**
      * Creates a new DefaultOperationRegistry object.
-     *
-     * @param aOperations DOCUMENT ME!
+     * 
      */
     public DefaultOperationRegistry(Operation[] aOperations) {
         operations = new TreeMap<String, Operation>();
@@ -46,29 +41,23 @@ public class DefaultOperationRegistry implements OperationRegistry {
         }
     }
 
-    /* (non-Javadoc)
-     * @see org.wamblee.security.authorization.OperationRegistry#getOperations(java.lang.Class)
-     */
-    /**
-     * DOCUMENT ME!
-     *
-     * @param aResourceClass DOCUMENT ME!
-     *
-     * @return DOCUMENT ME!
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.wamblee.security.authorization.OperationRegistry#getOperations(java
+     * .lang.Class)
      */
     public Operation[] getOperations(Class aResourceClass) {
         return operations.values().toArray(new Operation[0]);
     }
 
-    /* (non-Javadoc)
-     * @see org.wamblee.security.authorization.OperationRegistry#encode(org.wamblee.security.authorization.Operation[])
-     */
-    /**
-     * DOCUMENT ME!
-     *
-     * @param aOperations DOCUMENT ME!
-     *
-     * @return DOCUMENT ME!
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.wamblee.security.authorization.OperationRegistry#encode(org.wamblee
+     * .security.authorization.Operation[])
      */
     public String encode(Operation[] aOperations) {
         StringBuffer buffer = new StringBuffer();
@@ -84,47 +73,38 @@ public class DefaultOperationRegistry implements OperationRegistry {
         return buffer.toString();
     }
 
-    /* (non-Javadoc)
-     * @see org.wamblee.security.authorization.OperationRegistry#decode(java.lang.Class, java.lang.String)
-     */
-    /**
-     * DOCUMENT ME!
-     *
-     * @param aResourceClass DOCUMENT ME!
-     * @param aOperationsString DOCUMENT ME!
-     *
-     * @return DOCUMENT ME!
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.wamblee.security.authorization.OperationRegistry#decode(java.lang
+     * .Class, java.lang.String)
      */
     public Operation[] decode(Class aResourceClass, String aOperationsString) {
         return decode(aOperationsString);
     }
 
-    /* (non-Javadoc)
-     * @see org.wamblee.security.authorization.OperationRegistry#decode(java.lang.String)
-     */
-    /**
-     * DOCUMENT ME!
-     *
-     * @param aOperationsString DOCUMENT ME!
-     *
-     * @return DOCUMENT ME!
-     *
-     * @throws IllegalArgumentException DOCUMENT ME!
+    /*
+     * (non-Javadoc)
+     * 
+     * @see
+     * org.wamblee.security.authorization.OperationRegistry#decode(java.lang
+     * .String)
      */
     public Operation[] decode(String aOperationsString) {
         if (aOperationsString.length() == 0) {
             return new Operation[0];
         }
 
-        String[]             names  = aOperationsString.split(",");
+        String[] names = aOperationsString.split(",");
         ArrayList<Operation> result = new ArrayList<Operation>();
 
         for (String name : names) {
             Operation operation = operations.get(name);
 
             if (operation == null) {
-                throw new IllegalArgumentException("Unknown operation '" + name
-                    + "'");
+                throw new IllegalArgumentException("Unknown operation '" +
+                    name + "'");
             }
 
             result.add(operation);