Hi,
Well no, I want to store it in the slide nodestore. The example program has
no entry for nodestore.  It has entry only for the contentstore. I have made
an entry for the nodestore in the domain.xml. Please look at the attached
domain.xml. Now my problem is storing the descriptor information in the
nodestore.

Actually I am trying to build a versioning system and I want to store the
versioning information into the db and content into a file system. I am able
to store the content into the filesystem.

Hope you can help.

Thanx & regards
-Deepak


> -----Original Message-----
> From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 4:32 PM
> To: Slide Users Mailing List
> Subject: RE: Construction of Uri Object
>
>
>
>
>
> On Fri, 26 Jul 2002, A.N Deepak wrote:
>
> > Hi,
> > Well i am using the same example. I need to store the revsision
> descriptor
> > information into a file or db store I am trying to figure how
> to do that ?
>
> If I understand you right, you want to write the information of the
> revision descriptor in a separate db, and not into the NodeStore of
> Slide?! And how hit this the 'create' method of the content helper?
>
> > Any ideas ???
>
>    NodeProperty property;
>    for(Enumeration e = revisionDescriptor.enumerateProperties();
>        e.hasMoreElements();) {
>
>        property = (NodeProperty)e.nextElement();
>        myobject.mymethod(property.getNamespace(), property.getName(),
>                          property.getValue().toString());
>    }
>
> Stephan Michels.
>
> >
> > > -----Original Message-----
> > > From: Stephan Michels [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, July 26, 2002 3:45 PM
> > > To: Slide Users Mailing List
> > > Subject: Re: Construction of Uri Object
> > >
> > > On Fri, 26 Jul 2002, A.N Deepak wrote:
> > >
> > > >
> > > > Hi,
> > > > Can anybody let me know how to construct the Uri object. I need
> > > to call the
> > > > store.createRevisionDescriptor(Uri uri, NodeRevisionDescriptor
> > > > revisionDescriptor).
> > > > The constrcutor of the Uri(Namespace namespace,java.lang.String
> > > uri) needs
> > > > a Namespace object and Namespace Constructor is private. Where
> > > do i get the
> > > > namespace object from ??
> > > >
> > > > Can anybpdy please help.
> > >
> > > Why don't you try the following example from
> > > src/examples/version/Test.java:
> > >
> > >
> > >    // Now creating some revisions
> > >    NodeRevisionDescriptor revisionDescriptor =
> > >        new NodeRevisionDescriptor(0);
> > >
> > >    revisionDescriptor.setProperty("revision", "1");
> > >    content.create(slideToken, "/test", revisionDescriptor, null);
> > >
> > >
> _______________________________________________________________________
> > >          Stephan Michels               EMail: [EMAIL PROTECTED]
> > >          ICQ: 115535699                Tel: +49-030-314-21583
> > >
> ----+----|----+----|----+----|----+----|----+----|----+----|----+----|-|
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
<?xml version="1.0"?>

<slide logger="org.apache.slide.util.logger.SimpleLogger" logger-level="6" default="slide">

<!--
logger
~~~~~~
org.apache.slide.util.logger.SimpleLogger 
   default logger with 1 log level
log4j.Log4jLogger 
   logger with fine granularity
   see http://jakarta.apache.org/log4j/

logger-level 
~~~~~~~~~~~~
0 EMERGENCY
1 CRITICAL
2 ERROR
4 WARNING
6 INFO
7 DEBUG
-->

  <namespace name="ConfigArchive">
<!-- ### Memory Configuration ###
     The following memory configuration uses the MemoryDescriptorsStore
     for node,security,locks and revisions. For content the FileContentStore
     is used. Content is reset before start.
-->
    <definition>
      <store name="memory">
        <nodestore classname="slidestore.reference.FileContentStore">
	    <parameter name="rootpath">revisionstore</parameter>
          <parameter name="version">true</parameter>
          <parameter name="resetBeforeStarting">false</parameter>
	
        </nodestore>
        <securitystore>
          <reference store="nodestore" />
        </securitystore>
        <lockstore>
          <reference store="nodestore" />
        </lockstore>
        <revisiondescriptorsstore>
          <reference store="nodestore" />
        </revisiondescriptorsstore>
        <revisiondescriptorstore>
          <reference store="nodestore" />
        </revisiondescriptorstore>
        <contentstore classname="slidestore.reference.FileContentStore">
          <parameter name="rootpath">Archivestore</parameter>
          <parameter name="version">true</parameter>
          <parameter name="resetBeforeStarting">false</parameter>
        </contentstore>
      </store>
      <scope match="/" store="memory" />
    </definition>


    <configuration>
      <default-action>/actions</default-action>
      <userspath>/users</userspath>
      <filespath></filespath>
      <parameter name="dav">true</parameter>
      <parameter name="standalone">true</parameter>
    </configuration>
    
    <data>
      
      <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
        
        <permission action="/actions" subject="/users/root"/>
        
        <!-- /users represents the unauthenticated user -->
        
        <objectnode classname="org.apache.slide.structure.SubjectNode" 
         uri="/users">
          
          <!-- /users/root represents the administrator -->
          
          <objectnode classname="org.apache.slide.structure.SubjectNode" 
           uri="/users/root">
          </objectnode>
          
          <!-- /users/guest represents an authenticated guest user -->
          
          <objectnode classname="org.apache.slide.structure.SubjectNode" 
           uri="/users/guest">
          </objectnode>
          
        </objectnode>
        
        <objectnode classname="org.apache.slide.structure.ActionNode" 
         uri="/actions">
        </objectnode>
        
      </objectnode>
      
    </data>

    
  </namespace>
  
</slide>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to