View Javadoc
1   package org.kuali.ole.coa.maintenance;
2   
3   import org.kuali.ole.coa.businessobject.OleFundCode;
4   import org.kuali.rice.krad.maintenance.MaintainableImpl;
5   import org.kuali.rice.krad.maintenance.MaintenanceDocument;
6   
7   import java.util.Map;
8   
9   /**
10   * Created by angelind on 8/3/15.
11   */
12  public class OleFundCodeMaintenanceImpl extends MaintainableImpl {
13      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OleFundCodeMaintenanceImpl.class);
14  
15      @Override
16      public void processAfterNew(MaintenanceDocument document,
17                                  Map<String, String[]> requestParameters) {
18          LOG.debug("Inside processAfterNew()");
19          super.processAfterNew(document,requestParameters);
20          if(document != null && document.getNewMaintainableObject() != null) {
21              OleFundCode oleFundCode = (OleFundCode) document.getNewMaintainableObject().getDataObject();
22              if(oleFundCode != null) {
23                  oleFundCode.setActive(true);
24              }
25          }
26      }
27  }