001package org.kuali.ole.select.bo;
002
003import org.kuali.ole.module.purap.PurapConstants;
004import org.kuali.rice.kew.api.KewApiConstants;
005import org.kuali.rice.kew.api.KewApiServiceLocator;
006import org.kuali.rice.kew.api.doctype.DocumentType;
007import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
008import org.kuali.rice.krad.util.KRADConstants;
009
010/**
011 * Created with IntelliJ IDEA.
012 * User: arunag
013 * Date: 11/6/13
014 * Time: 1:14 PM
015 * To change this template use File | Settings | File Templates.
016 */
017public class OLEPurchaseOrderSearch extends PersistableBusinessObjectBase {
018    private String vendorName;
019    private String vendorAliasName;
020
021    private Integer poId;
022    private String vendorId;
023    private String instanceId;
024    private String callNumber;
025    private String copyNumber;
026    private String publisher;
027    private String localId;
028
029    public String getLocalId() {
030        return localId;
031    }
032
033    public void setLocalId(String localId) {
034        this.localId = localId;
035    }
036
037    public String getCallNumber() {
038        return callNumber;
039    }
040
041    public void setCallNumber(String callNumber) {
042        this.callNumber = callNumber;
043    }
044
045    public String getCopyNumber() {
046        return copyNumber;
047    }
048
049    public void setCopyNumber(String copyNumber) {
050        this.copyNumber = copyNumber;
051    }
052
053    public String getPublisher() {
054        return publisher;
055    }
056
057    public void setPublisher(String publisher) {
058        this.publisher = publisher;
059    }
060
061    public String getPoIdLink() {
062        return poIdLink;
063    }
064
065    public void setPoIdLink(String poDocNumber) {
066       /* String documentTypeName = PurapConstants.PurchaseOrderDocTypes.PURCHASE_ORDER_DOCUMENT;
067        DocumentType docType = KewApiServiceLocator.getDocumentTypeService().getDocumentTypeByName(documentTypeName);
068        String docHandlerUrl = docType.getResolvedDocumentHandlerUrl();
069        int endSubString = docHandlerUrl.lastIndexOf("/");
070        String serverName = docHandlerUrl.substring(0, endSubString);
071        String handler = docHandlerUrl.substring(endSubString + 1, docHandlerUrl.lastIndexOf("?"));
072        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;*/
073        this.poIdLink=poDocNumber;
074    }
075
076
077    private String title;
078    private  String bibId;
079    private String poIdLink;
080
081    public String getBibId() {
082        return bibId;
083    }
084
085    public void setBibId(String bibId) {
086        this.bibId = bibId;
087    }
088
089    public String getInstanceId() {
090        return instanceId;
091    }
092
093    public void setInstanceId(String instanceId) {
094        this.instanceId = instanceId;
095    }
096
097    public String getVendorAliasName() {
098        return vendorAliasName;
099    }
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