/** * Returns the number of not visible resources with broken links.<p> * * @return the number of not visible resources with broken links */ public int getNotVisibleResourcesCount() { if (m_resourcesWithBrokenLinks == null) { // compute it if needed getResourcesWithBrokenLinks(); } return m_notVisibleResourcesCount; }
/** * Creates a new helper object.<p> * * @param cms the cms object * @param resourceNames a list of resource names to be deleted */ public CmsInternalLinksValidator(CmsObject cms, List<String> resourceNames) { m_cms = cms; m_brokenRelations = getBrokenRelations(resourceNames); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#customHtmlStart() */ @Override protected String customHtmlStart() { StringBuffer result = new StringBuffer(512); if (getValidator().getNotVisibleResourcesCount() > 0) { result.append(dialogBlockStart(key(Messages.GUI_BROKENLINKS_NOTICE_0))); result.append("\n"); result.append( key( Messages.GUI_BROKENLINKS_NOT_VISIBLE_RESOURCES_1, new Object[] {new Integer(getValidator().getNotVisibleResourcesCount())})); result.append("\n"); result.append(dialogBlockEnd()); } return result.toString(); }
/** * Returns the link validator class.<p> * * @return the link validator class */ private CmsInternalLinksValidator getValidator() { if (m_validator == null) { // get the content check result object Map objects = (Map)getSettings().getDialogObject(); Object o = objects.get(CmsInternalLinkValidationDialog.class.getName()); List resources = new ArrayList(); if ((o != null) && (o instanceof List)) { resources = (List)o; } m_validator = new CmsInternalLinksValidator(getCms(), resources); } return m_validator; }
List brokenLinks = getValidator().getBrokenLinksForResource(res.getRootPath()); if (brokenLinks != null) { Iterator j = brokenLinks.iterator();
/** * Returns the number of not visible resources with broken links.<p> * * @return the number of not visible resources with broken links */ public int getNotVisibleResourcesCount() { if (m_resourcesWithBrokenLinks == null) { // compute it if needed getResourcesWithBrokenLinks(); } return m_notVisibleResourcesCount; }
/** * Creates a new helper object.<p> * * @param cms the cms object * @param resourceNames a list of resource names to be deleted */ public CmsInternalLinksValidator(CmsObject cms, List resourceNames) { m_cms = cms; m_brokenRelations = getBrokenRelations(resourceNames); }
/** * @see org.opencms.workplace.list.A_CmsListExplorerDialog#getCollector() */ @Override public I_CmsListResourceCollector getCollector() { if (m_collector == null) { m_collector = new CmsInternalLinkValidationFilesCollector( this, getValidator().getResourcesWithBrokenLinks()); } return m_collector; }