org.kuali.rice.kns.lookup
Class LookupResultsDDBoLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.LookupResultsDDBoLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, LookupableHelperService

public class LookupResultsDDBoLookupableHelperServiceImpl
extends Object
implements LookupableHelperService

Mock lookupable helper service for the LookupResultsService test

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
LookupResultsDDBoLookupableHelperServiceImpl()
           
 
Method Summary
 boolean allowsMaintenanceNewOrCopyAction()
          Always return false
 boolean allowsNewOrCopyAction(String documentTypeName)
          Always return false
 void applyConditionalLogicForFieldDisplay()
           
 void applyFieldAuthorizationsFromNestedLookups(Field field)
          Don't do anything
 boolean checkForAdditionalFields(Map fieldValues)
          Always returns false
 String getActionUrls(BusinessObject businessObject, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
          Always returns a blank String
 String getBackLocation()
          Always returns blank String
 Class getBusinessObjectClass()
          Always returns the class of LookupResultsDDBo
 BusinessObjectDictionaryService getBusinessObjectDictionaryService()
          Gets the class from the KNSServiceLocatorInternal
 List getColumns()
          Always returns null
 List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames)
          Always returns null
 DataDictionaryService getDataDictionaryService()
          Returns DataDictionaryService from KNSServiceLocatorInternal
 List getDefaultSortColumns()
          Always returns null
 String getDocFormKey()
          Always returns an empty String
 String getDocNum()
          Always returns empty String
 Field getExtraField()
          Always returns null
 HtmlData getInquiryUrl(BusinessObject businessObject, String propertyName)
          Always returns null
 String getMaintenanceUrl(BusinessObject businessObject, HtmlData htmlData, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
          Always returns null
 Map getParameters()
          Always returns null
 String getPrimaryKeyFieldLabels()
          Returns an incredibly sophisticated puzzle that would require the smartest genius on earth years to disentangle.
 List<String> getReadOnlyFieldsList()
          Isn't this class exciting?
 List getReturnKeys()
          It does ever so much work
 String getReturnLocation()
          Returns null for everything
 HtmlData getReturnUrl(BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Yeah, this too
 HtmlData getReturnUrl(BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Why am I doing all of this?
 List<Row> getRows()
          Why not just extend AbstractLookupableHelperServiceImpl?
 List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
          Just sends back whatever someValue was sent in - or "A" as some value if nothing else was out there
 List getSearchResultsUnbounded(Map<String,String> fieldValues)
          Oh, trust me...
 String getSupplementalMenuBar()
          There's a story there
 String getTitle()
          At any rate, my unit test works
 boolean isResultReturnable(BusinessObject object)
          And I just have a lot of dead methods
 boolean isSearchUsingOnlyPrimaryKeyValues()
          I'm not injecting dependencies
 void performClear(LookupForm lookupForm)
          This method found it hard pressed to do anything...
 boolean performCustomAction(boolean ignoreErrors)
          Always returns false
 Collection performLookup(LookupForm lookupForm, Collection resultTable, boolean bounded)
          Always returns null
 void setBackLocation(String backLocation)
          Ignores the passed in value
 void setBusinessObjectClass(Class businessObjectClass)
          Throws the passed in value away
 void setDocFormKey(String docFormKey)
          Did you actually want this mock service to save this information? I think not...
 void setDocNum(String docNum)
          Does nothing
 void setFieldConversions(Map fieldConversions)
          Doesn't do a thing
 void setParameters(Map parameters)
          Doesn't set anything
 void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
          doesn't set anything
 boolean shouldDisplayHeaderNonMaintActions()
          Always returns true, so that James isn't completely bored
 boolean shouldDisplayLookupCriteria()
          Flips a coin to determine whether to return true or false
 void validateSearchParameters(Map fieldValues)
          Everything's valid, trust us
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupResultsDDBoLookupableHelperServiceImpl

public LookupResultsDDBoLookupableHelperServiceImpl()
Method Detail

getSearchResults

public List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
Just sends back whatever someValue was sent in - or "A" as some value if nothing else was out there

Specified by:
getSearchResults in interface LookupableHelperService
See Also:
AbstractLookupableHelperServiceImpl.getSearchResults(java.util.Map)

allowsMaintenanceNewOrCopyAction

public boolean allowsMaintenanceNewOrCopyAction()
Always return false

Specified by:
allowsMaintenanceNewOrCopyAction in interface LookupableHelperService
See Also:
LookupableHelperService.allowsMaintenanceNewOrCopyAction()

allowsNewOrCopyAction

public boolean allowsNewOrCopyAction(String documentTypeName)
Always return false

Specified by:
allowsNewOrCopyAction in interface LookupableHelperService
See Also:
LookupableHelperService.allowsNewOrCopyAction(java.lang.String)

applyFieldAuthorizationsFromNestedLookups

public void applyFieldAuthorizationsFromNestedLookups(Field field)
Don't do anything

Specified by:
applyFieldAuthorizationsFromNestedLookups in interface LookupableHelperService
See Also:
LookupableHelperService.applyFieldAuthorizationsFromNestedLookups(org.kuali.rice.kns.web.ui.Field)

checkForAdditionalFields

public boolean checkForAdditionalFields(Map fieldValues)
Always returns false

Specified by:
checkForAdditionalFields in interface LookupableHelperService
See Also:
LookupableHelperService.checkForAdditionalFields(java.util.Map)

getActionUrls

public String getActionUrls(BusinessObject businessObject,
                            List pkNames,
                            BusinessObjectRestrictions businessObjectRestrictions)
Always returns a blank String

Specified by:
getActionUrls in interface LookupableHelperService
See Also:
LookupableHelperService.getActionUrls(org.kuali.rice.kns.bo.BusinessObject, java.util.List, org.kuali.rice.kns.authorization.BusinessObjectRestrictions)

getBackLocation

public String getBackLocation()
Always returns blank String

Specified by:
getBackLocation in interface LookupableHelperService
See Also:
LookupableHelperService.getBackLocation()

getBusinessObjectClass

public Class getBusinessObjectClass()
Always returns the class of LookupResultsDDBo

Specified by:
getBusinessObjectClass in interface LookupableHelperService
See Also:
LookupableHelperService.getBusinessObjectClass()

getBusinessObjectDictionaryService

public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
Gets the class from the KNSServiceLocatorInternal

Specified by:
getBusinessObjectDictionaryService in interface LookupableHelperService
See Also:
LookupableHelperService.getBusinessObjectDictionaryService()

getColumns

public List getColumns()
Always returns null

Specified by:
getColumns in interface LookupableHelperService
See Also:
LookupableHelperService.getColumns()

getCustomActionUrls

public List<HtmlData> getCustomActionUrls(BusinessObject businessObject,
                                          List pkNames)
Always returns null

Specified by:
getCustomActionUrls in interface LookupableHelperService
See Also:
LookupableHelperService.getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject, java.util.List)

getDataDictionaryService

public DataDictionaryService getDataDictionaryService()
Returns DataDictionaryService from KNSServiceLocatorInternal

Specified by:
getDataDictionaryService in interface LookupableHelperService
See Also:
LookupableHelperService.getDataDictionaryService()

getDefaultSortColumns

public List getDefaultSortColumns()
Always returns null

Specified by:
getDefaultSortColumns in interface LookupableHelperService
See Also:
LookupableHelperService.getDefaultSortColumns()

getDocFormKey

public String getDocFormKey()
Always returns an empty String

Specified by:
getDocFormKey in interface LookupableHelperService
See Also:
LookupableHelperService.getDocFormKey()

getDocNum

public String getDocNum()
Always returns empty String

Specified by:
getDocNum in interface LookupableHelperService
See Also:
LookupableHelperService.getDocNum()

getExtraField

public Field getExtraField()
Always returns null

Specified by:
getExtraField in interface LookupableHelperService
See Also:
LookupableHelperService.getExtraField()

getInquiryUrl

public HtmlData getInquiryUrl(BusinessObject businessObject,
                              String propertyName)
Always returns null

Specified by:
getInquiryUrl in interface LookupableHelperService
See Also:
LookupableHelperService.getInquiryUrl(org.kuali.rice.kns.bo.BusinessObject, java.lang.String)

getMaintenanceUrl

public String getMaintenanceUrl(BusinessObject businessObject,
                                HtmlData htmlData,
                                List pkNames,
                                BusinessObjectRestrictions businessObjectRestrictions)
Always returns null

Specified by:
getMaintenanceUrl in interface LookupableHelperService
See Also:
LookupableHelperService.getMaintenanceUrl(org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.lookup.HtmlData, java.util.List, org.kuali.rice.kns.authorization.BusinessObjectRestrictions)

getParameters

public Map getParameters()
Always returns null

Specified by:
getParameters in interface LookupableHelperService
See Also:
LookupableHelperService.getParameters()

getPrimaryKeyFieldLabels

public String getPrimaryKeyFieldLabels()
Returns an incredibly sophisticated puzzle that would require the smartest genius on earth years to disentangle. It only appears to return null

Specified by:
getPrimaryKeyFieldLabels in interface LookupableHelperService
See Also:
LookupableHelperService.getPrimaryKeyFieldLabels()

getReadOnlyFieldsList

public List<String> getReadOnlyFieldsList()
Isn't this class exciting?

Specified by:
getReadOnlyFieldsList in interface LookupableHelperService
See Also:
LookupableHelperService.getReadOnlyFieldsList()

getReturnKeys

public List getReturnKeys()
It does ever so much work

Specified by:
getReturnKeys in interface LookupableHelperService
See Also:
LookupableHelperService.getReturnKeys()

getReturnLocation

public String getReturnLocation()
Returns null for everything

Specified by:
getReturnLocation in interface LookupableHelperService
See Also:
LookupableHelperService.getReturnLocation()

getReturnUrl

public HtmlData getReturnUrl(BusinessObject businessObject,
                             LookupForm lookupForm,
                             List returnKeys,
                             BusinessObjectRestrictions businessObjectRestrictions)
Yeah, this too

Specified by:
getReturnUrl in interface LookupableHelperService
See Also:
LookupableHelperService.getReturnUrl(org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.web.struts.form.LookupForm, java.util.List, org.kuali.rice.kns.authorization.BusinessObjectRestrictions)

getReturnUrl

public HtmlData getReturnUrl(BusinessObject businessObject,
                             Map fieldConversions,
                             String lookupImpl,
                             List returnKeys,
                             BusinessObjectRestrictions businessObjectRestrictions)
Why am I doing all of this?

Specified by:
getReturnUrl in interface LookupableHelperService
See Also:
LookupableHelperService.getReturnUrl(org.kuali.rice.kns.bo.BusinessObject, java.util.Map, java.lang.String, java.util.List, org.kuali.rice.kns.authorization.BusinessObjectRestrictions)

getRows

public List<Row> getRows()
Why not just extend AbstractLookupableHelperServiceImpl?

Specified by:
getRows in interface LookupableHelperService
See Also:
LookupableHelperService.getRows()

getSearchResultsUnbounded

public List getSearchResultsUnbounded(Map<String,String> fieldValues)
Oh, trust me...

Specified by:
getSearchResultsUnbounded in interface LookupableHelperService
See Also:
LookupableHelperService.getSearchResultsUnbounded(java.util.Map)

getSupplementalMenuBar

public String getSupplementalMenuBar()
There's a story there

Specified by:
getSupplementalMenuBar in interface LookupableHelperService
See Also:
LookupableHelperService.getSupplementalMenuBar()

getTitle

public String getTitle()
At any rate, my unit test works

Specified by:
getTitle in interface LookupableHelperService
See Also:
LookupableHelperService.getTitle()

isResultReturnable

public boolean isResultReturnable(BusinessObject object)
And I just have a lot of dead methods

Specified by:
isResultReturnable in interface LookupableHelperService
See Also:
LookupableHelperService.isResultReturnable(org.kuali.rice.kns.bo.BusinessObject)

isSearchUsingOnlyPrimaryKeyValues

public boolean isSearchUsingOnlyPrimaryKeyValues()
I'm not injecting dependencies

Specified by:
isSearchUsingOnlyPrimaryKeyValues in interface LookupableHelperService
See Also:
LookupableHelperService.isSearchUsingOnlyPrimaryKeyValues()

performClear

public void performClear(LookupForm lookupForm)
This method found it hard pressed to do anything...

Specified by:
performClear in interface LookupableHelperService
See Also:
LookupableHelperService.performClear(org.kuali.rice.kns.web.struts.form.LookupForm)

performCustomAction

public boolean performCustomAction(boolean ignoreErrors)
Always returns false

Specified by:
performCustomAction in interface LookupableHelperService
See Also:
LookupableHelperService.performCustomAction(boolean)

performLookup

public Collection performLookup(LookupForm lookupForm,
                                Collection resultTable,
                                boolean bounded)
Always returns null

Specified by:
performLookup in interface LookupableHelperService
See Also:
LookupableHelperService.performLookup(org.kuali.rice.kns.web.struts.form.LookupForm, java.util.Collection, boolean)

setBackLocation

public void setBackLocation(String backLocation)
Ignores the passed in value

Specified by:
setBackLocation in interface LookupableHelperService
See Also:
LookupableHelperService.setBackLocation(java.lang.String)

setBusinessObjectClass

public void setBusinessObjectClass(Class businessObjectClass)
Throws the passed in value away

Specified by:
setBusinessObjectClass in interface LookupableHelperService
See Also:
LookupableHelperService.setBusinessObjectClass(java.lang.Class)

setDocFormKey

public void setDocFormKey(String docFormKey)
Did you actually want this mock service to save this information? I think not...

Specified by:
setDocFormKey in interface LookupableHelperService
See Also:
LookupableHelperService.setDocFormKey(java.lang.String)

setDocNum

public void setDocNum(String docNum)
Does nothing

Specified by:
setDocNum in interface LookupableHelperService
See Also:
LookupableHelperService.setDocNum(java.lang.String)

setFieldConversions

public void setFieldConversions(Map fieldConversions)
Doesn't do a thing

Specified by:
setFieldConversions in interface LookupableHelperService
See Also:
LookupableHelperService.setFieldConversions(java.util.Map)

setParameters

public void setParameters(Map parameters)
Doesn't set anything

Specified by:
setParameters in interface LookupableHelperService
See Also:
LookupableHelperService.setParameters(java.util.Map)

setReadOnlyFieldsList

public void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
doesn't set anything

Specified by:
setReadOnlyFieldsList in interface LookupableHelperService
See Also:
LookupableHelperService.setReadOnlyFieldsList(java.util.List)

shouldDisplayHeaderNonMaintActions

public boolean shouldDisplayHeaderNonMaintActions()
Always returns true, so that James isn't completely bored

Specified by:
shouldDisplayHeaderNonMaintActions in interface LookupableHelperService
See Also:
LookupableHelperService.shouldDisplayHeaderNonMaintActions()

shouldDisplayLookupCriteria

public boolean shouldDisplayLookupCriteria()
Flips a coin to determine whether to return true or false

Specified by:
shouldDisplayLookupCriteria in interface LookupableHelperService
See Also:
LookupableHelperService.shouldDisplayLookupCriteria()

validateSearchParameters

public void validateSearchParameters(Map fieldValues)
Everything's valid, trust us

Specified by:
validateSearchParameters in interface LookupableHelperService
See Also:
LookupableHelperService.validateSearchParameters(java.util.Map)

applyConditionalLogicForFieldDisplay

public void applyConditionalLogicForFieldDisplay()
Specified by:
applyConditionalLogicForFieldDisplay in interface LookupableHelperService
See Also:
LookupableHelperService.applyConditionalLogicForFieldDisplay()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.