1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.ole.sec.datadictionary;
17  
18  import org.kuali.ole.sec.document.authorization.SecAccountingLineAuthorizer;
19  import org.kuali.ole.sys.document.authorization.AccountingLineAuthorizer;
20  import org.kuali.ole.sys.document.datadictionary.AccountingLineGroupDefinition;
21  
22  
23  
24  
25  
26  public class SecAccountingLineGroupDefinition extends AccountingLineGroupDefinition {
27  
28      
29  
30  
31  
32  
33      @Override
34      protected AccountingLineAuthorizer createAccountingLineAuthorizer() {
35          Class<? extends AccountingLineAuthorizer> authorizerClass = getAccountingLineAuthorizerClass();
36  
37          SecAccountingLineAuthorizer secAuthorizer = new SecAccountingLineAuthorizer();
38          try {
39              AccountingLineAuthorizer authorizer = authorizerClass.newInstance();
40              secAuthorizer.setLineAuthorizer(authorizer);
41          } catch (InstantiationException ie) {
42              throw new IllegalArgumentException("InstantiationException while attempting to instantiate AccountingLineAuthorization class", ie);
43          } catch (IllegalAccessException iae) {
44              throw new IllegalArgumentException("IllegalAccessException while attempting to instantiate AccountingLineAuthorization class", iae);
45          }
46          
47          return secAuthorizer;
48      }
49  
50  }