|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.lookup.LookupResultsDDBoLookupableHelperServiceImpl
public class LookupResultsDDBoLookupableHelperServiceImpl
Mock lookupable helper service for the LookupResultsService test
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 |
---|
public LookupResultsDDBoLookupableHelperServiceImpl()
Method Detail |
---|
public List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
getSearchResults
in interface LookupableHelperService
AbstractLookupableHelperServiceImpl
public boolean allowsMaintenanceNewOrCopyAction()
allowsMaintenanceNewOrCopyAction
in interface LookupableHelperService
LookupableHelperService
public boolean allowsNewOrCopyAction(String documentTypeName)
allowsNewOrCopyAction
in interface LookupableHelperService
LookupableHelperService
public void applyFieldAuthorizationsFromNestedLookups(Field field)
applyFieldAuthorizationsFromNestedLookups
in interface LookupableHelperService
LookupableHelperService
public boolean checkForAdditionalFields(Map<String,String> fieldValues)
checkForAdditionalFields
in interface LookupableHelperService
LookupableHelperService
public String getActionUrls(BusinessObject businessObject, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
getActionUrls
in interface LookupableHelperService
LookupableHelperService
public String getBackLocation()
getBackLocation
in interface LookupableHelperService
LookupableHelperService
public Class getBusinessObjectClass()
getBusinessObjectClass
in interface LookupableHelperService
LookupableHelperService
public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
getBusinessObjectDictionaryService
in interface LookupableHelperService
LookupableHelperService
public List<Column> getColumns()
getColumns
in interface LookupableHelperService
LookupableHelperService
public List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames)
getCustomActionUrls
in interface LookupableHelperService
LookupableHelperService
public DataDictionaryService getDataDictionaryService()
getDataDictionaryService
in interface LookupableHelperService
LookupableHelperService
public List getDefaultSortColumns()
getDefaultSortColumns
in interface LookupableHelperService
LookupableHelperService
public String getDocFormKey()
getDocFormKey
in interface LookupableHelperService
LookupableHelperService
public String getDocNum()
getDocNum
in interface LookupableHelperService
LookupableHelperService
public Field getExtraField()
getExtraField
in interface LookupableHelperService
LookupableHelperService
public HtmlData getInquiryUrl(BusinessObject businessObject, String propertyName)
getInquiryUrl
in interface LookupableHelperService
LookupableHelperService
public String getMaintenanceUrl(BusinessObject businessObject, HtmlData htmlData, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
getMaintenanceUrl
in interface LookupableHelperService
LookupableHelperService
public Map getParameters()
getParameters
in interface LookupableHelperService
LookupableHelperService
public String getPrimaryKeyFieldLabels()
getPrimaryKeyFieldLabels
in interface LookupableHelperService
LookupableHelperService
public List<String> getReadOnlyFieldsList()
getReadOnlyFieldsList
in interface LookupableHelperService
LookupableHelperService
public List<String> getReturnKeys()
getReturnKeys
in interface LookupableHelperService
LookupableHelperService
public String getReturnLocation()
getReturnLocation
in interface LookupableHelperService
LookupableHelperService
public HtmlData getReturnUrl(BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
getReturnUrl
in interface LookupableHelperService
LookupableHelperService
public HtmlData getReturnUrl(BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
getReturnUrl
in interface LookupableHelperService
LookupableHelperService
public List<Row> getRows()
getRows
in interface LookupableHelperService
LookupableHelperService
public List getSearchResultsUnbounded(Map<String,String> fieldValues)
getSearchResultsUnbounded
in interface LookupableHelperService
LookupableHelperService
public String getSupplementalMenuBar()
getSupplementalMenuBar
in interface LookupableHelperService
LookupableHelperService
public String getTitle()
getTitle
in interface LookupableHelperService
LookupableHelperService
public boolean isResultReturnable(BusinessObject object)
isResultReturnable
in interface LookupableHelperService
LookupableHelperService
public boolean isSearchUsingOnlyPrimaryKeyValues()
isSearchUsingOnlyPrimaryKeyValues
in interface LookupableHelperService
LookupableHelperService
public void performClear(LookupForm lookupForm)
performClear
in interface LookupableHelperService
LookupableHelperService
public boolean performCustomAction(boolean ignoreErrors)
performCustomAction
in interface LookupableHelperService
LookupableHelperService
public Collection performLookup(LookupForm lookupForm, Collection resultTable, boolean bounded)
performLookup
in interface LookupableHelperService
LookupableHelperService
public void setBackLocation(String backLocation)
setBackLocation
in interface LookupableHelperService
LookupableHelperService
public void setBusinessObjectClass(Class businessObjectClass)
setBusinessObjectClass
in interface LookupableHelperService
LookupableHelperService
public void setDocFormKey(String docFormKey)
setDocFormKey
in interface LookupableHelperService
LookupableHelperService
public void setDocNum(String docNum)
setDocNum
in interface LookupableHelperService
LookupableHelperService
public void setFieldConversions(Map fieldConversions)
setFieldConversions
in interface LookupableHelperService
LookupableHelperService
public void setParameters(Map parameters)
setParameters
in interface LookupableHelperService
LookupableHelperService
public void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
setReadOnlyFieldsList
in interface LookupableHelperService
LookupableHelperService
public boolean shouldDisplayHeaderNonMaintActions()
shouldDisplayHeaderNonMaintActions
in interface LookupableHelperService
LookupableHelperService
public boolean shouldDisplayLookupCriteria()
shouldDisplayLookupCriteria
in interface LookupableHelperService
LookupableHelperService
public void validateSearchParameters(Map<String,String> fieldValues)
validateSearchParameters
in interface LookupableHelperService
LookupableHelperService
public void applyConditionalLogicForFieldDisplay()
applyConditionalLogicForFieldDisplay
in interface LookupableHelperService
LookupableHelperService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |