jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: default value for initializing date property
Date Wed, 22 Jun 2005 10:26:33 GMT
On 6/21/05, Brian Moseley <bcm@osafoundation.org> wrote:
> Stefan Guggisberg wrote:
> 
> > what i have in mind is a NodeTypeInstanceHandler callback interface
> > that can be registered for a specific node type. there are several
> > open questions/problems though, e.g. portability, xml format of a
> > node type with dynamic default values, dynamic values that depend
> > on other values, method signatures of the callbck interface etc etc
> > however it's on my todo list.
> 
> ok, thanks. any suggestions for a workaround in the
> meantime? i suppose i could make the property not protected
> and actually set it when i create the node.

yes, that would IMO be an acceptable workaround.

> 
> is there any provision in the spec for modifying registered
> node types, sort of like ALTER TABLE in sql? (sorry, don't
> have the spec handy, will check when i get to the office.)
> that would allow me to use the hack i suggest above and then
> adapt gracefully once dynamic default values are supported.

node type management has been intentionally left out in 
version 1.0 of the spec. we plan to cover node type mgmt
(amongst other features such as access control mgmt etc)
in the next version of the spec (probably 1.1).

cheers
stefan

>

Mime
View raw message