Provided an API to get a merged list of broken links between 2 areas,

and what the baseline & latest versions were, as well as the number
of files and links checked in staging.  Made LinkValidationAction 
use the new apis, and annotated the source code so that it's obvious 
what should be done to use the base & latest snapshot version info  
(see "Gav TODO" within LinkValidationAction.java).


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6219 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jon Cox
2007-07-12 03:01:38 +00:00
parent 212a9ce947
commit 32054c773c
5 changed files with 165 additions and 35 deletions

View File

@@ -41,8 +41,9 @@ public interface LinkValidationService
//-------------------------------------------------------------------------
/**
* This function is just a convenience wrapper for calling
* getHrefManifestEntries with statusGTE=400 and statusLTE=599.
* This function is applied to a webapp in staging, and is just a
* convenience wrapper for calling getHrefManifestEntries
* with statusGTE=400 and statusLTE=599.
* <p>
* Note: Files and urls within this list of manifests pertain to
* the latest validated snapshot of staging (which may be
@@ -51,26 +52,27 @@ public interface LinkValidationService
* snapshot as new as possible, automatically.
*/
//-------------------------------------------------------------------------
public List<HrefManifestEntry> getBrokenHrefManifestEntries(
String storeNameOrWebappPath)
throws AVMNotFoundException,
SocketException;
public HrefManifest getBrokenHrefManifest( String webappPath)
throws AVMNotFoundException,
SocketException,
IllegalArgumentException;
//-------------------------------------------------------------------------
/**
* Returns a manifest consisting of just the broken hrefs
* within each file containing one or more broken href.
* The HrefManifestEntry list is sorted in increasing lexicographic
* order by file name. The hrefs within each HrefManifestEntry
* are also sorted in increasing lexicographic order.
* This function is applied to webapps in staging and returns a manifest
* consisting of just the broken hrefs within each file containing
* one or more broken href. The HrefManifestEntry list is sorted in
* increasing lexicographic order by file name. The hrefs within each
* HrefManifestEntry are also sorted in increasing lexicographic order.
*/
//-------------------------------------------------------------------------
public List<HrefManifestEntry> getHrefManifestEntries(
String storeNameOrWebappPath,
int statusGTE,
int statusLTE)
throws AVMNotFoundException,
SocketException;
public HrefManifest getHrefManifest( String webappPath,
int statusGTE,
int statusLTE)
throws AVMNotFoundException,
SocketException,
IllegalArgumentException;
//-------------------------------------------------------------------------
@@ -92,6 +94,16 @@ public interface LinkValidationService
LinkValidationAbortedException;
//-------------------------------------------------------------------------
/**
* This function is applied to difference objects created by comparing
* webapps in an author or workflow store to the staging area they
* overlay.
*/
//-------------------------------------------------------------------------
public HrefManifest getBrokenHrefManifest( HrefDifference hdiff )
throws AVMNotFoundException,
SocketException;
//-------------------------------------------------------------------------
/**