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<String,String> 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 KRADServiceLocatorInternal
 List<Column> getColumns()
          Always returns null
 List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames)
          Always returns null
 DataDictionaryService getDataDictionaryService()
          Returns DataDictionaryService from KRADServiceLocatorInternal
 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<String> 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<String,String> 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

allowsMaintenanceNewOrCopyAction

public boolean allowsMaintenanceNewOrCopyAction()
Always return false

Specified by:
allowsMaintenanceNewOrCopyAction in interface LookupableHelperService
See Also:
LookupableHelperService

allowsNewOrCopyAction

public boolean allowsNewOrCopyAction(String documentTypeName)
Always return false

Specified by:
allowsNewOrCopyAction in interface LookupableHelperService
See Also:
LookupableHelperService

applyFieldAuthorizationsFromNestedLookups

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

Specified by:
applyFieldAuthorizationsFromNestedLookups in interface LookupableHelperService
See Also:
LookupableHelperService

checkForAdditionalFields

public boolean checkForAdditionalFields(Map<String,String> fieldValues)
Always returns false

Specified by:
checkForAdditionalFields in interface LookupableHelperService
See Also:
LookupableHelperService

getActionUrls

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

Specified by:
getActionUrls in interface LookupableHelperService
See Also:
LookupableHelperService

getBackLocation

public String getBackLocation()
Always returns blank String

Specified by:
getBackLocation in interface LookupableHelperService
See Also:
LookupableHelperService

getBusinessObjectClass

public Class getBusinessObjectClass()
Always returns the class of LookupResultsDDBo

Specified by:
getBusinessObjectClass in interface LookupableHelperService
See Also:
LookupableHelperService

getBusinessObjectDictionaryService

public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
Gets the class from the KRADServiceLocatorInternal

Specified by:
getBusinessObjectDictionaryService in interface LookupableHelperService
See Also:
LookupableHelperService

getColumns

public List<Column> getColumns()
Always returns null

Specified by:
getColumns in interface LookupableHelperService
See Also:
LookupableHelperService

getCustomActionUrls

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

Specified by:
getCustomActionUrls in interface LookupableHelperService
See Also:
LookupableHelperService

getDataDictionaryService

public DataDictionaryService getDataDictionaryService()
Returns DataDictionaryService from KRADServiceLocatorInternal

Specified by:
getDataDictionaryService in interface LookupableHelperService
See Also:
LookupableHelperService

getDefaultSortColumns

public List getDefaultSortColumns()
Always returns null

Specified by:
getDefaultSortColumns in interface LookupableHelperService
See Also:
LookupableHelperService

getDocFormKey

public String getDocFormKey()
Always returns an empty String

Specified by:
getDocFormKey in interface LookupableHelperService
See Also:
LookupableHelperService

getDocNum

public String getDocNum()
Always returns empty String

Specified by:
getDocNum in interface LookupableHelperService
See Also:
LookupableHelperService

getExtraField

public Field getExtraField()
Always returns null

Specified by:
getExtraField in interface LookupableHelperService
See Also:
LookupableHelperService

getInquiryUrl

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

Specified by:
getInquiryUrl in interface LookupableHelperService
See Also:
LookupableHelperService

getMaintenanceUrl

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

Specified by:
getMaintenanceUrl in interface LookupableHelperService
See Also:
LookupableHelperService

getParameters

public Map getParameters()
Always returns null

Specified by:
getParameters in interface LookupableHelperService
See Also:
LookupableHelperService

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

getReadOnlyFieldsList

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

Specified by:
getReadOnlyFieldsList in interface LookupableHelperService
See Also:
LookupableHelperService

getReturnKeys

public List<String> getReturnKeys()
It does ever so much work

Specified by:
getReturnKeys in interface LookupableHelperService
See Also:
LookupableHelperService

getReturnLocation

public String getReturnLocation()
Returns null for everything

Specified by:
getReturnLocation in interface LookupableHelperService
See Also:
LookupableHelperService

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

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

getRows

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

Specified by:
getRows in interface LookupableHelperService
See Also:
LookupableHelperService

getSearchResultsUnbounded

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

Specified by:
getSearchResultsUnbounded in interface LookupableHelperService
See Also:
LookupableHelperService

getSupplementalMenuBar

public String getSupplementalMenuBar()
There's a story there

Specified by:
getSupplementalMenuBar in interface LookupableHelperService
See Also:
LookupableHelperService

getTitle

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

Specified by:
getTitle in interface LookupableHelperService
See Also:
LookupableHelperService

isResultReturnable

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

Specified by:
isResultReturnable in interface LookupableHelperService
See Also:
LookupableHelperService

isSearchUsingOnlyPrimaryKeyValues

public boolean isSearchUsingOnlyPrimaryKeyValues()
I'm not injecting dependencies

Specified by:
isSearchUsingOnlyPrimaryKeyValues in interface LookupableHelperService
See Also:
LookupableHelperService

performClear

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

Specified by:
performClear in interface LookupableHelperService
See Also:
LookupableHelperService

performCustomAction

public boolean performCustomAction(boolean ignoreErrors)
Always returns false

Specified by:
performCustomAction in interface LookupableHelperService
See Also:
LookupableHelperService

performLookup

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

Specified by:
performLookup in interface LookupableHelperService
See Also:
LookupableHelperService

setBackLocation

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

Specified by:
setBackLocation in interface LookupableHelperService
See Also:
LookupableHelperService

setBusinessObjectClass

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

Specified by:
setBusinessObjectClass in interface LookupableHelperService
See Also:
LookupableHelperService

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

setDocNum

public void setDocNum(String docNum)
Does nothing

Specified by:
setDocNum in interface LookupableHelperService
See Also:
LookupableHelperService

setFieldConversions

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

Specified by:
setFieldConversions in interface LookupableHelperService
See Also:
LookupableHelperService

setParameters

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

Specified by:
setParameters in interface LookupableHelperService
See Also:
LookupableHelperService

setReadOnlyFieldsList

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

Specified by:
setReadOnlyFieldsList in interface LookupableHelperService
See Also:
LookupableHelperService

shouldDisplayHeaderNonMaintActions

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

Specified by:
shouldDisplayHeaderNonMaintActions in interface LookupableHelperService
See Also:
LookupableHelperService

shouldDisplayLookupCriteria

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

Specified by:
shouldDisplayLookupCriteria in interface LookupableHelperService
See Also:
LookupableHelperService

validateSearchParameters

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

Specified by:
validateSearchParameters in interface LookupableHelperService
See Also:
LookupableHelperService

applyConditionalLogicForFieldDisplay

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


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.