mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -22,34 +22,33 @@
|
||||
*
|
||||
*
|
||||
* Author Jon Cox <jcox@alfresco.com>
|
||||
* File HrefManifest.java
|
||||
* File HrefManifestEntry.java
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
package org.alfresco.linkvalidation;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Contains a (possibly filtered) list of the hrefs within a file.
|
||||
* Common uses of this class are to fetch the links in a web page
|
||||
* or just the broken ones (i.e.: response status 400-599).
|
||||
*/
|
||||
public class HrefManifest implements Serializable
|
||||
public class HrefManifest
|
||||
{
|
||||
static final long serialVersionUID = 6532525229716576911L;
|
||||
protected List<HrefManifestEntry> manifest_entries_;
|
||||
|
||||
protected String file_;
|
||||
protected List<String> hrefs_;
|
||||
|
||||
public HrefManifest( String file,
|
||||
List<String> hrefs
|
||||
)
|
||||
public HrefManifest()
|
||||
{
|
||||
file_ = file;
|
||||
hrefs_ = hrefs;
|
||||
manifest_entries_ = new ArrayList<HrefManifestEntry>();
|
||||
}
|
||||
|
||||
public String getFileName() { return file_; }
|
||||
public List<String> getHrefs() { return hrefs_;}
|
||||
public List<HrefManifestEntry> getManifestEntries() { return manifest_entries_;}
|
||||
|
||||
synchronized void add( HrefManifestEntry entry )
|
||||
{
|
||||
manifest_entries_.add( entry );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user