You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Bill Oconnor <bo...@plos.org> on 2010/03/26 20:10:05 UTC
Creating new node types in Standalone
Hello,
Newbie question.
I have searched the docs and found the info on CND and loading your own
node types etc. In JR Standalone is there some part of the init process
that looks for a user supplied definitions? Or do I have to modify the
code to load my own file (if so where is this best done)?
Or do I just not know what I'm talking about (very likely)? Or point me
to the documentation if I have missed it.
Thanks,
Bill OConnor
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your
system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do
not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library
of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it
is your responsibility to scan the e-mail and attachments (if any).
Re: Creating new node types in Standalone
Posted by Tomasz Łazarecki <to...@gmail.com>.
Just copy file with definition custom_nodetypes.xml into the
\repository\nodetypes\ folder .Should work.
Regards
Tomasz Łazarecki
2010/4/14 ChadDavis <ch...@gmail.com>
> You can copy the Jackrabbit pattern of using a dedicated servlet to do
> init work. That's what I did. So I added a servlet that I wrote that
> fires on startup and has my logic for loading cnd and xml files for
> node types and even some content ( in the xml ).
>
> On Fri, Mar 26, 2010 at 4:12 PM, Bill Oconnor <bo...@plos.org> wrote:
> > Yes I read that but I was confused as to were exactly that code would
> > exist. Is it something you add to the standalone server? Should I add a
> > command to the cli of standalone to read a specific file?
> >
> > It doesn't look to be available through the Webdav api for example.
> >
> > On Sat, 2010-03-27 at 00:43 +0530, Dhrubo wrote:
> >> Register them programmatically
> >>
> >>
> http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D
> >>
> >> On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <bo...@plos.org>
> wrote:
> >>
> >> > Hello,
> >> >
> >> > Newbie question.
> >> >
> >> > I have searched the docs and found the info on CND and loading your
> own
> >> > node types etc. In JR Standalone is there some part of the init
> process
> >> > that looks for a user supplied definitions? Or do I have to modify the
> >> > code to load my own file (if so where is this best done)?
> >> >
> >> > Or do I just not know what I'm talking about (very likely)? Or point
> me
> >> > to the documentation if I have missed it.
> >> >
> >> > Thanks,
> >> > Bill OConnor
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
> >
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > This email is confidential to the intended recipient. If you have
> received it in error, please notify the sender and delete it from your
> > system. Any unauthorized use, disclosure or copying is not permitted. The
> views or opinions presented are solely those of the sender and do
> > not necessarily represent those of Public Library of Science unless
> otherwise specifically stated. Please note that neither Public Library
> > of Science nor any of its agents accept any responsibility for any
> viruses that may be contained in this e-mail or its attachments and it
> > is your responsibility to scan the e-mail and attachments (if any).
> >
>
Re: Creating new node types in Standalone
Posted by ChadDavis <ch...@gmail.com>.
You can copy the Jackrabbit pattern of using a dedicated servlet to do
init work. That's what I did. So I added a servlet that I wrote that
fires on startup and has my logic for loading cnd and xml files for
node types and even some content ( in the xml ).
On Fri, Mar 26, 2010 at 4:12 PM, Bill Oconnor <bo...@plos.org> wrote:
> Yes I read that but I was confused as to were exactly that code would
> exist. Is it something you add to the standalone server? Should I add a
> command to the cli of standalone to read a specific file?
>
> It doesn't look to be available through the Webdav api for example.
>
> On Sat, 2010-03-27 at 00:43 +0530, Dhrubo wrote:
>> Register them programmatically
>>
>> http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D
>>
>> On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <bo...@plos.org> wrote:
>>
>> > Hello,
>> >
>> > Newbie question.
>> >
>> > I have searched the docs and found the info on CND and loading your own
>> > node types etc. In JR Standalone is there some part of the init process
>> > that looks for a user supplied definitions? Or do I have to modify the
>> > code to load my own file (if so where is this best done)?
>> >
>> > Or do I just not know what I'm talking about (very likely)? Or point me
>> > to the documentation if I have missed it.
>> >
>> > Thanks,
>> > Bill OConnor
>> >
>> >
>> >
>>
>>
>>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your
> system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do
> not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library
> of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it
> is your responsibility to scan the e-mail and attachments (if any).
>
Re: Creating new node types in Standalone
Posted by Dhrubo <dh...@gmail.com>.
Write an util which gets hold of your Repository and adds the custom nodes.
On Sat, Mar 27, 2010 at 3:42 AM, Bill Oconnor <bo...@plos.org> wrote:
> Yes I read that but I was confused as to were exactly that code would
> exist. Is it something you add to the standalone server? Should I add a
> command to the cli of standalone to read a specific file?
>
> It doesn't look to be available through the Webdav api for example.
>
> On Sat, 2010-03-27 at 00:43 +0530, Dhrubo wrote:
> > Register them programmatically
> >
> >
> http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D
> >
> > On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <bo...@plos.org>
> wrote:
> >
> > > Hello,
> > >
> > > Newbie question.
> > >
> > > I have searched the docs and found the info on CND and loading your own
> > > node types etc. In JR Standalone is there some part of the init process
> > > that looks for a user supplied definitions? Or do I have to modify the
> > > code to load my own file (if so where is this best done)?
> > >
> > > Or do I just not know what I'm talking about (very likely)? Or point me
> > > to the documentation if I have missed it.
> > >
> > > Thanks,
> > > Bill OConnor
> > >
> > >
> > >
> >
> >
> >
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This email is confidential to the intended recipient. If you have received
> it in error, please notify the sender and delete it from your
> system. Any unauthorized use, disclosure or copying is not permitted. The
> views or opinions presented are solely those of the sender and do
> not necessarily represent those of Public Library of Science unless
> otherwise specifically stated. Please note that neither Public Library
> of Science nor any of its agents accept any responsibility for any viruses
> that may be contained in this e-mail or its attachments and it
> is your responsibility to scan the e-mail and attachments (if any).
>
--
Thanks ... Dhrubo
My Book - http://www.apress.com/book/view/1430210095
My Blog -
http://www.jtraining.com/blogs/blogger/dhrubo/
LinkedIn - http://www.linkedin.com/in/dhrubo
Re: Creating new node types in Standalone
Posted by Angela Schreiber <an...@day.com>.
Bill Oconnor wrote:
> Yes I read that but I was confused as to were exactly that code would
> exist. Is it something you add to the standalone server? Should I add a
> command to the cli of standalone to read a specific file?
>
> It doesn't look to be available through the Webdav api for example.
no... that's not yet implemented.
see: https://issues.apache.org/jira/browse/JCR-2454
regards
angela
Re: Creating new node types in Standalone
Posted by Bill Oconnor <bo...@plos.org>.
Yes I read that but I was confused as to were exactly that code would
exist. Is it something you add to the standalone server? Should I add a
command to the cli of standalone to read a specific file?
It doesn't look to be available through the Webdav api for example.
On Sat, 2010-03-27 at 00:43 +0530, Dhrubo wrote:
> Register them programmatically
>
> http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D
>
> On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <bo...@plos.org> wrote:
>
> > Hello,
> >
> > Newbie question.
> >
> > I have searched the docs and found the info on CND and loading your own
> > node types etc. In JR Standalone is there some part of the init process
> > that looks for a user supplied definitions? Or do I have to modify the
> > code to load my own file (if so where is this best done)?
> >
> > Or do I just not know what I'm talking about (very likely)? Or point me
> > to the documentation if I have missed it.
> >
> > Thanks,
> > Bill OConnor
> >
> >
> >
>
>
>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your
system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do
not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library
of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it
is your responsibility to scan the e-mail and attachments (if any).
Re: Creating new node types in Standalone
Posted by Dhrubo <dh...@gmail.com>.
Register them programmatically
http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D
On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <bo...@plos.org> wrote:
> Hello,
>
> Newbie question.
>
> I have searched the docs and found the info on CND and loading your own
> node types etc. In JR Standalone is there some part of the init process
> that looks for a user supplied definitions? Or do I have to modify the
> code to load my own file (if so where is this best done)?
>
> Or do I just not know what I'm talking about (very likely)? Or point me
> to the documentation if I have missed it.
>
> Thanks,
> Bill OConnor
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This email is confidential to the intended recipient. If you have received
> it in error, please notify the sender and delete it from your
> system. Any unauthorized use, disclosure or copying is not permitted. The
> views or opinions presented are solely those of the sender and do
> not necessarily represent those of Public Library of Science unless
> otherwise specifically stated. Please note that neither Public Library
> of Science nor any of its agents accept any responsibility for any viruses
> that may be contained in this e-mail or its attachments and it
> is your responsibility to scan the e-mail and attachments (if any).
>
--
Thanks ... Dhrubo
My Book - http://www.apress.com/book/view/1430210095
My Blog -
http://www.jtraining.com/blogs/blogger/dhrubo/
LinkedIn - http://www.linkedin.com/in/dhrubo