Author: xor
Date: 2008-11-08 01:25:10 +0000 (Sat, 08 Nov 2008)
New Revision: 23401

Modified:
   trunk/plugins/WoT/WoT.java
Log:
Remove not needed code, allow fetching of identites without specifying a 
TreeOwner.

Modified: trunk/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/WoT.java  2008-11-08 00:14:36 UTC (rev 23400)
+++ trunk/plugins/WoT/WoT.java  2008-11-08 01:25:10 UTC (rev 23401)
@@ -541,7 +541,7 @@
                return sfs;
        }

-       // TODO: javadoc
+       /* would only be needed if we connect the client plugins directly via 
object references which will probably not happen
        public List<Identity> getIdentitiesByScore(OwnIdentity treeOwner, int 
select, String context) throws InvalidParameterException
        {
                ObjectSet<Score> result = Score.getIdentitiesByScore(db, 
treeOwner, select);
@@ -559,12 +559,13 @@

                return identities;
        }
+       */

        private SimpleFieldSet handleGetIdentitiesByScore(SimpleFieldSet 
params) throws InvalidParameterException, MalformedURLException, 
UnknownIdentityException, DuplicateIdentityException {

                SimpleFieldSet sfs = new SimpleFieldSet(false);

-               if(params.get("TreeOwner") == null || params.get("Select") == 
null || params.get("Context") == null) throw new 
InvalidParameterException("Missing mandatory parameter");
+               if(params.get("Select") == null || params.get("Context") == 
null) throw new InvalidParameterException("Missing mandatory parameter");

                sfs.putAppend("Message", "Identities");

@@ -773,14 +774,6 @@
                return seed;
        }

-       public ObjectSet<OwnIdentity> getAllOwnIdentities() {
-               throw new UnsupportedOperationException();
-       }
-       
-       public ObjectSet<Identity> getAllIdentities() {
-               throw new UnsupportedOperationException();
-       }
-       
        public PageMaker getPageMaker() {
                return pm;
        }


Reply via email to