|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.linkvalidation.LinkValidationReport
public class LinkValidationReport
Object representing the result of a link validation action being executed. This object combines the results of the multiple service calls required to detect broken links and retrieve them.
This object is then typically added to the store being checked as a store property.
Constructor Summary | |
---|---|
LinkValidationReport(java.lang.String store,
java.lang.String webapp,
HrefManifest manifest,
int noFilesChecked,
int noLinksChecked,
int maxNumberLinksInReport)
Constructs a link validation report from the results of a check of the staging area. |
|
LinkValidationReport(java.lang.String store,
java.lang.String webapp,
java.lang.Throwable error)
Constructs a link validation report from an error that occurred |
Method Summary | |
---|---|
int |
getBaseSnapshotVersion()
|
java.util.List |
getBrokenLinksForFile(java.lang.String file)
|
java.util.Date |
getCheckCompletedAt()
|
java.lang.Throwable |
getError()
|
java.util.List |
getFilesWithBrokenLinks()
|
int |
getLatestSnapshotVersion()
|
int |
getMaxNumberLinksInReport()
|
int |
getNumberBrokenFiles()
|
int |
getNumberBrokenLinks()
|
int |
getNumberFilesChecked()
|
int |
getNumberLinksChecked()
|
java.lang.String |
getStore()
|
java.lang.String |
getWebapp()
|
boolean |
hasMaxNumberLinksExceeded()
|
void |
setError(java.lang.Throwable error)
|
protected void |
storeBrokenFiles(java.util.List manifests)
Stores the given list of manifest entries in the internal lists and maps |
java.lang.String |
toString()
|
boolean |
wasSuccessful()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkValidationReport(java.lang.String store, java.lang.String webapp, HrefManifest manifest, int noFilesChecked, int noLinksChecked, int maxNumberLinksInReport)
store
- The store the link check was run againstwebapp
- The webapp within the store the check was run againstmanifest
- The manifest of broken links and snapshot infonoFilesChecked
- The number of files checkednoLinksChecked
- The number of links checkedmaxNumberLinksInReport
- The maximum number of links to store in
the report, -1 will store all links passed in the manifest objectpublic LinkValidationReport(java.lang.String store, java.lang.String webapp, java.lang.Throwable error)
store
- The store the link check was run againstwebapp
- The webapp within the store the check was run againsterror
- The error that caused the link check to failMethod Detail |
---|
public java.lang.String getStore()
public java.lang.String getWebapp()
public java.util.Date getCheckCompletedAt()
public int getNumberFilesChecked()
public int getNumberLinksChecked()
public int getNumberBrokenFiles()
public int getNumberBrokenLinks()
public int getMaxNumberLinksInReport()
public boolean hasMaxNumberLinksExceeded()
public java.util.List getFilesWithBrokenLinks()
public java.util.List getBrokenLinksForFile(java.lang.String file)
public int getBaseSnapshotVersion()
public int getLatestSnapshotVersion()
public boolean wasSuccessful()
public void setError(java.lang.Throwable error)
public java.lang.Throwable getError()
public java.lang.String toString()
toString
in class java.lang.Object
protected void storeBrokenFiles(java.util.List manifests)
manifests
- Manifest entries to store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |