You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2005/03/29 10:02:23 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/store AbstractStore.java

luetzkendorf    2005/03/29 00:02:23

  Modified:    src/share/org/apache/slide/store AbstractStore.java
  Log:
  createPropertiesIndex, createContentIndex
  
  Revision  Changes    Path
  1.52      +29 -4     jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java
  
  Index: AbstractStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/store/AbstractStore.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- AbstractStore.java	28 Feb 2005 17:25:43 -0000	1.51
  +++ AbstractStore.java	29 Mar 2005 08:02:23 -0000	1.52
  @@ -54,6 +54,7 @@
   import org.apache.slide.content.RevisionNotFoundException;
   import org.apache.slide.lock.LockTokenNotFoundException;
   import org.apache.slide.lock.NodeLock;
  +import org.apache.slide.search.IndexException;
   import org.apache.slide.security.NodePermission;
   import org.apache.slide.structure.ObjectAlreadyExistsException;
   import org.apache.slide.structure.ObjectNode;
  @@ -1622,6 +1623,30 @@
       }
       
       
  +    public void createPropertiesIndex(Uri uri, NodeRevisionDescriptor revisionDescriptor,
  +            NodeRevisionContent revisionContent) throws ServiceAccessException, IndexException
  +	{
  +    	enlist(propertiesIndexer);
  +    	
  +    	try {
  +    		propertiesIndexer.createIndex(uri, revisionDescriptor, revisionContent);
  +    	} finally {
  +    		delist(propertiesIndexer);
  +    	}
  +	}
  +    
  +    public void createContentIndex(Uri uri, NodeRevisionDescriptor revisionDescriptor,
  +            NodeRevisionContent revisionContent) throws ServiceAccessException, IndexException
  +	{
  +    	enlist(contentIndexer);
  +    	
  +    	try {
  +    		contentIndexer.createIndex(uri, revisionDescriptor, revisionContent);
  +    	} finally {
  +    		delist(contentIndexer);
  +    	}
  +	}
  +    
       // ------------------------------------------------------ Protected Methods
       
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org