001: /*
002: * Copyright 2006-2007 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: * This class is used to generate the URL for the user-defined attributes for the GL entry screen. It is entended the
024: * KualiInquirableImpl class, so it covers both the default implementation and customized implemetnation.
025: */
026: public class EntryInquirableImpl extends AbstractGLInquirableImpl {
027: private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger
028: .getLogger(EntryInquirableImpl.class); // this class, which does *nothing* has a Log? Funny.
029:
030: /**
031: * Since there are no user defined attributes, returns null
032: * @return null - no user defined attributes
033: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#buildUserDefinedAttributeKeyList()
034: */
035: @Override
036: protected List buildUserDefinedAttributeKeyList() {
037: return null;
038: }
039:
040: /**
041: * Returns null as the map, as there are no drill downs here
042: * @return null for the map of attributes
043: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getUserDefinedAttributeMap()
044: */
045: @Override
046: protected Map getUserDefinedAttributeMap() {
047: return null;
048: }
049:
050: /**
051: * Returns null for any attribute
052: * @param attributeName the name of an attribute for the inquiry
053: * @return null, no matter what
054: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getAttributeName(java.lang.String)
055: */
056: @Override
057: protected String getAttributeName(String attributeName) {
058: return null;
059: }
060:
061: /**
062: * Returns null for any name/value pair its handed
063: * @param keyName the name of the key to lookup
064: * @param keyValue the value of the key to lookup
065: * @return null, every time
066: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getKeyValue(java.lang.String, java.lang.Object)
067: */
068: @Override
069: protected Object getKeyValue(String keyName, Object keyValue) {
070: return null;
071: }
072:
073: /**
074: * Given a key name, returns null
075: * @param keyName the key name to change on the fly
076: * @return null, every time
077: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getKeyName(java.lang.String)
078: */
079: @Override
080: protected String getKeyName(String keyName) {
081: return null;
082: }
083:
084: /**
085: * Returns null as the lookupable impl for this inquiry
086: * @return null, there isn't a lookupable impl
087: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getLookupableImplAttributeName()
088: */
089: @Override
090: protected String getLookupableImplAttributeName() {
091: return null;
092: }
093:
094: /**
095: * Returns the base inquiry url to search...in this case, nothing
096: * @return null, as there's no URL to go to
097: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getBaseUrl()
098: */
099: @Override
100: protected String getBaseUrl() {
101: return null;
102: }
103:
104: /**
105: * The class name of the business object that should be inquired on for the attribute
106: * @param the attribute name to build an inquiry for
107: * @return null, as there are no inquiries
108: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#getInquiryBusinessObjectClass(java.lang.String)
109: */
110: @Override
111: protected Class getInquiryBusinessObjectClass(String attributeName) {
112: return null;
113: }
114:
115: /**
116: * Adds no parameters at all
117: * @param parameter the parameter map to add new properties
118: * @param attributeName the name of the attribute being inquired on
119: * @see org.kuali.module.gl.web.inquirable.AbstractGLInquirableImpl#addMoreParameters(java.util.Properties, java.lang.String)
120: */
121: @Override
122: protected void addMoreParameters(Properties parameter,
123: String attributeName) {
124: }
125: }
|