001: /*
002: * Copyright 2006 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.module.gl.web.inquirable;
017:
018: import java.util.List;
019: import java.util.Map;
020: import java.util.Properties;
021:
022: /**
023: * The inquirable class to support the cash balance lookup. Since there are no user defined inquiries to
024: * perform on cash balance fields, this class returns many, many nulls
025: */
026: public class CashBalanceInquirableImpl extends AbstractGLInquirableImpl {
027:
028: /**
029: * Since there are no user defined attributes, returns null
030: * @return null - no user defined attributes
031: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#buildUserDefinedAttributeKeyList()
032: */
033: @Override
034: public List buildUserDefinedAttributeKeyList() {
035: return null;
036: }
037:
038: /**
039: * Returns null as the map, as there are no drill downs here
040: * @return null for the map of attributes
041: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getUserDefinedAttributeMap()
042: */
043: @Override
044: public Map getUserDefinedAttributeMap() {
045: return null;
046: }
047:
048: /**
049: * Returns null for any attribute
050: * @param attributeName the name of an attribute for the inquiry
051: * @return null, no matter what
052: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getAttributeName(java.lang.String)
053: */
054: @Override
055: public String getAttributeName(String attributeName) {
056: return null;
057: }
058:
059: /**
060: * Returns null for any name/value pair its handed
061: * @param keyName the name of the key to lookup
062: * @param keyValue the value of the key to lookup
063: * @return null, every time
064: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getKeyValue(java.lang.String, java.lang.Object)
065: */
066: @Override
067: public Object getKeyValue(String keyName, Object keyValue) {
068: return null;
069: }
070:
071: /**
072: * Given a key name, returns null
073: * @param keyName the key name to change on the fly
074: * @return null, every time
075: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getKeyName(java.lang.String)
076: */
077: @Override
078: public String getKeyName(String keyName) {
079: return null;
080: }
081:
082: /**
083: * Returns null as the lookupable impl for this inquiry
084: * @return null, there isn't a lookupable impl
085: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getLookupableImplAttributeName()
086: */
087: @Override
088: public String getLookupableImplAttributeName() {
089: return null;
090: }
091:
092: /**
093: * Returns the base inquiry url to search...in this case, nothing
094: * @return null, as there's no URL to go to
095: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getBaseUrl()
096: */
097: @Override
098: public String getBaseUrl() {
099: return null;
100: }
101:
102: /**
103: * The class name of the business object that should be inquired on for the attribute
104: * @param the attribute name to build an inquiry for
105: * @return null, as there are no inquiries
106: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getInquiryBusinessObjectClass(java.lang.String)
107: */
108: @Override
109: public Class getInquiryBusinessObjectClass(String attributeName) {
110: return null;
111: }
112:
113: /**
114: * Adds no parameters at all
115: * @param parameter the parameter map to add new properties
116: * @param attributeName the name of the attribute being inquired on
117: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String)
118: */
119: @Override
120: public void addMoreParameters(Properties parameter,
121: String attributeName) {
122: }
123: }
|