The question is... Is there a way to retrieve a content object/URI (or list thereof) based on metadata?
If this is not currently implemented in the Slide Kernel API, perhaps it should be. I would volunteer to do this. Thx,Steve -----Original Message----- From: Tarkenton, Daniel S. [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 3:07 PM To: '[EMAIL PROTECTED]' Subject: Absolutely need a uri to retrieve content from slide? Bottom line: Do I absolutely need a URI to retrieve a NodeRevisionContent object from slide using the low level api (non-webdav)? I have the low level api of slide (non webdav related) configured (thru Domain.xml) to use the slidestore.reference.JDBCDescriptorsStorehold class for the revisiondescriptorsstore, revisiondescriptorstore, securitystore, and lockstore. My content store uses the slidestore.reference.FileContentStore to store my content on the local filesystem. I am using MySQL as the database. My question is do I absoultely need a uri to retrieve a NodeRevisionDescriptors object from slide? Do I _have_ to go through the Content object to retrieve the NodeRevisionContent? The following java method shows the only way I know how to retrieve content from the CMS: ################### begin method ################################################# public NodeRevisionContent readFile() throws Exception { NamespaceAccessTokennsAccessToken = Domain.accessNamespace(new SecurityToken(new String()), "mynamespace"); CredentialsToken credToken = new CredentialsToken(new String("root")); SlideToken slideToken = new SlideTokenImpl(credToken); Structure structureHelper = nsAccessToken.getStructureHelper(); Content contentHelper = nsAccessToken.getContentHelper(); SubjectNode rootUser = (SubjectNode)structureHelper.retrieve(slideToken, "/users/root"); NodeRevisionDescriptors revDescriptors = contentHelper.retrieve(slideToken, "files/test.xml"); NodeRevisionDescriptor revDescriptor = contentHelper.retrieve(slideToken, revDescriptors); return contentHelper.retrieve(slideToken, revDescriptors, revDescriptor); } ################### end method ################################################## Looking through the Content interface's API, it seems I have to first retrieve a NodeRevisionDescriptors object, then using that very same descriptors object I retrieve a NodeRevisionDescriptor object, then using both the descriptor and descriptors object I can retrieve the NodeRevisionContent. This is all done throught the Content interface. I was hoping I could query the metadata in the database based on some properties then use that metadata to access the URIs of the files I wish to retrieve. Thanks for your help. -Dan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
