View Javadoc
1   package org.kuali.ole.batch.form;
2   
3   import org.kuali.ole.batch.document.OLEBatchProcessDefinitionDocument;
4   import org.kuali.rice.krad.web.form.TransactionalDocumentFormBase;
5   
6   import java.util.ArrayList;
7   import java.util.List;
8   
9   /**
10   * Created with IntelliJ IDEA.
11   * User: adityas
12   * Date: 7/12/13
13   * Time: 4:12 PM
14   * To change this template use File | Settings | File Templates.
15   */
16  public class OLEBatchProcessDefinitionForm extends TransactionalDocumentFormBase {
17  
18      private OLEBatchProcessDefinitionDocument oleBatchProcessDefinitionDocument;
19  
20      private String batchProcessId;
21      private String batchProcessType;
22      private boolean permissionFlag =true;
23      private boolean marcOnly;
24      private String navigationBatchProcessId;
25  
26      public String getBatchProcessId() {
27          return batchProcessId;
28      }
29  
30      public void setBatchProcessId(String batchProcessId) {
31          this.batchProcessId = batchProcessId;
32      }
33  
34      public String getBatchProcessType() {
35          return batchProcessType;
36      }
37  
38      public void setBatchProcessType(String batchProcessType) {
39          this.batchProcessType = batchProcessType;
40      }
41  
42      public OLEBatchProcessDefinitionForm() {
43          super();
44      }
45      @Override
46      protected String getDefaultDocumentTypeName() {
47          return "OLE_BCH_PRCS_PRFL_DOC";
48      }
49  
50      public OLEBatchProcessDefinitionDocument getOleBatchProcessDefinitionDocument() {
51          return oleBatchProcessDefinitionDocument;
52      }
53  
54      public void setOleBatchProcessDefinitionDocument(OLEBatchProcessDefinitionDocument oleBatchProcessDefinitionDocument) {
55          this.oleBatchProcessDefinitionDocument = oleBatchProcessDefinitionDocument;
56      }
57  
58      public boolean isPermissionFlag() {
59          return permissionFlag;
60      }
61  
62      public void setPermissionFlag(boolean permissionFlag) {
63          this.permissionFlag = permissionFlag;
64      }
65  
66      public boolean isMarcOnly() {
67          OLEBatchProcessDefinitionDocument batchProcessDefinitionDocument = (OLEBatchProcessDefinitionDocument)getDocument();
68          if(batchProcessDefinitionDocument.getMarcOnly() != null){
69              return batchProcessDefinitionDocument.getMarcOnly();
70          }
71          return false;
72      }
73  
74      public void setMarcOnly(boolean marcOnly) {
75          this.marcOnly = marcOnly;
76      }
77  
78      //private String cronOrSchedule;
79      //private String scheduleType;
80      //private String oneTimeOrRecurring;
81  
82      /*public String getScheduleType() {
83          return scheduleType;
84      }
85  
86      public void setScheduleType(String scheduleType) {
87          this.scheduleType = scheduleType;
88      }*/
89  
90     /* public String getOneTimeOrRecurring() {
91          return oneTimeOrRecurring;
92      }
93  
94      public void setOneTimeOrRecurring(String oneTimeOrRecurring) {
95          this.oneTimeOrRecurring = oneTimeOrRecurring;
96      }*/
97  
98   /*   public String getCronOrSchedule() {
99          return cronOrSchedule;
100     }
101 
102     public void setCronOrSchedule(String cronOrSchedule) {
103         this.cronOrSchedule = cronOrSchedule;
104     }*/
105 
106     public String getNavigationBatchProcessId() {
107         return navigationBatchProcessId;
108     }
109 
110     public void setNavigationBatchProcessId(String navigationBatchProcessId) {
111         this.navigationBatchProcessId = navigationBatchProcessId;
112     }
113 }