Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 289
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 359
    	HttpServletResponse response = LocalVariables.getResponse(  );


    	PortalRequestContext pReqCtx = new PortalRequestContext(_config.getServletContext(), request, response);
    	// Retrieve the portlet window 

    	String strPortletID = String.valueOf(nPortletID);
    	PortletWindowConfig portletWindowConfig = new PortletWindowConfig();

    	portletWindowConfig.setContextPath(
    			request.getContextPath());       
    	portletWindowConfig.setMetaInfo(
    			PortletWindowConfig.parseMetaInfo(strPortletID));
    	portletWindowConfig.setPortletName(strPortletName);         
    	PortalURL portalUrl = PortalURLParserImpl.getParser().parse(request); 

    	PlutoServices tempPS = PlutoServices.getServices();     	
    	PortletRegistryService tempPRS = tempPS.getPortletRegistryService();        	

    	PortletDefinition tempPD = null;//tempPRS.getPortlet(portletWindowConfig.getContextPath(), portletWindowConfig.getPortletName());

		/*} catch (PortletContainerException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}*/
     	 PlutoSession plutoSession = PlutoSession.findSession( request );
         PortletWindowImpl portletWindow = plutoSession.getPortletWindow( String.valueOf( nPortletID ), strPortletName );      	
	     

         ServletContext servletContext = _config.getServletContext();
         PortalURLParser parser = PortalURLParserImpl.getParser();
         //PropertyConfigServiceImpl propertyService = new PropertyConfigServiceImpl();
         ResourceConfig resourceConfig =  StaticServletContextResourceConfigFactory.getResourceConfig( );
         RenderConfigServiceImpl renderConfig = new RenderConfigServiceImpl( resourceConfig );
         RequestDispatcherServiceImpl requestDispatcherService = new RequestDispatcherServiceImpl(  );
         PortletAppDescriptorServiceImpl portletAppDescriptorService = new PortletAppDescriptorServiceImpl(  );
         PortletContextManager portletContextManager = new PortletContextManager(requestDispatcherService, portletAppDescriptorService);
         SupportedModesServiceImpl supportedModeService = new SupportedModesServiceImpl(resourceConfig, portletContextManager, portletContextManager);
         SupportedWindowStateServiceImpl supportedWindowService = new SupportedWindowStateServiceImpl(resourceConfig, portletContextManager);
        
	     DriverConfigurationImpl driverConfig = new DriverConfigurationImpl(parser
	     		, resourceConfig
	     		, renderConfig
	     		,supportedModeService
	     		,supportedWindowService);	     
	     pReqCtx.getServletContext().setAttribute("driverConfig", driverConfig);
        try
        {        	
            _portletContainer.doServeResource( portletWindow, request, response );
Fichier Ligne
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 177
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 354
	public static String render( int nPortletID, String strPortletName, PortletWindow portletWindow2 )
    {
		init();				
		
        HttpServletRequest request = LocalVariables.getRequest(  );        
        LuteceHttpServletResponse response = new LuteceHttpServletResponse( LocalVariables.getResponse(  ) );
        
        PortalRequestContext pReqCtx = new PortalRequestContext(_config.getServletContext(), request, response);
		// Retrieve the portlet window 
        
        String strPortletID = String.valueOf(nPortletID);
        PortletWindowConfig portletWindowConfig = new PortletWindowConfig();
        
        portletWindowConfig.setContextPath(
        		request.getContextPath());       
        portletWindowConfig.setMetaInfo(
        		PortletWindowConfig.parseMetaInfo(strPortletID));
        portletWindowConfig.setPortletName(strPortletName);
        
        PortalURL portalUrl = PortalURLParserImpl.getParser().parse(request);        
        
        //try {
        	PlutoServices tempPS = PlutoServices.getServices();        	
        	PortletRegistryService tempPRS = tempPS.getPortletRegistryService();        	
        	
        	PortletDefinition tempPD = null;//tempPRS.getPortlet(portletWindowConfig.getContextPath(), portletWindowConfig.getPortletName());
        	
		/*} catch (PortletContainerException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}*/
    	// Retrieve the portlet window
        PlutoSession plutoSession = PlutoSession.findSession( request );
        PortletWindowImpl portletWindow = plutoSession.getPortletWindow( String.valueOf( nPortletID ), strPortletName );
Fichier Ligne
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 182
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 289
        LuteceHttpServletResponse response = new LuteceHttpServletResponse( LocalVariables.getResponse(  ) );
        
        PortalRequestContext pReqCtx = new PortalRequestContext(_config.getServletContext(), request, response);
		// Retrieve the portlet window 
        
        String strPortletID = String.valueOf(nPortletID);
        PortletWindowConfig portletWindowConfig = new PortletWindowConfig();
        
        portletWindowConfig.setContextPath(
        		request.getContextPath());       
        portletWindowConfig.setMetaInfo(
        		PortletWindowConfig.parseMetaInfo(strPortletID));
        portletWindowConfig.setPortletName(strPortletName);
        
        PortalURL portalUrl = PortalURLParserImpl.getParser().parse(request);        
        
        //try {
        	PlutoServices tempPS = PlutoServices.getServices();        	
        	PortletRegistryService tempPRS = tempPS.getPortletRegistryService();        	
        	
        	PortletDefinition tempPD = null;//tempPRS.getPortlet(portletWindowConfig.getContextPath(), portletWindowConfig.getPortletName());
        	
		/*} catch (PortletContainerException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}*/
    	// Retrieve the portlet window
        PlutoSession plutoSession = PlutoSession.findSession( request );
        PortletWindowImpl portletWindow = plutoSession.getPortletWindow( String.valueOf( nPortletID ), strPortletName );
Fichier Ligne
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 210
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 384
        PortletWindowImpl portletWindow = plutoSession.getPortletWindow( String.valueOf( nPortletID ), strPortletName );
        
       
        /*PortletWindowImpl portletWindow = new PortletWindowImpl(
        		_portletContainer, portletWindowConfig, portalUrl, nPortletID);  */   
        
        PortalURLParser parser = PortalURLParserImpl.getParser();
        
        //PropertyConfigServiceImpl propertyService = new PropertyConfigServiceImpl();
        ResourceConfig resourceConfig =  StaticServletContextResourceConfigFactory.getResourceConfig( );
        RenderConfigServiceImpl renderConfig = new RenderConfigServiceImpl( resourceConfig );
        RequestDispatcherServiceImpl requestDispatcherService = new RequestDispatcherServiceImpl(  );
        PortletAppDescriptorServiceImpl portletAppDescriptorService = new PortletAppDescriptorServiceImpl(  );
        PortletContextManager portletContextManager = new PortletContextManager(requestDispatcherService, portletAppDescriptorService);
        SupportedModesServiceImpl supportedModeService = new SupportedModesServiceImpl(resourceConfig, portletContextManager, portletContextManager);
        SupportedWindowStateServiceImpl supportedWindowService = new SupportedWindowStateServiceImpl(resourceConfig, portletContextManager);
        
        DriverConfigurationImpl driverConfig = new DriverConfigurationImpl(parser
        		, resourceConfig
        		, renderConfig
        		,supportedModeService
        		,supportedWindowService);
        pReqCtx.getServletContext().setAttribute("driverConfig", driverConfig);
     
        
        try {
        	_portletContainer.doLoad( portletWindow, request, response );        	
			_portletContainer.doRender( portletWindow, request, response);				
Fichier Ligne
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 210
fr/paris/lutece/plugins/jsr286/pluto/LuteceToPlutoConnector.java 318
        PortletWindowImpl portletWindow = plutoSession.getPortletWindow( String.valueOf( nPortletID ), strPortletName );
        
       
        /*PortletWindowImpl portletWindow = new PortletWindowImpl(
        		_portletContainer, portletWindowConfig, portalUrl, nPortletID);  */   
        
        PortalURLParser parser = PortalURLParserImpl.getParser();
        
        //PropertyConfigServiceImpl propertyService = new PropertyConfigServiceImpl();
        ResourceConfig resourceConfig =  StaticServletContextResourceConfigFactory.getResourceConfig( );
        RenderConfigServiceImpl renderConfig = new RenderConfigServiceImpl( resourceConfig );
        RequestDispatcherServiceImpl requestDispatcherService = new RequestDispatcherServiceImpl(  );
        PortletAppDescriptorServiceImpl portletAppDescriptorService = new PortletAppDescriptorServiceImpl(  );
        PortletContextManager portletContextManager = new PortletContextManager(requestDispatcherService, portletAppDescriptorService);
        SupportedModesServiceImpl supportedModeService = new SupportedModesServiceImpl(resourceConfig, portletContextManager, portletContextManager);
        SupportedWindowStateServiceImpl supportedWindowService = new SupportedWindowStateServiceImpl(resourceConfig, portletContextManager);
        
        DriverConfigurationImpl driverConfig = new DriverConfigurationImpl(parser
        		, resourceConfig
        		, renderConfig
        		,supportedModeService
        		,supportedWindowService);
        pReqCtx.getServletContext().setAttribute("driverConfig", driverConfig);
     
        
        try {
        	_portletContainer.doLoad( portletWindow, request, response );