Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 86143 invoked from network); 10 Jan 2006 13:05:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jan 2006 13:05:40 -0000 Received: (qmail 9130 invoked by uid 500); 10 Jan 2006 13:05:34 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 9119 invoked by uid 99); 10 Jan 2006 13:05:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 05:05:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.104.154.111] (HELO relay.gossinteractive.com) (212.104.154.111) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2006 05:05:34 -0800 Received: from delboy.lan.gossinteractive.com ([10.10.10.240]) by relay.gossinteractive.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 10 Jan 2006 13:08:28 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Parameterized default values for node properties X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Tue, 10 Jan 2006 13:05:11 -0000 Message-ID: <8D07567F3496FA4797E37564D4B4DC0EA5AE79@delboy.lan.gossinteractive.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Parameterized default values for node properties Thread-Index: AcYV4s3PI+iTFSXkR/2OiZQO5KAAQwAA5lJg From: "Paul Skinner" To: X-OriginalArrivalTime: 10 Jan 2006 13:08:28.0243 (UTC) FILETIME=[F28A0230:01C615E6] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Stefan=20 > -----Original Message----- > From: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com]=20 > Sent: 10 January 2006 12:38 > To: jackrabbit-dev@incubator.apache.org > Subject: Re: Parameterized default values for node properties >=20 > hi paul, >=20 > this issue has been discussed in an earlier thread: > http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/2430 >=20 > cheers > stefan >=20 > On 1/10/06, Paul Skinner wrote: > > Hi all, > > > > In the JSR170 1.0 spec, 6.7.13 PropertyDefinition.getDefaultValues() > > states: > > > > 'If null is returned, then the property has no fixed default value.=20 > > This does not exclude the possibility that the property=20 > still assumes=20 > > some value automatically, but that value may be parameterized (for=20 > > example, "the current date") and hence not expressible as a=20 > single fixed value. > > In particular, this must be the case if isAutoCreated=20 > returns true and=20 > > this method returns null.' > > > > > > I would like to define a protected and auto-created=20 > property of a date=20 > > type. This property needs to be set to the current date on=20 > creation,=20 > > but I do not know how to use parameterized default values. > > > > Any help would be appreciated. > > > > Thanks. > > > > > > GOSS is a leading Enterprise Content Management provider.=20 > GOSS ECM Suite delivers Web Content Management, EDRMS, Email=20 > Management, Digital Asset Management, Capture and IDR and=20 > Hosted services. > > > > GOSS a leading UK supplier of Enterprise Content=20 > Management solutions has won a place in the Deloitte=20 > Technology Fast 50 Awards 2005 for the second consecutive year. > > > > This email contains proprietary information, some or all of=20 > which may be legally privileged. It is for the intended=20 > recipient only. If an addressing or transmission error has=20 > misdirected this email, please notify the author by replying=20 > to this email. If you are not the intended recipient you may=20 > not use, disclose, distribute, copy, print or rely on this email. > > > > > > > > Email transmission cannot be guaranteed to be secure or=20 > error free, as information may be intercepted, corrupted,=20 > lost, destroyed, arrive late or incomplete or contain=20 > viruses. This email and any files attached to it have been=20 > checked with virus detection software before transmission.=20 > You should nonetheless carry out your own virus check before=20 > opening any attachment. GOSS Interactive Ltd accepts no=20 > liability for any loss or damage that may be caused by=20 > software viruses. > > > > > > > > >=20