Point checkin.

Added APIs to allow broken links due to deletions & new/modified files in a
workflow to be detected via sync service (differencing).   Not configured
as transactions yet, nor has much testing been done, but things are starting
to shape up.   Now also detecting broken IMG tags (as well as A tags).
Also, the linkvalidation service now has its own file extension excluder bean.
Eventually the old APIs will go away, but I'm leaving them in there for
now to make life simple.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jon Cox
2007-06-16 04:27:01 +00:00
parent 1bd38892b4
commit e59e2ab976
8 changed files with 237 additions and 79 deletions

View File

@@ -51,7 +51,7 @@ public class LinkValidationReport implements Serializable
private Throwable error;
private List<String> brokenFiles;
private Map<String, HrefManifest> brokenLinksByFile;
private Map<String, HrefManifestEntry> brokenLinksByFile;
private static final long serialVersionUID = 7562964706845609991L;
@@ -62,7 +62,7 @@ public class LinkValidationReport implements Serializable
* of files containing broken links
* @param manifests The manifest of broken links and files
*/
public LinkValidationReport(HrefValidationProgress status, List<HrefManifest> manifests)
public LinkValidationReport(HrefValidationProgress status, List<HrefManifestEntry> manifests)
{
this.numberFilesChecked = status.getFileUpdateCount();
this.numberLinksChecked = status.getUrlUpdateCount();
@@ -71,10 +71,10 @@ public class LinkValidationReport implements Serializable
this.brokenFiles = new ArrayList<String>(manifests.size());
// create a map of broken links by file.
this.brokenLinksByFile = new HashMap<String, HrefManifest>(manifests.size());
this.brokenLinksByFile = new HashMap<String, HrefManifestEntry>(manifests.size());
// build the required list and maps
for (HrefManifest manifest : manifests)
for (HrefManifestEntry manifest : manifests)
{
String fileName = manifest.getFileName();
this.brokenFiles.add(fileName);
@@ -125,7 +125,7 @@ public class LinkValidationReport implements Serializable
{
List<String> links = null;
HrefManifest manifest = this.brokenLinksByFile.get(file);
HrefManifestEntry manifest = this.brokenLinksByFile.get(file);
if (manifest != null)
{
links = manifest.getHrefs();