[Hippo-cms7-user] Re: [HippoCMS-svn] [25642] hippo-cms7/cms/trunk: HREPTWO-4802 Add support for hippo: text property on hippo resource nodes.

Ard Schrijvers a.schrijvers at onehippo.com
Tue Dec 7 13:08:16 CET 2010


On Tue, Dec 7, 2010 at 12:52 PM, Jeroen Reijn <j.reijn at onehippo.com> wrote:
> Good to have the attention now :-)
> @Frank I guess you are talking about the use of ValueFactory in my patch? I
> changed it to using the ValueFactory because setProperty(String name,
> InputStream value) is deprecated (since JCR 2.0) and It mentioned me to  use
> setProperty(String, Binary) instead.
> On Tue, Dec 7, 2010 at 12:41 PM, Frank van Lankvelt
> <f.vanlankvelt at onehippo.com> wrote:
>>
>> >> hmm, other thing I notice is the use of the ValueFactoryImpl.
>> >> Is it better to use these for binary properties?
>> > good point... Why not use the plain jsr calls instead of using
>> > jackrabbit internals?
>> >
>> > Property#setValue(InputStream)
>> >
>> > should be good enough I assume?
>
> @Ard This method is also deprecated.

good point, I didn't know that. But, still there is not reason to rely
on a Impl class. As Frank mentioned, you can better use:

javax.jcr.Session#getValueFactory()#createBinary(InputStream)

This way, you achieve the same by relying on plain jcr 2.0

Regards Ard

>
>>
>> >
>> and there is always a ValueFactory available under
>> Session#getValueFactory.
>> (e.g. useful when adding values to a multi-valued property)
>>
>> cheers, Frank
>>
>>
>> > Regards Ard
>> >
>> >>
>> >> cheers, Frank
>> >>
>> >>
>> > _______________________________________________
>> > Hippo-cms7-user mailing list and forums
>> > http://www.onehippo.org/cms7/support/forums.html
>> >
>>
>>
>>
>> --
>> Hippo Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31
>> (0)20 522 4466
>> USA  • San Francisco 755 Baywood Drive, Second Floor •  Petaluma, CA.
>> 94954 •  +1 877 414 4776 (toll free)
>> Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC
>> H2T 1S5  •  +1 (514) 316 8966
>> www.onehippo.com  •  www.onehippo.org  •  info at onehippo.com
>> ________________________________________________________________
>> This e-mail may be privileged and/or confidential, and the sender does
>> not waive any related rights and obligations. Any distribution, use or
>> copying of this e-mail or the information it contains by other than an
>> intended recipient is unauthorized. If you received this e-mail in
>> error, please advise me (by return e-mail or otherwise) immediately.
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>
>
>
> --
> Hippo
> ----------------------------------------------------------------------------------------------
> Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
> 4466
> USA  • 755 Baywood Drive Second Floor  •  Petaluma CA. 94954
> •  +1 877 414-4776 (toll free)
> Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC
> H2T 1S5  •  +1 (514) 316 8966
> ----------------------------------------------------------------------------------------------
> www.onehippo.com  •  www.onehippo.org  •  info at onehippo.com
> ----------------------------------------------------------------------------------------------
>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
>



-- 
Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522 4466
USA  • San Francisco 755 Baywood Drive, Second Floor •  Petaluma, CA.
94954 •  +1 877 414 4776 (toll free)
Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC
H2T 1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  info at onehippo.com
________________________________________________________________
This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.



More information about the Hippo-cms7-user mailing list