01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.labor.web.inquirable;
17:
18: import java.util.ArrayList;
19: import java.util.HashMap;
20: import java.util.List;
21: import java.util.Map;
22:
23: import org.kuali.kfs.KFSConstants;
24: import org.kuali.kfs.KFSPropertyConstants;
25: import org.kuali.module.gl.GLConstants;
26: import org.kuali.module.labor.bo.PositionFunding;
27:
28: /**
29: * This class is used to generate the URL for the user-defined attributes for the Position Inquiry screen. It is entended the
30: * KualiInquirableImpl class, so it covers both the default implementation and customized implemetnation.
31: */
32: public class PositionFundingInquirableImpl extends
33: AbstractLaborInquirableImpl {
34:
35: /**
36: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#buildUserDefinedAttributeKeyList()
37: */
38: protected List buildUserDefinedAttributeKeyList() {
39: List keys = new ArrayList();
40: keys.add(KFSPropertyConstants.POSITION_NUMBER);
41: return keys;
42: }
43:
44: /**
45: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getAttributeName(java.lang.String)
46: */
47: protected String getAttributeName(String attributeName) {
48: return attributeName;
49: }
50:
51: /**
52: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getBaseUrl()
53: */
54: protected String getBaseUrl() {
55: return KFSConstants.GL_MODIFIED_INQUIRY_ACTION;
56: }
57:
58: /**
59: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getInquiryBusinessObjectClass(java.lang.String)
60: */
61: protected Class getInquiryBusinessObjectClass(String attributeName) {
62: return PositionFunding.class;
63: }
64:
65: /**
66: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getKeyName(java.lang.String)
67: */
68: protected String getKeyName(String keyName) {
69: return keyName;
70: }
71:
72: /**
73: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getKeyValue(java.lang.String, java.lang.Object)
74: */
75: protected Object getKeyValue(String keyName, Object keyValue) {
76: return keyValue;
77: }
78:
79: /**
80: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getLookupableImplAttributeName()
81: */
82: protected String getLookupableImplAttributeName() {
83: return null;
84: }
85:
86: /**
87: * @see org.kuali.module.labor.web.inquirable.AbstractLaborInquirableImpl#getUserDefinedAttributeMap()
88: */
89: protected Map getUserDefinedAttributeMap() {
90: Map userDefinedAttributeMap = new HashMap();
91: userDefinedAttributeMap.put(
92: GLConstants.DummyBusinessObject.LINK_BUTTON_OPTION, "");
93:
94: return userDefinedAttributeMap;
95: }
96: }
|