Author: suat
Date: Thu Aug  9 14:02:04 2012
New Revision: 1371215

URL: http://svn.apache.org/viewvc?rev=1371215&view=rev
Log:
Missing files for the previous commit which was:

STANBOL-498, STANBOL-499:
-While submitting content to the Contenthub, additional constraints are added 
into a ContentPart of the ContentItem to be created.
-Now, it is possible to specify the name of the IndexingSource of an 
LDPathSemanticIndex 
-Usage of FileStore in tests are adjusted. Instead of the commmon FileStore 
implementation, dummy Store instances are created.
-Some bugs are fixed when obtaining changes from the RevisionManager
-The LDPath program is now executed on the ContentItem also. This enables to 
execute the LDPath program over the TripleCollection based content parts of a 
ContentItem

Modified:
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndex.java
    
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/EpochException.java

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndex.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndex.java?rev=1371215&r1=1371214&r2=1371215&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndex.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/index/SemanticIndex.java
 Thu Aug  9 14:02:04 2012
@@ -25,7 +25,7 @@ import org.osgi.framework.ServiceReferen
 
 /**
  * A Semantic Index for Items
- *
+ * 
  * @param <Item>
  */
 public interface SemanticIndex<Item> {
@@ -46,6 +46,12 @@ public interface SemanticIndex<Item> {
     public static final String PROP_REVISION = "Semantic-Index-Revision";
 
     /**
+     * Epoch property for a Semantic Index. With this property, the epoch of 
the Semantic Index is kept. When
+     * the epoch of the Indexing Source, a reindexing must be performed in the 
Semantic Index.
+     */
+    public static final String PROP_EPOCH = "Semantic-Index-Epoch";
+
+    /**
      * State property for a Semantic Index
      */
     public static final String PROP_STATE = "Semantic-Index-State";
@@ -60,10 +66,11 @@ public interface SemanticIndex<Item> {
 
     /**
      * The type of Items indexed in this semantic Index
+     * 
      * @return the java {@link Class} of the Items provided by this index
      */
     Class<Item> getIntdexType();
-    
+
     /**
      * The description for the Semantic Index. The same as configured by the 
{@link #PROP_DESCRIPTION}
      * property in the OSGI component configuration
@@ -145,10 +152,9 @@ public interface SemanticIndex<Item> {
     Map<String,Object> getFieldProperties(String name) throws IndexException;
 
     /**
-     * Getter for the RESTful search interfaces supported by this semantic 
index. 
-     * The keys represent the types of the RESTful Interfaces. 
-     * See the {@link EndpointTypeEnum} enumeration for knows keys. The value 
is the
-     * URL of that service relative to to the Stanbol base URI
+     * Getter for the RESTful search interfaces supported by this semantic 
index. The keys represent the types
+     * of the RESTful Interfaces. See the {@link EndpointTypeEnum} enumeration 
for knows keys. The value is
+     * the URL of that service relative to to the Stanbol base URI
      * 
      * @return the RESTful search interfaces supported by this semantic index.
      */
@@ -163,9 +169,8 @@ public interface SemanticIndex<Item> {
      * <li> {@link Constants#OBJECTCLASS} = {@link Class#getName()}
      * </ul>
      * 
-     * @return the Java search APIs supported by this semantic index. 
-     * Also registered as OSGI services. The key is equals to the
-     * {@link Class#getName()} and {@link Constants#OBJECTCLASS}.
+     * @return the Java search APIs supported by this semantic index. Also 
registered as OSGI services. The
+     *         key is equals to the {@link Class#getName()} and {@link 
Constants#OBJECTCLASS}.
      */
     Map<String,ServiceReference> getSearchEndPoints();
 }

Modified: 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/EpochException.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/EpochException.java?rev=1371215&r1=1371214&r2=1371215&view=diff
==============================================================================
--- 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/EpochException.java
 (original)
+++ 
incubator/stanbol/branches/contenthub-two-layered-structure/commons/semanticindex/servicesapi/src/main/java/org/apache/stanbol/commons/semanticindex/store/EpochException.java
 Thu Aug  9 14:02:04 2012
@@ -18,6 +18,8 @@ public class EpochException extends Runt
     public EpochException(IndexingSource<?> source, long activeEpoch, long 
requestedEpoch) {
         super(String.format("The Epoch %s was requested but the %s '%s' uses 
%s as active Epoch",
             requestedEpoch, source.getClass().getSimpleName(), 
source.getName(), activeEpoch));
+        this.requestedEpoch = requestedEpoch;
+        this.activeEpoch = activeEpoch;
     }
 
     public long getRequestEpoch() {


Reply via email to