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  
25      public String getBatchProcessId() {
26          return batchProcessId;
27      }
28  
29      public void setBatchProcessId(String batchProcessId) {
30          this.batchProcessId = batchProcessId;
31      }
32  
33      public String getBatchProcessType() {
34          return batchProcessType;
35      }
36  
37      public void setBatchProcessType(String batchProcessType) {
38          this.batchProcessType = batchProcessType;
39      }
40  
41      public OLEBatchProcessDefinitionForm() {
42          super();
43      }
44      @Override
45      protected String getDefaultDocumentTypeName() {
46          return "OLE_BCH_PRCS_PRFL_DOC";
47      }
48  
49      public OLEBatchProcessDefinitionDocument getOleBatchProcessDefinitionDocument() {
50          return oleBatchProcessDefinitionDocument;
51      }
52  
53      public void setOleBatchProcessDefinitionDocument(OLEBatchProcessDefinitionDocument oleBatchProcessDefinitionDocument) {
54          this.oleBatchProcessDefinitionDocument = oleBatchProcessDefinitionDocument;
55      }
56  
57      public boolean isPermissionFlag() {
58          return permissionFlag;
59      }
60  
61      public void setPermissionFlag(boolean permissionFlag) {
62          this.permissionFlag = permissionFlag;
63      }
64  
65      public boolean isMarcOnly() {
66          OLEBatchProcessDefinitionDocument batchProcessDefinitionDocument = (OLEBatchProcessDefinitionDocument)getDocument();
67          if(batchProcessDefinitionDocument.getMarcOnly() != null){
68              return batchProcessDefinitionDocument.getMarcOnly();
69          }
70          return false;
71      }
72  
73      public void setMarcOnly(boolean marcOnly) {
74          this.marcOnly = marcOnly;
75      }
76  
77      //private String cronOrSchedule;
78      //private String scheduleType;
79      //private String oneTimeOrRecurring;
80  
81      /*public String getScheduleType() {
82          return scheduleType;
83      }
84  
85      public void setScheduleType(String scheduleType) {
86          this.scheduleType = scheduleType;
87      }*/
88  
89     /* public String getOneTimeOrRecurring() {
90          return oneTimeOrRecurring;
91      }
92  
93      public void setOneTimeOrRecurring(String oneTimeOrRecurring) {
94          this.oneTimeOrRecurring = oneTimeOrRecurring;
95      }*/
96  
97   /*   public String getCronOrSchedule() {
98          return cronOrSchedule;
99      }
100 
101     public void setCronOrSchedule(String cronOrSchedule) {
102         this.cronOrSchedule = cronOrSchedule;
103     }*/
104 }