public class DupSimUrlChecker
extends java.lang.Object
Constructor and Description |
---|
DupSimUrlChecker(java.lang.String referenceUrl,
java.lang.String collection,
javax.servlet.ServletContext servletContext)
Constructor for the DupSimUrlChecker object, requiring ServletContext.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDateString()
Gets the dateString attribute of the DupSimUrlChecker class
|
java.util.List |
getDups()
Returns a list records in "collection" that contain either a PrimaryURL or
MirrorURL that is a dupliate of the provided url.
|
java.util.List |
getSims()
Returns a list of DupSim instances that represent records in "collection"
that contain either a PrimaryURL or MirrorURL similar to the
provided url.
|
static java.util.List |
makeMirrorDupSims(ResultDocList results)
Create a list of DupSim instances representing each of the MirrorUrls for
each of the provided ResultDocs.
|
public DupSimUrlChecker(java.lang.String referenceUrl, java.lang.String collection, javax.servlet.ServletContext servletContext) throws java.lang.Exception
servletContext
- referenceUrl
- The url for which we look for duplicates and similar
urlscollection
- The collection we look injava.lang.Exception
- if required helper objects cannot be found in the
servlet context initialized.public java.util.List getDups()
public java.util.List getSims()
public static java.util.List makeMirrorDupSims(ResultDocList results)
results
- An array of ResultDocs from which to extract the MirrorUrl
valuespublic static java.lang.String getDateString()