View Javadoc
1   package fr.paris.lutece.plugin.documentimport.business;
2   
3   import java.util.List;
4   
5   import fr.paris.lutece.portal.service.spring.SpringContextService;
6   
7   public final class DocumentAttributHome {
8   
9   	
10  	
11  	 // Static variable pointed at the DAO instance
12      private static IDocumentAttributDAO _dao = SpringContextService.getBean( "documentimport.documentAttributDAO" );
13  
14      /**
15       * Private constructor - this class need not be instantiated
16       */
17      private DocumentAttributHome(  )
18      {
19      }
20      
21      
22      public static int findIdDocumentAttributs(String documentTypeAttrName , String codeDocumentType)
23      {
24          return _dao.findIdDocumentAttributs(documentTypeAttrName, codeDocumentType);
25      }
26      
27      
28      public static List<String> findIdDocumentAttributs(int idDocumentAttribut)
29      {
30          return _dao.findValueAttributs(idDocumentAttribut);
31      }
32      
33  }