View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.kuali.ole.module.purap.PurapConstants;
4   import org.kuali.rice.kew.api.KewApiConstants;
5   import org.kuali.rice.kew.api.KewApiServiceLocator;
6   import org.kuali.rice.kew.api.doctype.DocumentType;
7   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
8   import org.kuali.rice.krad.util.KRADConstants;
9   
10  /**
11   * Created with IntelliJ IDEA.
12   * User: arunag
13   * Date: 11/6/13
14   * Time: 1:14 PM
15   * To change this template use File | Settings | File Templates.
16   */
17  public class OLEPurchaseOrderSearch extends PersistableBusinessObjectBase {
18      private String vendorName;
19      private String vendorAliasName;
20  
21      private Integer poId;
22      private String vendorId;
23      private String instanceId;
24      private String callNumber;
25      private String copyNumber;
26      private String publisher;
27      private String localId;
28  
29      public String getLocalId() {
30          return localId;
31      }
32  
33      public void setLocalId(String localId) {
34          this.localId = localId;
35      }
36  
37      public String getCallNumber() {
38          return callNumber;
39      }
40  
41      public void setCallNumber(String callNumber) {
42          this.callNumber = callNumber;
43      }
44  
45      public String getCopyNumber() {
46          return copyNumber;
47      }
48  
49      public void setCopyNumber(String copyNumber) {
50          this.copyNumber = copyNumber;
51      }
52  
53      public String getPublisher() {
54          return publisher;
55      }
56  
57      public void setPublisher(String publisher) {
58          this.publisher = publisher;
59      }
60  
61      public String getPoIdLink() {
62          return poIdLink;
63      }
64  
65      public void setPoIdLink(String poDocNumber) {
66         /* String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
67          DocumentType docType = KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
68          String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
69          int endSubString = docHandlerUrl.lastIndexOf("/");
70          String serverName = docHandlerUrl.substring(0, endSubString);
71          String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
72          this.poIdLink = serverName + "/" + KRADConstants.PORTAL_ACTION + "?channelTitle=" + docType.getName() + "&channelUrl=" + handler + "?" + KRADConstants.DISPATCH_REQUEST_PARAMETER + "=" + KRADConstants.DOC_HANDLER_METHOD + "&" + KRADConstants.PARAMETER_DOC_ID + "=" + poDocNumber + "&" + KRADConstants.PARAMETER_COMMAND + "=" + KewApiConstants.DOCSEARCH_COMMAND;*/
73          this.poIdLink=poDocNumber;
74      }
75  
76  
77      private String title;
78      private  String bibId;
79      private String poIdLink;
80  
81      public String getBibId() {
82          return bibId;
83      }
84  
85      public void setBibId(String bibId) {
86          this.bibId = bibId;
87      }
88  
89      public String getInstanceId() {
90          return instanceId;
91      }
92  
93      public void setInstanceId(String instanceId) {
94          this.instanceId = instanceId;
95      }
96  
97      public String getVendorAliasName() {
98          return vendorAliasName;
99      }
100 
101     public void setVendorAliasName(String vendorAliasName) {
102         this.vendorAliasName = vendorAliasName;
103     }
104 
105     public String getAuthor() {
106         return author;
107     }
108 
109     public void setAuthor(String author) {
110         this.author = author;
111     }
112 
113 
114 
115     private String author;
116     private String issn;
117 
118     public String getIssn() {
119         return issn;
120     }
121 
122     public void setIssn(String issn) {
123         this.issn = issn;
124     }
125 
126     public String getVendorName() {
127         return vendorName;
128     }
129 
130     public String getVendorId() {
131         return vendorId;
132     }
133 
134     public void setVendorId(String vendorId) {
135         this.vendorId = vendorId;
136     }
137 
138     public void setVendorName(String vendorName) {
139 
140         this.vendorName = vendorName;
141     }
142 
143     public String getTitle() {
144         return title;
145     }
146 
147     public void setTitle(String title) {
148         this.title = title;
149     }
150 
151     public Integer getPoId() {
152         return poId;
153     }
154 
155     public void setPoId(Integer poId) {
156         this.poId = poId;
157     }
158 
159 
160 
161 
162 }
163