jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunild <sunil.dh...@coreobjects.com>
Subject Re: Regarding document versioning
Date Thu, 31 Dec 2009 13:14:30 GMT
sunild wrote:
> Hi Abhi,
>
> Please refer the api of javax.jcr.Node @ 
> http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Item.html
>
> Item is parent Interface of Node.
>
> For your use isNew(), isModified() and isSame(Item item)
>
> Before doing all these operations, remember you need to do 
> node.checkout(), since you are working on versionable nodes.
>
> Regards,
> Sunil Dhage
>
>
> abhishek reddy wrote:
>> hi sunild,
>>
>> thanks for the reply.... but my requirement is different
>> iam using subversion plugin with netbeans ........
>> In case of netbeans when a file is modified, its color will be chnaged to
>> blue automatically.........indicating that this file is modified and need to
>> be committed to the repository. Similarly, when a new file is added, the
>> file color is changed to green (which indicates that this file is modified
>> and need to be commited to the repository)...
>>
>> *Here the point to be noticed is, file changes are recognised then and
>> there.........*
>> *
>> I want to implement similar kind of mechanism with jackrabbit, i.e the
>> ability to recognise the files when they are modified or added newly
>> automatically.
>>
>> Is there any EVENT kind of mechanism, i.e when a file is added/modified an
>> event is raised.....
>> *
>>
>>
>>
>>
>> On Thu, Dec 31, 2009 at 12:13 PM, sunild <sunil.dhage@coreobjects.com>wrote:
>>
>>   
>>> Hi Abhi,
>>>
>>> To find the versioned files, sure you need to go through the below
>>> mentioned stuff.  But repository.xml will help you much.
>>>
>>> Just read line-by-line repository.xml.  You will come to know the exact
>>> location of the files.
>>>
>>> One more thing, it depends on the PersistenceManager being used.
>>>
>>> Look for tags """Versioning"""  and """FileSystem""".
>>>
>>>
>>> François Cassistat wrote:
>>>
>>>     
>>>> You'll need to read more about the JCR specification (that is the standard
>>>> from JackRabbit). Look for the jsr170-1.0.pdf file in the archive
>>>> downloadable here :
>>>> http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html
>>>>
>>>> And read chapter 4, 6, 7 and 8 (this reads fast, don't worry, just skip
>>>> details when it seems too obvious). Then you'll be a JCR-API expert ;)
>>>>
>>>> All the specification about versionning in JCR here in 8.2.
>>>>
>>>> Good luck,
>>>>
>>>>
>>>> Frank
>>>>
>>>>
>>>> Le 2009-12-29 à 8:35 AM, abhishek reddy a écrit :
>>>>
>>>>
>>>>
>>>>       
>>>>> hi,
>>>>>
>>>>> thanks for the link, i have tried its working fine
>>>>>
>>>>> can you tell me where the versioned files will be stored?
>>>>> also tell me is there any way, to find out whether the documents are
>>>>> modified or not and accordingly versioning them...
>>>>>
>>>>> thanks again.
>>>>>
>>>>> On Tue, Dec 29, 2009 at 4:55 PM, sunild <sunil.dhage@coreobjects.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>         
>>>>>> Hi,
>>>>>>
>>>>>> Try running one first-hops from the jackrabbit website.
>>>>>> Decide the content repository structure.  Then apply mix:versionable
>>>>>> node
>>>>>> type to the nodes, which need to be versioned.
>>>>>>
>>>>>> Try to search through previous postings.  You will get all of your
>>>>>> questions answered in the jackrabbit previous postings only.
>>>>>>
>>>>>> BR/
>>>>>> Sunil Dhage.
>>>>>>
>>>>>>
>>>>>> abhishek reddy wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>           
>>>>>>> thanks for the reply........
>>>>>>> I wll just go through them........
>>>>>>> Requirement:
>>>>>>> In a business process, the electronic documents
>>>>>>> (doc,text,excel,pdf,images
>>>>>>> etc) will move from person to person.....and there is a scope
that
>>>>>>> contents
>>>>>>> of docs might change from the user to user......so, when these
docs are
>>>>>>> modified they have to go as revisions to the next user, keepin
the
>>>>>>> original
>>>>>>> doc as is......so, that we have track of changes made to the
document.
>>>>>>> can you please help me ragrding this.......how can i make use
of
>>>>>>> jackrabbit
>>>>>>> in this case.
>>>>>>>
>>>>>>> Note: I dont want to apply versioning on the entire application,
rather
>>>>>>> on
>>>>>>> particular files.......in my case docs included in the business
>>>>>>> process.
>>>>>>>
>>>>>>> On Tue, Dec 29, 2009 at 1:15 PM, Mathieu Baudier <mbaudier@argeo.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>             
>>>>>>>> how to implement "Document versioning" concept . I have to
maintain
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>>>                 
>>>>>>>> various
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>>> documents and version them. If a document is modified,
it has to be
>>>>>>>>> saved
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>> as
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>>> a new version, keeping the original document as is. I
have to version
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>> only
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>>> some "x" documents. Is this possible with Jackrabbit?
If possible
>>>>>>>>> please
>>>>>>>>> guide me how to start?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                 
>>>>>>>> This page helped me to get started:
>>>>>>>> http://wiki.apache.org/jackrabbit/ExamplesPage#Versioning_Basics
>>>>>>>>
>>>>>>>> then you apply these concepts to "file" nodes:
>>>>>>>> http://wiki.apache.org/jackrabbit/ExamplesPage#Importing_a_File
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>               
>>>>>>>
>>>>>>>
>>>>>>>             
>>>>>>           
>>>>> --
>>>>> Abhishek
>>>>>
>>>>>
>>>>>         
>>>>       
>>>     
>>
>>
>>   
>


Mime
View raw message