cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a list of updations done to the staging sandbox?

himanshu
Champ in-the-making
Champ in-the-making
Hi,

I need to write a Java backed web script that returns a list of files/folders that have been 1. Added, 2. Modified, 3. Deleted
I found the following two ways of doing it:
1. Lucene Search: But this method does not provide any information about the deleted content.

2. Difference between two revisions: Using this method, I am not able to differentiate if the content has been added/modified or deleted. I was wondering if there is any isDeleted flag available in Staging Sandbox as in case of User's Sandbox.

Thanks in advance.

Regards
~~Himanshu Seth~~

http://www.IntelliGrape.com
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
The way deployment works it is to look at the version of each asset within each revision.

Old,   New
does not exist, something - this is an add.
something, does not exist - this is a delete
something, something else - this is an update.

janv
Employee
Employee
You could also take a look at AvmCompare.java, as an example (available on HEAD, under …/root/modules/avm-compare/…). See also: http://wiki.alfresco.com/wiki/AVM_Compare_AMP

Thanks,
Jan

himanshu
Champ in-the-making
Champ in-the-making
Hi Jan,

Thanks for showing the way and the link was very helpful Smiley Happy.

Just going through the wiki page, i just got a little confused. What i understand about the version number for nodes is that the '-1' version denotes the current staging version. But the wiki page referred the version as '-2' for the current version of the staging sandbox.
http://wiki.alfresco.com/wiki/AVM_Compare_AMP#Versioning_aliases

Kindly clarify…

Thanks once again for all the help..
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.