/** * Validates the relations for the given resources.<p> * * @param dbc the database context * @param publishList the resources to validate during publishing * @param report a report to write the messages to * * @return a map with lists of invalid links * (<code>{@link org.opencms.relations.CmsRelation}}</code> objects) * keyed by root paths * * @throws Exception if something goes wrong */ public Map validateRelations(CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) throws Exception { return m_htmlLinkValidator.validateResources(dbc, publishList, report); }
m_htmlLinkValidator = new CmsRelationSystemValidator(this);
report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); List brokenLinks = validateLinks(dbc, resource, offlineFilesLookup, project, report); if (brokenLinks.size() > 0) {
result = checkLinkForDeletedLinkTarget(relation, link, fileLookup, outgoingRelationTargets); } else { result = checkLinkForNewOrChangedLinkSource(dbc, resource, relation, link, project, fileLookup);
m_htmlLinkValidator = new CmsRelationSystemValidator(this);
report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); List<CmsRelation> brokenLinks = validateLinks(dbc, resource, offlineFilesLookup, project, report); if (brokenLinks.size() > 0) {
/** * Validates the relations for the given resources.<p> * * @param dbc the database context * @param publishList the resources to validate during publishing * @param report a report to write the messages to * * @return a map with lists of invalid links * (<code>{@link org.opencms.relations.CmsRelation}}</code> objects) * keyed by root paths * * @throws Exception if something goes wrong */ public Map<String, List<CmsRelation>> validateRelations( CmsDbContext dbc, CmsPublishList publishList, I_CmsReport report) throws Exception { return m_htmlLinkValidator.validateResources(dbc, publishList, report); }