Coverage Report - fr.paris.lutece.plugins.releaser.service.GetRemoteInformationsTask
 
Classes in this File Line Coverage Branch Coverage Complexity
GetRemoteInformationsTask
0 %
0/8
0 %
0/2
2
 
 1  
 package fr.paris.lutece.plugins.releaser.service;
 2  
 
 3  
 import java.io.IOException;
 4  
 
 5  
 import fr.paris.lutece.plugins.releaser.business.Component;
 6  
 import fr.paris.lutece.portal.service.util.AppLogService;
 7  
 import fr.paris.lutece.util.httpaccess.HttpAccessException;
 8  
 
 9  
 public class GetRemoteInformationsTask implements Runnable
 10  
 {
 11  
 
 12  
     
 13  
     
 14  
     
 15  
     private Component _component; 
 16  
     
 17  
     public GetRemoteInformationsTask(Component component)
 18  0
     {
 19  
         
 20  0
         this._component=component;
 21  0
     }
 22  
     
 23  
     @Override
 24  
     public void run( )
 25  
     {
 26  
         try
 27  
         {
 28  0
             ComponentService.getService( ).setRemoteInformations( _component, _component.isProject( )?false:true  );
 29  
         }
 30  0
         catch( HttpAccessException | IOException e )
 31  
         {
 32  0
           AppLogService.error( e );
 33  0
         }
 34  
         
 35  0
     }
 36  
 
 37  
     
 38  
 
 39  
 }