Hi,
    The following is an extract from my domain.xml :
----------------------------------------
<definition>
<store name="memory">
<nodestore classname="slidestore.reference.JDBCDescriptorsStore">
<parameter name="driver">oracle.jdbc.driver.OracleDriver</parameter>
<parameter name="url">oracle:thin:pm2:[EMAIL PROTECTED]:1521:pm2</parameter>
<parameter name="user">pm2</parameter>
<parameter name="password">pm2</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">C:\\project\\j2ee\\home\\filestore</parameter>
<parameter name="version">true</parameter>
</contentstore>
</store>
<scope match="/" store="memory" />
</definition>
----------------------------------------

Which I shows that I am using my local filesystem for ContentStore and the
rest goes to Oracle. Now below is the code I used to try and add a new
folder via the Slide API :
----------------------------------------
NamespaceAccessToken nat = Domain.accessNamespace(new SecurityToken(""),
"slide");
SlideToken slideToken = new SlideTokenImpl(new CredentialsToken("john"));
Structure struct = nat.getStructureHelper();
Content content = nat.getContentHelper();
nat.begin();
struct.create(slideToken, new SubjectNode(), "/slideTestFolder");    //
Create entries to the database
content.create(slideToken, "/slideTestFolder", true);
// Create the folder
nat.commit();
----------------------------------------

I noted that struct.create did create entries into the database as I
expected.
But for content.create instead of creating the folder in my filesystem, only
an entry was inserted to the database. The following row was inserted into
the table REVISIONS : URI="/slideTestFolder", ISVERSIONED="1",
INITIALREVISION="1.0".

Is my expectation of what content.create does wrong or did I miss out a
step? Since FileContentStore's rootpath was specified in my domain.xml I was
expecting the create statement to create the folder there, someone please
let me know my mistake. Thank you.

Russ


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

Reply via email to