|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.wcm.LinkValidationState
public class LinkValidationState
Object used to retrieve and store the state of a link validaton process. The object is given an initial link validation report object (the result of a LinkValidationService service call) which is used by components to display the result of the links check.
Further reports can then subsequently be given to this object at which point a difference is calculated i.e. which links (if any) have been fixed. This allows components to display the progress of link fixing.
Constructor Summary | |
---|---|
LinkValidationState(org.alfresco.linkvalidation.LinkValidationReport initialReport)
Default constructor |
Method Summary | |
---|---|
int |
getBaseSnapshotVersion()
|
java.util.List |
getBrokenFilesByForm(java.lang.String form)
|
java.util.List |
getBrokenLinksForFile(java.lang.String file)
|
java.util.Date |
getCheckCompletedAt()
|
java.lang.Throwable |
getError()
|
java.util.List |
getFixedFiles()
|
java.util.List |
getFixedForms()
|
java.util.List |
getFormsWithBrokenLinks()
|
int |
getInitialNumberBrokenFiles()
|
int |
getInitialNumberBrokenLinks()
|
int |
getInitialNumberFilesChecked()
|
int |
getInitialNumberLinksChecked()
|
int |
getLatestSnapshotVersion()
|
int |
getMaxNumberLinksInReport()
|
int |
getNoBrokenLinksInForms()
|
int |
getNoBrokenLinksInStaticFiles()
|
int |
getNumberBrokenFiles()
|
int |
getNumberBrokenLinks()
|
int |
getNumberFilesChecked()
|
int |
getNumberFixedItems()
|
int |
getNumberLinksChecked()
|
java.util.List |
getStaticFilesWithBrokenLinks()
|
java.lang.String |
getStore()
|
java.lang.String |
getWebapp()
|
boolean |
hasCheckBeenReRun()
Determines whether the link validation check has been re-run since the intial check |
boolean |
hasMaxNumberLinksExceeded()
|
protected void |
processFiles(java.util.List files,
boolean updatedReport,
org.alfresco.linkvalidation.LinkValidationReport report)
|
void |
processReport(org.alfresco.linkvalidation.LinkValidationReport report,
boolean updatedReport)
|
java.lang.String |
toString()
|
void |
updateState(org.alfresco.linkvalidation.LinkValidationReport newReport)
Updates the link validation state with the result from a re-run of the link check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkValidationState(org.alfresco.linkvalidation.LinkValidationReport initialReport)
Method Detail |
---|
public java.lang.String getStore()
public java.lang.String getWebapp()
public java.util.Date getCheckCompletedAt()
public java.lang.Throwable getError()
public int getInitialNumberFilesChecked()
public int getInitialNumberLinksChecked()
public int getInitialNumberBrokenFiles()
public int getInitialNumberBrokenLinks()
public int getNumberFilesChecked()
public int getNumberLinksChecked()
public int getNumberBrokenFiles()
public int getNumberBrokenLinks()
public int getNoBrokenLinksInStaticFiles()
public int getNoBrokenLinksInForms()
public int getNumberFixedItems()
public int getBaseSnapshotVersion()
public int getLatestSnapshotVersion()
public int getMaxNumberLinksInReport()
public boolean hasMaxNumberLinksExceeded()
public java.util.List getStaticFilesWithBrokenLinks()
public java.util.List getFormsWithBrokenLinks()
public java.util.List getBrokenFilesByForm(java.lang.String form)
form
- The name of a form to find broken files for
public java.util.List getBrokenLinksForFile(java.lang.String file)
file
- The path to a file with broken links
public java.util.List getFixedFiles()
public java.util.List getFixedForms()
public boolean hasCheckBeenReRun()
public void updateState(org.alfresco.linkvalidation.LinkValidationReport newReport)
newReport
- The report to compare the intial report withpublic java.lang.String toString()
toString
in class java.lang.Object
public void processReport(org.alfresco.linkvalidation.LinkValidationReport report, boolean updatedReport)
protected void processFiles(java.util.List files, boolean updatedReport, org.alfresco.linkvalidation.LinkValidationReport report)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |