@Override public DLViewFileVersionDisplayContext getDLViewFileVersionDisplayContext( HttpServletRequest request, HttpServletResponse response, FileVersion fileVersion) { DLViewFileVersionDisplayContext dlViewFileVersionDisplayContext = new DefaultDLViewFileVersionDisplayContext(request, response, fileVersion); if (fileVersion == null) { return dlViewFileVersionDisplayContext; } for (DLDisplayContextFactory dlDisplayContextFactory : getDisplayContextFactories()) { dlViewFileVersionDisplayContext = dlDisplayContextFactory.getDLViewFileVersionDisplayContext( dlViewFileVersionDisplayContext, request, response, fileVersion); } return dlViewFileVersionDisplayContext; }
@Override public DLViewFileVersionDisplayContext getDLViewFileVersionDisplayContext( HttpServletRequest request, HttpServletResponse response, FileShortcut fileShortcut) { try { DLViewFileVersionDisplayContext dlViewFileVersionDisplayContext = new DefaultDLViewFileVersionDisplayContext(request, response, fileShortcut); if (fileShortcut == null) { return dlViewFileVersionDisplayContext; } for (DLDisplayContextFactory dlDisplayContextFactory : getDisplayContextFactories()) { dlViewFileVersionDisplayContext = dlDisplayContextFactory.getDLViewFileVersionDisplayContext( dlViewFileVersionDisplayContext, request, response, fileShortcut); } return dlViewFileVersionDisplayContext; } catch (PortalException pe) { throw new SystemException(pe); } }