001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.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/ecl2.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.kfs.gl.businessobject.inquiry;
017    
018    import java.util.List;
019    import java.util.Map;
020    import java.util.Properties;
021    
022    /**
023     * Builds an inquirable to build inquiry links for fields in the encumbrance lookup. That lookup
024     * has no drill downs outside of chart attributes, so this class returns null for many classes.
025     */
026    public class EncumbranceInquirableImpl extends AbstractGeneralLedgerInquirableImpl {
027        private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(EncumbranceInquirableImpl.class);
028    
029        /**
030         * Since there are no user defined attributes, returns null
031         * @return null - no user defined attributes
032         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#buildUserDefinedAttributeKeyList()
033         */
034        @Override
035        protected List buildUserDefinedAttributeKeyList() {
036            return null;
037        }
038    
039        /**
040         * Returns null as the map, as there are no drill downs here
041         * @return null for the map of attributes
042         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getUserDefinedAttributeMap()
043         */
044        @Override
045        protected Map getUserDefinedAttributeMap() {
046            return null;
047        }
048    
049        /**
050         * Returns null for any attribute
051         * @param attributeName the name of an attribute for the inquiry
052         * @return null, no matter what
053         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getAttributeName(java.lang.String)
054         */
055        @Override
056        protected String getAttributeName(String attributeName) {
057            return null;
058        }
059    
060        /**
061         * Returns null for any name/value pair its handed
062         * @param keyName the name of the key to lookup
063         * @param keyValue the value of the key to lookup
064         * @return null, every time
065         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyValue(java.lang.String, java.lang.Object)
066         */
067        @Override
068        protected Object getKeyValue(String keyName, Object keyValue) {
069            return null;
070        }
071    
072        /**
073         * Given a key name, returns null
074         * @param keyName the key name to change on the fly
075         * @return null, every time
076         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getKeyName(java.lang.String)
077         */
078        @Override
079        protected String getKeyName(String keyName) {
080            return null;
081        }
082    
083        /**
084         * Returns null as the lookupable impl for this inquiry
085         * @return null, there isn't a lookupable impl
086         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getLookupableImplAttributeName()
087         */
088        @Override
089        protected String getLookupableImplAttributeName() {
090            return null;
091        }
092    
093        /**
094         * Returns the base inquiry url to search...in this case, nothing
095         * @return null, as there's no URL to go to
096         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getBaseUrl()
097         */
098        @Override
099        protected String getBaseUrl() {
100            return null;
101        }
102    
103        /**
104         * The class name of the business object that should be inquired on for the attribute
105         * @param the attribute name to build an inquiry for
106         * @return null, as there are no inquiries
107         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#getInquiryBusinessObjectClass(java.lang.String)
108         */
109        @Override
110        protected Class getInquiryBusinessObjectClass(String attributeName) {
111            return null;
112        }
113    
114        /**
115         * Adds no parameters at all
116         * @param parameter the parameter map to add new properties
117         * @param attributeName the name of the attribute being inquired on
118         * @see org.kuali.kfs.gl.businessobject.inquiry.AbstractGeneralLedgerInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String)
119         */
120        @Override
121        protected void addMoreParameters(Properties parameter, String attributeName) {
122        }
123    }