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]