[VOTE] Add DMB#getVersion():String method

7 messages Options
Embed this post
Permalink
Marius Dumitru Florea

[VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
Hi devs,

I propose we add the following method to DocumentModelBridge:

/**
  * @return a string identifying the current version of this document
  */
String getVersion();

I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
to use components and I want to drop the dependency on xwiki-core.
Getting the document version is the last thing that stops me.

Here my +1.

Thanks,
Marius
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Sergiu Dumitriu-2

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
On 10/26/2009 05:38 PM, Marius Dumitru Florea wrote:
> Hi devs,
>
> I propose we add the following method to DocumentModelBridge:
>
> /**
>    * @return a string identifying the current version of this document
>    */
> String getVersion();

+0.75

>
> I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
> to use components and I want to drop the dependency on xwiki-core.
> Getting the document version is the last thing that stops me.
>
> Here my +1.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
tmortagne

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
In reply to this post by Marius Dumitru Florea
+1

On Mon, Oct 26, 2009 at 17:38, Marius Dumitru Florea
<[hidden email]> wrote:

> Hi devs,
>
> I propose we add the following method to DocumentModelBridge:
>
> /**
>  * @return a string identifying the current version of this document
>  */
> String getVersion();
>
> I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
> to use components and I want to drop the dependency on xwiki-core.
> Getting the document version is the last thing that stops me.
>
> Here my +1.
>
> Thanks,
> Marius
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Asiri Rathnayake

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
In reply to this post by Marius Dumitru Florea
+1

- Asiri

On Mon, Oct 26, 2009 at 10:08 PM, Marius Dumitru Florea <
[hidden email]> wrote:

> Hi devs,
>
> I propose we add the following method to DocumentModelBridge:
>
> /**
>  * @return a string identifying the current version of this document
>  */
> String getVersion();
>
> I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
> to use components and I want to drop the dependency on xwiki-core.
> Getting the document version is the last thing that stops me.
>
> Here my +1.
>
> Thanks,
> Marius
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
Marius Dumitru Florea

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
In reply to this post by Sergiu Dumitriu-2
Sergiu Dumitriu wrote:

> On 10/26/2009 05:38 PM, Marius Dumitru Florea wrote:
>> Hi devs,
>>
>> I propose we add the following method to DocumentModelBridge:
>>
>> /**
>>    * @return a string identifying the current version of this document
>>    */
>> String getVersion();
>

> +0.75

Or, I could add a DocumentVersion class in the bridge and instead have:

/**
  * @return the document version
  */
DocumentVersion getVersion();

In this case we have to decide how to create a DocumentVersion instance
and how to serialize it. The easiest way is:

1) new DocumentVersion(String) + DocumentVersion#toString()

and the elaborate way is:

2) DocumentVersionFactory + DocumentVersionSerializer

WDYT? Is it worth to add the DocumentVersion class now when we don't
have a real need?

Thanks,
Marius

>
>> I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
>> to use components and I want to drop the dependency on xwiki-core.
>> Getting the document version is the last thing that stops me.
>>
>> Here my +1.
>
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
tmortagne

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
On Wed, Oct 28, 2009 at 08:28, Marius Dumitru Florea
<[hidden email]> wrote:

> Sergiu Dumitriu wrote:
>> On 10/26/2009 05:38 PM, Marius Dumitru Florea wrote:
>>> Hi devs,
>>>
>>> I propose we add the following method to DocumentModelBridge:
>>>
>>> /**
>>>    * @return a string identifying the current version of this document
>>>    */
>>> String getVersion();
>>
>
>> +0.75
>
> Or, I could add a DocumentVersion class in the bridge and instead have:
>
> /**
>  * @return the document version
>  */
> DocumentVersion getVersion();
>
> In this case we have to decide how to create a DocumentVersion instance
> and how to serialize it. The easiest way is:
>
> 1) new DocumentVersion(String) + DocumentVersion#toString()
>
> and the elaborate way is:
>
> 2) DocumentVersionFactory + DocumentVersionSerializer
>
> WDYT? Is it worth to add the DocumentVersion class now when we don't
> have a real need?

I would say adding something we don't need in a temporary bridge is
not very usefull, let put this for new model.

>
> Thanks,
> Marius
>
>>
>>> I need it for the WYSIWYG sync plug-in service. I'm refactoring the code
>>> to use components and I want to drop the dependency on xwiki-core.
>>> Getting the document version is the last thing that stops me.
>>>
>>> Here my +1.
>>
> _______________________________________________
> devs mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/devs
>



--
Thomas Mortagne
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs
vmassol

Re: [VOTE] Add DMB#getVersion():String method

Reply Threaded More More options
Print post
Permalink
In reply to this post by Marius Dumitru Florea

On Oct 28, 2009, at 8:28 AM, Marius Dumitru Florea wrote:

> Sergiu Dumitriu wrote:
>> On 10/26/2009 05:38 PM, Marius Dumitru Florea wrote:
>>> Hi devs,
>>>
>>> I propose we add the following method to DocumentModelBridge:
>>>
>>> /**
>>>   * @return a string identifying the current version of this  
>>> document
>>>   */
>>> String getVersion();

+0

>>
>
>> +0.75
>
> Or, I could add a DocumentVersion class in the bridge and instead  
> have:
>
> /**
>  * @return the document version
>  */
> DocumentVersion getVersion();
>
> In this case we have to decide how to create a DocumentVersion  
> instance
> and how to serialize it. The easiest way is:
>
> 1) new DocumentVersion(String) + DocumentVersion#toString()
>
> and the elaborate way is:
>
> 2) DocumentVersionFactory + DocumentVersionSerializer
>
> WDYT? Is it worth to add the DocumentVersion class now when we don't
> have a real need?

I think I prefer the String for the reason Thomas mentioned (ie that  
this is just a bridge and not meant to be our model - I'll restart the  
discussion about the Model API).

Thanks
-Vincent

>
> Thanks,
> Marius
>
>>
>>> I need it for the WYSIWYG sync plug-in service. I'm refactoring  
>>> the code
>>> to use components and I want to drop the dependency on xwiki-core.
>>> Getting the document version is the last thing that stops me.
>>>
>>> Here my +1.
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs