[ 
https://issues.apache.org/jira/browse/GRFT-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christophe Lombart updated GRFT-125:
------------------------------------

    Description: 
Until now, only the path was used to retrieve content and makes references. Of 
course, in some situation UUID becomes more important. Furthermore supporting 
uuid is mandatory if we want to support "reference" jcr type. 

Here is a proposal to support UUID : 

1/ Modify the PersistenceManager API : 
      * add method getObject(String uuid)
      * Is it necessary to overload methods used to manage versions and locks ? 


2/ Review the mapping descriptor in order to map a pojo attribute into the node 
UUID (readonly) : 

      <field-descriptor fieldName="myUuid" uudi="true" />

      From now, it is possible to specify the path attribute and/or the uuid 
attribute in the java classes. Both fields are optional. 
     So, we have to review the classes PersistenceManagerImpl and 
ObjectConverterImpl which depend strongly on the path attribute.

3/ Specify in a class-descriptor the jcr type "mix:referenceable ". This can be 
done with one of the following way : 
       a. In the class descriptor definition : 
                <class-descriptor  className="...." jcrNodeType="..." 
jcrMixinTypes="mix:referencable" >
       b. or in the primary node type definition associated to the java class

4/ It should possible to defined the uuid field in an ancestor class descrptor 
(similar to the path field descriptor)


  was:
Until now, only the path was used to retrieve content and makes references. Of 
course, in some situation UUID becomes more important. Furthermore supporting 
uuid is mandatory if we want to support "reference" jcr type. 

Here is a proposal to support UUID : 

1/ Modify the PersistenceManager API : 
      * add method getObject(String uuid)
      * Is it necessary to overload methods used to manage versions and locks ? 


2/ Review the mapping descriptor in order to map a pojo attribute into the node 
UUID (readonly) : 

      <field-descriptor fieldName="myUuid" uudi="true" />

      From now, it is possible to specify the path attribute and/or the uuid 
attribute in the java classes. Both fields are optional. 
     So, we have to review the classes PersistenceManagerImpl and 
ObjectConverterImpl which depend strongly on the path attribute.

3/ Specify in a class-descriptor the jcr type "mix:referenceable ". This can be 
done with one of the following way : 
       a. In the class descriptor definition : 
                <class-descriptor  className="...." jcrNodeType="..." 
jcrMixinTypes="mix:referencable" >
       b. or in the primary node type definition associated to the java class



> Add UUID support
> ----------------
>
>                 Key: GRFT-125
>                 URL: https://issues.apache.org/jira/browse/GRFT-125
>             Project: Graffito
>          Issue Type: Sub-task
>            Reporter: Christophe Lombart
>         Assigned To: Christophe Lombart
>             Fix For: 1.0-a1-dev
>
>
> Until now, only the path was used to retrieve content and makes references. 
> Of course, in some situation UUID becomes more important. Furthermore 
> supporting uuid is mandatory if we want to support "reference" jcr type. 
> Here is a proposal to support UUID : 
> 1/ Modify the PersistenceManager API : 
>       * add method getObject(String uuid)
>       * Is it necessary to overload methods used to manage versions and locks 
> ? 
> 2/ Review the mapping descriptor in order to map a pojo attribute into the 
> node UUID (readonly) : 
>       <field-descriptor fieldName="myUuid" uudi="true" />
>       From now, it is possible to specify the path attribute and/or the uuid 
> attribute in the java classes. Both fields are optional. 
>      So, we have to review the classes PersistenceManagerImpl and 
> ObjectConverterImpl which depend strongly on the path attribute.
> 3/ Specify in a class-descriptor the jcr type "mix:referenceable ". This can 
> be done with one of the following way : 
>        a. In the class descriptor definition : 
>                 <class-descriptor  className="...." jcrNodeType="..." 
> jcrMixinTypes="mix:referencable" >
>        b. or in the primary node type definition associated to the java class
> 4/ It should possible to defined the uuid field in an ancestor class 
> descrptor (similar to the path field descriptor)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to