protected Set<String> getStrongLinkReferences() {

        Set<String> includingFiles = new HashSet<String>();
        CmsDbContext dbc = m_publishEngine.getDbContext(getCms().getRequestContext());
        try {
            // use the online project
            CmsObject jspCms = OpenCms.initCmsObject(m_publishJob.getCmsObject());
            jspCms.getRequestContext().setCurrentProject(jspCms.readProject(CmsProject.ONLINE_PROJECT_ID));
            // collect jsp referencing information
            m_report.println(
                Messages.get().container(Messages.RPT_JSPLOADER_UPDATE_CACHE_BEGIN_0),
                I_CmsReport.FORMAT_HEADLINE);
            int plainId = OpenCms.getResourceManager().getResourceType(
                CmsResourceTypePlain.getStaticTypeName()).getTypeId();
            Iterator<CmsResource> it = m_publishJob.getPublishList().getFileList().iterator();
            while (it.hasNext()) {
                CmsResource resource = it.next();
                if ((CmsResourceTypeJsp.isJsp(resource)) || (resource.getTypeId() == plainId)) {
                    m_report.print(
                        Messages.get().container(Messages.RPT_JSPLOADER_UPDATE_CACHE_0),
                        I_CmsReport.FORMAT_NOTE);
                    m_report.print(
                        org.opencms.report.Messages.get().container(
                            org.opencms.report.Messages.RPT_ARGUMENT_1,
                            dbc.removeSiteRoot(resource.getRootPath())));
                    m_report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0));
                    m_jspLoader.getReferencingStrongLinks(jspCms, resource, includingFiles);
                    m_report.println(
                        org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
                        I_CmsReport.FORMAT_OK);
                }
            }
        } catch (Throwable e) {
            // catch every thing including runtime exceptions
            m_report.println(e);
        } finally {
            dbc.clear();
            dbc = null;
            m_report.println(
                Messages.get().container(Messages.RPT_JSPLOADER_UPDATE_CACHE_END_0),
                I_CmsReport.FORMAT_HEADLINE);
        }
        return includingFiles;
    }
protected Set < String > getStrongLinkReferences ( ) { Set < String > includingFiles = new HashSet < String > ( ) ; CmsDbContext dbc = m_publishEngine . getDbContext ( getCms ( ) . getRequestContext ( ) ) ; try { CmsObject jspCms = OpenCms . initCmsObject ( m_publishJob . getCmsObject ( ) ) ; jspCms . getRequestContext ( ) . setCurrentProject ( jspCms . readProject ( CmsProject . ONLINE_PROJECT_ID ) ) ; m_report . println ( Messages . get ( ) . container ( Messages . RPT_JSPLOADER_UPDATE_CACHE_BEGIN_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; int plainId = OpenCms . getResourceManager ( ) . getResourceType ( CmsResourceTypePlain . getStaticTypeName ( ) ) . getTypeId ( ) ; Iterator < CmsResource > it = m_publishJob . getPublishList ( ) . getFileList ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { CmsResource resource = it . next ( ) ; if ( ( CmsResourceTypeJsp . isJsp ( resource ) ) || ( resource . getTypeId ( ) == plainId ) ) { m_report . print ( Messages . get ( ) . container ( Messages . RPT_JSPLOADER_UPDATE_CACHE_0 ) , I_CmsReport . FORMAT_NOTE ) ; m_report . print ( org . opencms . report . Messages . get ( ) . container ( org . opencms . report . Messages . RPT_ARGUMENT_1 , dbc . removeSiteRoot ( resource . getRootPath ( ) ) ) ) ; m_report . print ( org . opencms . report . Messages . get ( ) . container ( org . opencms . report . Messages . RPT_DOTS_0 ) ) ; m_jspLoader . getReferencingStrongLinks ( jspCms , resource , includingFiles ) ; m_report . println ( org . opencms . report . Messages . get ( ) . container ( org . opencms . report . Messages . RPT_OK_0 ) , I_CmsReport . FORMAT_OK ) ; } } } catch ( Throwable e ) { m_report . println ( e ) ; } finally { dbc . clear ( ) ; dbc = null ; m_report . println ( Messages . get ( ) . container ( Messages . RPT_JSPLOADER_UPDATE_CACHE_END_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; } return includingFiles ; }
Returns the set of all strong link references from the files to publish.<p>

@return the set of all strong link references