1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.module.purap.businessobject.options;
17
18 import org.kuali.ole.module.purap.PurapConstants;
19 import org.kuali.ole.vnd.VendorConstants;
20 import org.kuali.rice.core.api.util.ConcreteKeyValue;
21 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26 /**
27 * Value Finder for manual Purchase Order Status Changes.
28 */
29 public class StatusChangeValuesFinder extends KeyValuesBase {
30
31 /**
32 * Returns code/description pairs of all manual Purchase Order Status Changes.
33 *
34 * @see org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder#getKeyValues()
35 */
36 public List getKeyValues() {
37 List labels = new ArrayList();
38 labels.add(new ConcreteKeyValue(PurapConstants.PurchaseOrderStatuses.APPDOC_IN_PROCESS, VendorConstants.NONE));
39 labels.add(new ConcreteKeyValue(PurapConstants.PurchaseOrderStatuses.APPDOC_WAITING_FOR_DEPARTMENT, "Department"));
40 labels.add(new ConcreteKeyValue(PurapConstants.PurchaseOrderStatuses.APPDOC_WAITING_FOR_VENDOR, "Vendor"));
41 return labels;
42 }
43 }