Author: ssmiweve
Date: 2008-12-15 14:04:11 +0100 (Mon, 15 Dec 2008)
New Revision: 7091

Modified:
   
branches/2.18/data-model-api/src/main/java/no/sesat/search/datamodel/search/SearchDataObject.java
Log:
it's ok for the search command, during execution, to manipulate the query and 
results

Modified: 
branches/2.18/data-model-api/src/main/java/no/sesat/search/datamodel/search/SearchDataObject.java
===================================================================
--- 
branches/2.18/data-model-api/src/main/java/no/sesat/search/datamodel/search/SearchDataObject.java
   2008-12-15 09:50:32 UTC (rev 7090)
+++ 
branches/2.18/data-model-api/src/main/java/no/sesat/search/datamodel/search/SearchDataObject.java
   2008-12-15 13:04:11 UTC (rev 7091)
@@ -1,4 +1,4 @@
-/* Copyright (2007) Schibsted Søk AS
+/* Copyright (2007-2008) Schibsted Søk AS
  *   This file is part of SESAT.
  *
  *   SESAT is free software: you can redistribute it and/or modify
@@ -23,6 +23,7 @@
 package no.sesat.search.datamodel.search;
 
 import no.sesat.search.datamodel.access.AccessAllow;
+import no.sesat.search.datamodel.access.ControlLevel;
 import static no.sesat.search.datamodel.access.ControlLevel.*;
 import no.sesat.search.datamodel.generic.DataObject;
 import no.sesat.search.datamodel.query.QueryDataObject;
@@ -30,9 +31,8 @@
 import no.sesat.search.result.ResultItem;
 import no.sesat.search.result.ResultList;
 
-/** Contains Search Command and Result information.
+/** Contains Search Command's manipulated Query and eventual Results 
information.
  *
- *
  * @version <tt>$Id$</tt>
  */
 @DataObject
@@ -42,32 +42,32 @@
 
     void setConfiguration(SearchConfiguration configuration);
 
-    /**
+    /** The command's list of results.
      *
      * @return
      */
     ResultList<ResultItem> getResults();
 
-    /**
+    /** Set the command's list of results.
      *
      * @param results
      */
-    @AccessAllow({})
+    @AccessAllow({ControlLevel.SEARCH_COMMAND_EXECUTION})
     void setResults(ResultList<ResultItem> results);
 
     // QueryDataObject 
------------------------------------------------------------
 
-    /**
+    /** The command's query. The command may have altered (in a manner 
noticalbe to the user) the query.
      *
      * @return
      */
     QueryDataObject getQuery();
 
-    /**
+    /** Set the command's query.
      *
      * @param query
      */
-    @AccessAllow({})
+    @AccessAllow({ControlLevel.SEARCH_COMMAND_EXECUTION})
     void setQuery(QueryDataObject query);
 
 

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to