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]>

Reply via email to