DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33683>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33683

           Summary: Import node with content
           Product: Slide
           Version: Nightly
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


This patch allow to sp�cify the content of a revision created in domain.xml or
via an import.

You just need to add a *content* tag into the revision tag. A
NodeRevisionContent is created and filled with the value inside the tag (without
"<![CDATA[" and "]]>").

just something like that:
<objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/files/nodewithcontent">
   <permission action="all" subject="all" inheritable="true"/>
   <revision>
       <property name="getcontenttype" namespace="DAV:">text/plain</property>
       <content><![CDATA[the content of the revision comes here]]></content>
   </revision>
</objectnode>

if there is no content tag, there is no content set (like now).
if revision allready exists... content is ignored like 'propery' tags.

I hope this will be usefull to someone else and be added into next release.

David,                                                                         
                                               Have a nice day.

PS: to test, just apply the patch and add the code frangment into your
domain.xml... and start slide.

NOTE: usability is limited by XML, <![CDATA]]>, and java's bytes array size 
limitations. but it will be nice to setup some small text file into the store
(scripts, configurations files, ... etc)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to