org.kuali.rice.kns.lookup
Class AbstractLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, LookupableHelperService
Direct Known Subclasses:
KualiLookupableHelperServiceImpl, PessimisticLockLookupableHelperServiceImpl

Deprecated. Use LookupableImpl.

@Deprecated
public abstract class AbstractLookupableHelperServiceImpl
extends Object
implements LookupableHelperService

This class declares many of the common spring injected properties, the get/set-ers for them, and some common util methods that require the injected services

See Also:
Serialized Form

Field Summary
protected static String ACTION_URLS_CHILDREN_END
          Deprecated.  
protected static String ACTION_URLS_CHILDREN_SEPARATOR
          Deprecated.  
protected static String ACTION_URLS_CHILDREN_STARTER
          Deprecated.  
protected static String ACTION_URLS_EMPTY
          Deprecated.  
protected static String ACTION_URLS_SEPARATOR
          Deprecated.  
protected  String backLocation
          Deprecated.  
protected  BusinessObjectAuthorizationService businessObjectAuthorizationService
          Deprecated.  
protected  Class businessObjectClass
          Deprecated.  
protected  BusinessObjectDictionaryService businessObjectDictionaryService
          Deprecated.  
protected  BusinessObjectMetaDataService businessObjectMetaDataService
          Deprecated.  
protected  BusinessObjectService businessObjectService
          Deprecated.  
protected  ConfigurationService configurationService
          Deprecated.  
protected  DataDictionaryService dataDictionaryService
          Deprecated.  
protected  String docFormKey
          Deprecated.  
protected  String docNum
          Deprecated.  
protected  EncryptionService encryptionService
          Deprecated.  
protected  Map fieldConversions
          Deprecated.  
protected  HashMap<String,Boolean> forceLookupResultFieldInquiryCache
          Deprecated.  
protected  HashMap<Class,Class> inquirableClassCache
          Deprecated.  
protected  Inquirable kualiInquirable
          Deprecated.  
protected static org.apache.log4j.Logger LOG
          Deprecated.  
protected  LookupResultsService lookupResultsService
          Deprecated.  
protected  LookupService lookupService
          Deprecated.  
protected  MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
          Deprecated.  
protected  HashMap<String,Boolean> noLookupResultFieldInquiryCache
          Deprecated.  
protected  Map<String,String[]> parameters
          Deprecated.  
protected  ParameterService parameterService
          Deprecated.  
protected  PersistenceStructureService persistenceStructureService
          Deprecated.  
protected  List<String> readOnlyFieldsList
          Deprecated.  
protected  String referencesToRefresh
          Deprecated.  
protected  CopiedObject<ArrayList<Column>> resultColumns
          Deprecated.  
protected static Integer RESULTS_DEFAULT_MAX_COLUMN_LENGTH
          Deprecated.  
protected  List<Row> rows
          Deprecated.  
protected  SequenceAccessorService sequenceAccessorService
          Deprecated.  
protected static String TITLE_ACTION_URL_PREPENDTEXT_PROPERTY
          Deprecated.  
protected static String TITLE_RETURN_URL_PREPENDTEXT_PROPERTY
          Deprecated.  
 
Constructor Summary
AbstractLookupableHelperServiceImpl()
          Deprecated.  
 
Method Summary
protected  String addToReturnHref(String href, LookupForm lookupForm)
          Deprecated.  
protected  boolean allowsMaintenanceDeleteAction(BusinessObject businessObject)
          Deprecated. This method ...
protected  boolean allowsMaintenanceEditAction(BusinessObject businessObject)
          Deprecated.  
 boolean allowsMaintenanceNewOrCopyAction()
          Deprecated. Determines if underlying lookup bo has associated maintenance document that allows new or copy maintenance actions.
 boolean allowsNewOrCopyAction(String documentTypeName)
          Deprecated. Determines if underlying lookup bo has associated document that allows new or copy maintenance actions.
 void applyConditionalLogicForFieldDisplay()
          Deprecated. Calls methods that can be overridden by child lookupables to implement conditional logic for setting read-only, required, and hidden attributes.
 void applyFieldAuthorizationsFromNestedLookups(Field field)
          Deprecated. Functional requirements state that users are able to perform searches using criteria values that they are not allowed to view.
 boolean checkForAdditionalFields(Map<String,String> fieldValues)
          Deprecated. This implementation always returns false.
protected  String getActionUrlHref(BusinessObject businessObject, String methodToCall, List pkNames)
          Deprecated. This method generates and returns href for the given parameters.
 String getActionUrls(BusinessObject businessObject, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated. This method is called by performLookup method to generate action urls.
protected  String getActionUrlTitleText(BusinessObject businessObject, String displayText, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated. This method generates and returns title text for action urls.
 String getBackLocation()
          Deprecated.  
 BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
          Deprecated.  
 Class getBusinessObjectClass()
          Deprecated.  
 BusinessObjectDictionaryService getBusinessObjectDictionaryService()
          Deprecated. Gets the businessObjectDictionaryService attribute.
 BusinessObjectMetaDataService getBusinessObjectMetaDataService()
          Deprecated. Gets the businessObjectMetaDataService attribute.
 BusinessObjectService getBusinessObjectService()
          Deprecated.  
protected  int getColumnMaxLength(String attributeName)
          Deprecated.  
 List<Column> getColumns()
          Deprecated. Constructs the list of columns for the search results.
 Set<String> getConditionallyHiddenPropertyNames()
          Deprecated.  
 Set<String> getConditionallyReadOnlyPropertyNames()
          Deprecated.  
 Set<String> getConditionallyRequiredPropertyNames()
          Deprecated.  
protected  String getCurrentSearchFieldValue(String propertyName)
          Deprecated. Helper method to get the value for a property out of the row-field graph.
 List<HtmlData> getCustomActionUrls(BusinessObject businessObject, List pkNames)
          Deprecated. Child classes should override this method if they want to return some other action urls.
 DataDictionaryService getDataDictionaryService()
          Deprecated. Gets the dataDictionaryService attribute.
 List<String> getDefaultSortColumns()
          Deprecated. Uses the DD to determine which is the default sort order.
 String getDocFormKey()
          Deprecated. Gets the docFormKey attribute.
 String getDocNum()
          Deprecated.  
protected  List<HtmlData> getEmptyActionUrls()
          Deprecated. A utility method that returns an empty list of action urls.
protected  HtmlData getEmptyAnchorHtmlData()
          Deprecated.  
protected  EncryptionService getEncryptionService()
          Deprecated. Gets the encryptionService attribute.
 Field getExtraField()
          Deprecated. get an extra field
 HtmlData getInquiryUrl(BusinessObject bo, String propertyName)
          Deprecated. Returns the inquiry url for a field if one exist.
 ConfigurationService getKualiConfigurationService()
          Deprecated.  
 Inquirable getKualiInquirable()
          Deprecated.  
protected  LookupResultsService getLookupResultsService()
          Deprecated.  
protected  LookupService getLookupService()
          Deprecated. Gets the lookupService attribute.
 MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
          Deprecated.  
protected  String getMaintenanceDocumentTypeName()
          Deprecated. Returns the maintenance document type associated with the business object class or null if one does not exist.
 String getMaintenanceUrl(BusinessObject businessObject, HtmlData htmlData, List pkNames, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated. Build a maintenance url.
 Map<String,String[]> getParameters()
          Deprecated.  
protected  Properties getParameters(BusinessObject bo, Map<String,String> fieldConversions, String lookupImpl, List returnKeys)
          Deprecated.  
 ParameterService getParameterService()
          Deprecated.  
protected  Properties getParametersFromPrimaryKey(BusinessObject businessObject, List pkNames)
          Deprecated.  
protected  PersistenceStructureService getPersistenceStructureService()
          Deprecated. Gets the persistenceStructureService attribute.
 String getPrimaryKeyFieldLabels()
          Deprecated. Returns "N/A"
protected  Class getPropertyClass(BusinessObject element, String propertyName)
          Deprecated. Gets the Class for the property in the given BusinessObject instance, if property is not accessible then runtime exception is thrown
 List<String> getReadOnlyFieldsList()
          Deprecated. Gets the readOnlyFieldsList attribute.
 String getReferencesToRefresh()
          Deprecated.  
protected  HtmlData getReturnAnchorHtmlData(BusinessObject businessObject, Properties parameters, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated.  
protected  String getReturnHref(BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys)
          Deprecated. This method is for lookupable implementations
protected  String getReturnHref(Properties parameters, LookupForm lookupForm, List returnKeys)
          Deprecated.  
protected  HtmlData getReturnInputHtmlData(BusinessObject businessObject, Properties parameters, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated.  
 List<String> getReturnKeys()
          Deprecated. This method is public because some unit tests depend on it.
 String getReturnLocation()
          Deprecated.  
 HtmlData getReturnUrl(BusinessObject businessObject, LookupForm lookupForm, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated. This method builds the return url
 HtmlData getReturnUrl(BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated. This method is for lookupable implementations
 List<Row> getRows()
          Deprecated. Returns a list of Row objects to be used to generate the search query screen Generally, setDataObjectClass needs to be called with a non-null value for proper operation
abstract  List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
          Deprecated. Performs a search and returns result list.
 List<? extends BusinessObject> getSearchResultsUnbounded(Map<String,String> fieldValues)
          Deprecated. This implementation of this method throws an UnsupportedOperationException, since not every implementation may actually want to use this operation.
protected  SequenceAccessorService getSequenceAccessorService()
          Deprecated.  
 String getSupplementalMenuBar()
          Deprecated. This method gets the supplemental lookup menu if any
 String getTitle()
          Deprecated.  
protected  HtmlData.AnchorHtmlData getUrlData(BusinessObject businessObject, String methodToCall, List pkNames)
          Deprecated. This method calls its overloaded method with displayText as methodToCall
protected  HtmlData.AnchorHtmlData getUrlData(BusinessObject businessObject, String methodToCall, String displayText, List pkNames)
          Deprecated. This method constructs an AnchorHtmlData.
 boolean isResultReturnable(BusinessObject object)
          Deprecated. Determines whether a given BusinessObject that's returned as one of the lookup's results is considered returnable, which means that for single-value lookups, a "return value" link may be rendered, and for multiple value lookups, a checkbox is rendered.
 boolean isSearchUsingOnlyPrimaryKeyValues()
          Deprecated. This method returns whether the previously executed getSearchResults used the primary key values to search, ignoring all non key values
protected  String maskValueIfNecessary(Class businessObjectClass, String propertyName, String propertyValue, BusinessObjectRestrictions businessObjectRestrictions)
          Deprecated.  
 void performClear(LookupForm lookupForm)
          Deprecated. This method does the logic for the clear action.
 boolean performCustomAction(boolean ignoreErrors)
          Deprecated. performs custom actions.
 Collection<? extends BusinessObject> performLookup(LookupForm lookupForm, Collection<ResultRow> resultTable, boolean bounded)
          Deprecated. Performs the lookup and returns a collection of lookup items
 void setBackLocation(String backLocation)
          Deprecated.  
 void setBusinessObjectClass(Class businessObjectClass)
          Deprecated. Initializes the lookup with a business object class.
 void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
          Deprecated. Sets the businessObjectDictionaryService attribute value.
 void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
          Deprecated. Sets the businessObjectMetaDataService attribute value.
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Deprecated.  
 void setDataDictionaryService(DataDictionaryService dataDictionaryService)
          Deprecated. Sets the dataDictionaryService attribute value.
 void setDocFormKey(String docFormKey)
          Deprecated. Sets the docFormKey attribute value.
 void setDocNum(String docNum)
          Deprecated.  
 void setEncryptionService(EncryptionService encryptionService)
          Deprecated. Sets the encryptionService attribute value.
 void setFieldConversions(Map fieldConversions)
          Deprecated. Sets the requested fields conversions in the lookupable
 void setKualiInquirable(Inquirable kualiInquirable)
          Deprecated.  
 void setLookupResultsService(LookupResultsService lookupResultsService)
          Deprecated.  
 void setLookupService(LookupService lookupService)
          Deprecated. Sets the lookupService attribute value.
 void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
          Deprecated.  
 void setParameters(Map<String,String[]> parameters)
          Deprecated. Initializes the lookup with the given Map of parameters.
 void setParameterService(ConfigurationService configurationService)
          Deprecated.  
 void setParameterService(ParameterService parameterService)
          Deprecated.  
 void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
          Deprecated. Sets the persistenceStructureService attribute value.
 void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
          Deprecated. Sets the readOnlyFieldsList attribute value.
protected  void setReferencesToRefresh(String referencesToRefresh)
          Deprecated.  
protected  void setRows()
          Deprecated. Constructs the list of rows for the search fields.
 void setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
          Deprecated.  
 boolean shouldDisplayHeaderNonMaintActions()
          Deprecated.  
 boolean shouldDisplayLookupCriteria()
          Deprecated.  
 void validateSearchParameters(Map<String,String> fieldValues)
          Deprecated. Checks that any required search fields have value.
protected  void validateSearchParameterWildcardAndOperators(String attributeName, String attributeValue)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_RETURN_URL_PREPENDTEXT_PROPERTY

protected static final String TITLE_RETURN_URL_PREPENDTEXT_PROPERTY
Deprecated. 
See Also:
Constant Field Values

TITLE_ACTION_URL_PREPENDTEXT_PROPERTY

protected static final String TITLE_ACTION_URL_PREPENDTEXT_PROPERTY
Deprecated. 
See Also:
Constant Field Values

ACTION_URLS_CHILDREN_SEPARATOR

protected static final String ACTION_URLS_CHILDREN_SEPARATOR
Deprecated. 
See Also:
Constant Field Values

ACTION_URLS_CHILDREN_STARTER

protected static final String ACTION_URLS_CHILDREN_STARTER
Deprecated. 
See Also:
Constant Field Values

ACTION_URLS_CHILDREN_END

protected static final String ACTION_URLS_CHILDREN_END
Deprecated. 
See Also:
Constant Field Values

ACTION_URLS_SEPARATOR

protected static final String ACTION_URLS_SEPARATOR
Deprecated. 
See Also:
Constant Field Values

ACTION_URLS_EMPTY

protected static final String ACTION_URLS_EMPTY
Deprecated. 
See Also:
Constant Field Values

LOG

protected static final org.apache.log4j.Logger LOG
Deprecated. 

businessObjectClass

protected Class businessObjectClass
Deprecated. 

parameters

protected Map<String,String[]> parameters
Deprecated. 

businessObjectDictionaryService

protected BusinessObjectDictionaryService businessObjectDictionaryService
Deprecated. 

businessObjectMetaDataService

protected BusinessObjectMetaDataService businessObjectMetaDataService
Deprecated. 

dataDictionaryService

protected DataDictionaryService dataDictionaryService
Deprecated. 

persistenceStructureService

protected PersistenceStructureService persistenceStructureService
Deprecated. 

encryptionService

protected EncryptionService encryptionService
Deprecated. 

readOnlyFieldsList

protected List<String> readOnlyFieldsList
Deprecated. 

backLocation

protected String backLocation
Deprecated. 

docFormKey

protected String docFormKey
Deprecated. 

fieldConversions

protected Map fieldConversions
Deprecated. 

lookupService

protected LookupService lookupService
Deprecated. 

rows

protected List<Row> rows
Deprecated. 

referencesToRefresh

protected String referencesToRefresh
Deprecated. 

sequenceAccessorService

protected SequenceAccessorService sequenceAccessorService
Deprecated. 

businessObjectService

protected BusinessObjectService businessObjectService
Deprecated. 

lookupResultsService

protected LookupResultsService lookupResultsService
Deprecated. 

docNum

protected String docNum
Deprecated. 

configurationService

protected ConfigurationService configurationService
Deprecated. 

parameterService

protected ParameterService parameterService
Deprecated. 

businessObjectAuthorizationService

protected BusinessObjectAuthorizationService businessObjectAuthorizationService
Deprecated. 

maintenanceDocumentDictionaryService

protected MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
Deprecated. 

kualiInquirable

protected Inquirable kualiInquirable
Deprecated. 

noLookupResultFieldInquiryCache

protected HashMap<String,Boolean> noLookupResultFieldInquiryCache
Deprecated. 

inquirableClassCache

protected HashMap<Class,Class> inquirableClassCache
Deprecated. 

forceLookupResultFieldInquiryCache

protected HashMap<String,Boolean> forceLookupResultFieldInquiryCache
Deprecated. 

resultColumns

protected CopiedObject<ArrayList<Column>> resultColumns
Deprecated. 

RESULTS_DEFAULT_MAX_COLUMN_LENGTH

protected static Integer RESULTS_DEFAULT_MAX_COLUMN_LENGTH
Deprecated. 
Constructor Detail

AbstractLookupableHelperServiceImpl

public AbstractLookupableHelperServiceImpl()
Deprecated. 
Method Detail

getDocNum

public String getDocNum()
Deprecated. 
Specified by:
getDocNum in interface LookupableHelperService
Returns:
the docNum

setDocNum

public void setDocNum(String docNum)
Deprecated. 
Specified by:
setDocNum in interface LookupableHelperService
Parameters:
docNum - the docNum to set

checkForAdditionalFields

public boolean checkForAdditionalFields(Map<String,String> fieldValues)
Deprecated. 
This implementation always returns false.

Specified by:
checkForAdditionalFields in interface LookupableHelperService
Parameters:
fieldValues - - Map of property/value pairs
Returns:
boolean
See Also:
LookupableHelperService.checkForAdditionalFields(java.util.Map)

getBusinessObjectClass

public Class getBusinessObjectClass()
Deprecated. 
Specified by:
getBusinessObjectClass in interface LookupableHelperService
Returns:
Returns the dataObjectClass this lookupable is representing
See Also:
LookupableHelperService.getBusinessObjectClass()

setBusinessObjectClass

public void setBusinessObjectClass(Class businessObjectClass)
Deprecated. 
Description copied from interface: LookupableHelperService
Initializes the lookup with a business object class. This is set via the LookupableHelperService's consumer, namely the Lookupable implementation (or in cases of nesting a wrapping LookupableHelperService). The Lookupable in turn receives this value from the UI via LookupForm population.

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

getParameters

public Map<String,String[]> getParameters()
Deprecated. 
Specified by:
getParameters in interface LookupableHelperService
Returns:
Returns the parameters passed to this lookup
See Also:
LookupableHelperService.getParameters()

setParameters

public void setParameters(Map<String,String[]> parameters)
Deprecated. 
Description copied from interface: LookupableHelperService
Initializes the lookup with the given Map of parameters.

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

getDataDictionaryService

public DataDictionaryService getDataDictionaryService()
Deprecated. 
Gets the dataDictionaryService attribute.

Specified by:
getDataDictionaryService in interface LookupableHelperService
Returns:
Returns the dataDictionaryService.

setDataDictionaryService

public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
Deprecated. 
Sets the dataDictionaryService attribute value.

Parameters:
dataDictionaryService - The dataDictionaryService to set.

getBusinessObjectDictionaryService

public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
Deprecated. 
Gets the businessObjectDictionaryService attribute.

Specified by:
getBusinessObjectDictionaryService in interface LookupableHelperService
Returns:
Returns the businessObjectDictionaryService.

setBusinessObjectDictionaryService

public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
Deprecated. 
Sets the businessObjectDictionaryService attribute value.

Parameters:
businessObjectDictionaryService - The businessObjectDictionaryService to set.

getBusinessObjectMetaDataService

public BusinessObjectMetaDataService getBusinessObjectMetaDataService()
Deprecated. 
Gets the businessObjectMetaDataService attribute.

Returns:
Returns the businessObjectMetaDataService.

setBusinessObjectMetaDataService

public void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
Deprecated. 
Sets the businessObjectMetaDataService attribute value.

Parameters:
businessObjectMetaDataService - The businessObjectMetaDataService to set.

getPersistenceStructureService

protected PersistenceStructureService getPersistenceStructureService()
Deprecated. 
Gets the persistenceStructureService attribute.

Returns:
Returns the persistenceStructureService.

setPersistenceStructureService

public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated. 
Sets the persistenceStructureService attribute value.

Parameters:
persistenceStructureService - The persistenceStructureService to set.

getEncryptionService

protected EncryptionService getEncryptionService()
Deprecated. 
Gets the encryptionService attribute.

Returns:
Returns the encryptionService.

setEncryptionService

public void setEncryptionService(EncryptionService encryptionService)
Deprecated. 
Sets the encryptionService attribute value.

Parameters:
encryptionService - The encryptionService to set.

getMaintenanceDocumentDictionaryService

public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
Deprecated. 

getBusinessObjectAuthorizationService

public BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
Deprecated. 

getKualiInquirable

public Inquirable getKualiInquirable()
Deprecated. 

setMaintenanceDocumentDictionaryService

public void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
Deprecated. 

setKualiInquirable

public void setKualiInquirable(Inquirable kualiInquirable)
Deprecated. 

getKualiConfigurationService

public ConfigurationService getKualiConfigurationService()
Deprecated. 

setParameterService

public void setParameterService(ConfigurationService configurationService)
Deprecated. 

getParameterService

public ParameterService getParameterService()
Deprecated. 

setParameterService

public void setParameterService(ParameterService parameterService)
Deprecated. 

allowsMaintenanceNewOrCopyAction

public boolean allowsMaintenanceNewOrCopyAction()
Deprecated. 
Determines if underlying lookup bo has associated maintenance document that allows new or copy maintenance actions.

Specified by:
allowsMaintenanceNewOrCopyAction in interface LookupableHelperService
Returns:
true if bo has maint doc that allows new or copy actions

allowsMaintenanceEditAction

protected boolean allowsMaintenanceEditAction(BusinessObject businessObject)
Deprecated. 

getMaintenanceUrl

public final String getMaintenanceUrl(BusinessObject businessObject,
                                      HtmlData htmlData,
                                      List pkNames,
                                      BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 
Build a maintenance url.

Specified by:
getMaintenanceUrl in interface LookupableHelperService
Parameters:
bo - - business object representing the record for maint.
methodToCall - - maintenance action
Returns:

getActionUrls

public final String getActionUrls(BusinessObject businessObject,
                                  List pkNames,
                                  BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 
This method is called by performLookup method to generate action urls. It calls the method getCustomActionUrls to get html data, calls getMaintenanceUrl to get the actual html tag, and returns a formatted/concatenated string of action urls.

Specified by:
getActionUrls in interface LookupableHelperService
Parameters:
businessObject - - Instance of a business object containing the return values
pkNames - - List of primary key names
Returns:
String rendered in actions column of result set
See Also:
LookupableHelperService#getActionUrls(org.kuali.rice.krad.bo.BusinessObject)

getCustomActionUrls

public List<HtmlData> getCustomActionUrls(BusinessObject businessObject,
                                          List pkNames)
Deprecated. 
Child classes should override this method if they want to return some other action urls.

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

allowsMaintenanceDeleteAction

protected boolean allowsMaintenanceDeleteAction(BusinessObject businessObject)
Deprecated. 
This method ... for KULRice 3070

Returns:

getUrlData

protected HtmlData.AnchorHtmlData getUrlData(BusinessObject businessObject,
                                             String methodToCall,
                                             String displayText,
                                             List pkNames)
Deprecated. 
This method constructs an AnchorHtmlData. This method can be overriden by child classes if they want to construct the html data in a different way. Foe example, if they want different type of html tag, like input/image.

Parameters:
businessObject -
methodToCall -
displayText -
pkNames -
Returns:

getUrlData

protected HtmlData.AnchorHtmlData getUrlData(BusinessObject businessObject,
                                             String methodToCall,
                                             List pkNames)
Deprecated. 
This method calls its overloaded method with displayText as methodToCall

Parameters:
businessObject -
methodToCall -
pkNames -
Returns:

getEmptyActionUrls

protected List<HtmlData> getEmptyActionUrls()
Deprecated. 
A utility method that returns an empty list of action urls.

Returns:

getEmptyAnchorHtmlData

protected HtmlData getEmptyAnchorHtmlData()
Deprecated. 

getActionUrlHref

protected String getActionUrlHref(BusinessObject businessObject,
                                  String methodToCall,
                                  List pkNames)
Deprecated. 
This method generates and returns href for the given parameters. This method can be overridden by child classes if they have to generate href differently. For example, refer to IntendedIncumbentLookupableHelperServiceImpl

Parameters:
businessObject -
methodToCall -
pkNames -
Returns:

getParametersFromPrimaryKey

protected Properties getParametersFromPrimaryKey(BusinessObject businessObject,
                                                 List pkNames)
Deprecated. 

getActionUrlTitleText

protected String getActionUrlTitleText(BusinessObject businessObject,
                                       String displayText,
                                       List pkNames,
                                       BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 
This method generates and returns title text for action urls. Child classes can override this if they want to generate the title text differently. For example, refer to BatchJobStatusLookupableHelperServiceImpl

Parameters:
businessObject -
displayText -
pkNames -
Returns:

getMaintenanceDocumentTypeName

protected String getMaintenanceDocumentTypeName()
Deprecated. 
Returns the maintenance document type associated with the business object class or null if one does not exist.

Returns:
String representing the maintenance document type name

getReadOnlyFieldsList

public List<String> getReadOnlyFieldsList()
Deprecated. 
Gets the readOnlyFieldsList attribute.

Specified by:
getReadOnlyFieldsList in interface LookupableHelperService
Returns:
Returns the readOnlyFieldsList.

setReadOnlyFieldsList

public void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
Deprecated. 
Sets the readOnlyFieldsList attribute value.

Specified by:
setReadOnlyFieldsList in interface LookupableHelperService
Parameters:
readOnlyFieldsList - The readOnlyFieldsList to set.

getInquiryUrl

public HtmlData getInquiryUrl(BusinessObject bo,
                              String propertyName)
Deprecated. 
Returns the inquiry url for a field if one exist.

Specified by:
getInquiryUrl in interface LookupableHelperService
Parameters:
bo - the business object instance to build the urls for
propertyName - the property which links to an inquirable
Returns:
String url to inquiry

getColumns

public List<Column> getColumns()
Deprecated. 
Constructs the list of columns for the search results. All properties for the column objects come from the DataDictionary.

Specified by:
getColumns in interface LookupableHelperService
Returns:
List of Column objects used to render the result table

getColumnMaxLength

protected int getColumnMaxLength(String attributeName)
Deprecated. 

getBackLocation

public String getBackLocation()
Deprecated. 
Specified by:
getBackLocation in interface LookupableHelperService
Returns:
Returns the backLocation.

setBackLocation

public void setBackLocation(String backLocation)
Deprecated. 
Specified by:
setBackLocation in interface LookupableHelperService
Parameters:
backLocation - The backLocation to set.

getReturnLocation

public String getReturnLocation()
Deprecated. 
Specified by:
getReturnLocation in interface LookupableHelperService
Returns:
String url for the location to return to after the lookup
See Also:
LookupableHelperService.getReturnLocation()

getReturnUrl

public final HtmlData getReturnUrl(BusinessObject businessObject,
                                   Map fieldConversions,
                                   String lookupImpl,
                                   List returnKeys,
                                   BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 
This method is for lookupable implementations

Specified by:
getReturnUrl in interface LookupableHelperService
Parameters:
businessObject - - Instance of a business object containing the return values
fieldConversions - - Map of conversions mapping bo names to caller field names.
lookupImpl - - Current lookup impl name
returnKeys - - Keys to return
Returns:
String url called when selecting a row from the result set
See Also:
LookupableHelperService#getReturnUrl(org.kuali.rice.krad.bo.BusinessObject, java.util.Map, java.lang.String, java.util.List)

getReturnHref

protected final String getReturnHref(BusinessObject businessObject,
                                     Map fieldConversions,
                                     String lookupImpl,
                                     List returnKeys)
Deprecated. 
This method is for lookupable implementations

Parameters:
businessObject -
fieldConversions -
lookupImpl -
returnKeys -
Returns:

getReturnUrl

public HtmlData getReturnUrl(BusinessObject businessObject,
                             LookupForm lookupForm,
                             List returnKeys,
                             BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 
Description copied from interface: LookupableHelperService
This method builds the return url

Specified by:
getReturnUrl in interface LookupableHelperService
Returns:
See Also:
LookupableHelperService#getReturnUrl(org.kuali.core.bo.BusinessObject, java.util.Map, java.lang.String)

getReturnInputHtmlData

protected HtmlData getReturnInputHtmlData(BusinessObject businessObject,
                                          Properties parameters,
                                          LookupForm lookupForm,
                                          List returnKeys,
                                          BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 

getReturnAnchorHtmlData

protected HtmlData getReturnAnchorHtmlData(BusinessObject businessObject,
                                           Properties parameters,
                                           LookupForm lookupForm,
                                           List returnKeys,
                                           BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 

getReturnHref

protected String getReturnHref(Properties parameters,
                               LookupForm lookupForm,
                               List returnKeys)
Deprecated. 

addToReturnHref

protected String addToReturnHref(String href,
                                 LookupForm lookupForm)
Deprecated. 

getParameters

protected Properties getParameters(BusinessObject bo,
                                   Map<String,String> fieldConversions,
                                   String lookupImpl,
                                   List returnKeys)
Deprecated. 

getReturnKeys

public List<String> getReturnKeys()
Deprecated. 
Description copied from interface: LookupableHelperService
This method is public because some unit tests depend on it.

Specified by:
getReturnKeys in interface LookupableHelperService
Returns:
a List of the names of fields which are marked in data dictionary as return fields.

getDocFormKey

public String getDocFormKey()
Deprecated. 
Gets the docFormKey attribute.

Specified by:
getDocFormKey in interface LookupableHelperService
Returns:
Returns the docFormKey.

setDocFormKey

public void setDocFormKey(String docFormKey)
Deprecated. 
Sets the docFormKey attribute value.

Specified by:
setDocFormKey in interface LookupableHelperService
Parameters:
docFormKey - The docFormKey to set.

setFieldConversions

public void setFieldConversions(Map fieldConversions)
Deprecated. 
Description copied from interface: LookupableHelperService
Sets the requested fields conversions in the lookupable

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

getLookupService

protected LookupService getLookupService()
Deprecated. 
Gets the lookupService attribute.

Returns:
Returns the lookupService.

setLookupService

public void setLookupService(LookupService lookupService)
Deprecated. 
Sets the lookupService attribute value.

Parameters:
lookupService - The lookupService to set.

getDefaultSortColumns

public List<String> getDefaultSortColumns()
Deprecated. 
Uses the DD to determine which is the default sort order.

Specified by:
getDefaultSortColumns in interface LookupableHelperService
Returns:
property names that will be used to sort on by default

validateSearchParameters

public void validateSearchParameters(Map<String,String> fieldValues)
Deprecated. 
Checks that any required search fields have value.

Specified by:
validateSearchParameters in interface LookupableHelperService
Parameters:
fieldValues - - Map of property/value pairs
See Also:
LookupableHelperService.validateSearchParameters(java.util.Map)

validateSearchParameterWildcardAndOperators

protected void validateSearchParameterWildcardAndOperators(String attributeName,
                                                           String attributeValue)
Deprecated. 

setRows

protected void setRows()
Deprecated. 
Constructs the list of rows for the search fields. All properties for the field objects come from the DataDictionary. To be called by setBusinessObject


getRows

public List<Row> getRows()
Deprecated. 
Description copied from interface: LookupableHelperService
Returns a list of Row objects to be used to generate the search query screen Generally, setDataObjectClass needs to be called with a non-null value for proper operation

Specified by:
getRows in interface LookupableHelperService
Returns:

getSearchResults

public abstract List<? extends BusinessObject> getSearchResults(Map<String,String> fieldValues)
Deprecated. 
Description copied from interface: LookupableHelperService
Performs a search and returns result list.

Specified by:
getSearchResults in interface LookupableHelperService
Parameters:
fieldValues - - Map of property/value pairs
Returns:
List of business objects found by the search

getSearchResultsUnbounded

public List<? extends BusinessObject> getSearchResultsUnbounded(Map<String,String> fieldValues)
Deprecated. 
This implementation of this method throws an UnsupportedOperationException, since not every implementation may actually want to use this operation. Subclasses desiring other behaviors will need to override this.

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

performLookup

public Collection<? extends BusinessObject> performLookup(LookupForm lookupForm,
                                                          Collection<ResultRow> resultTable,
                                                          boolean bounded)
Deprecated. 
Performs the lookup and returns a collection of lookup items

Specified by:
performLookup in interface LookupableHelperService
Parameters:
lookupForm -
resultTable -
bounded -
Returns:

getPropertyClass

protected Class getPropertyClass(BusinessObject element,
                                 String propertyName)
Deprecated. 
Gets the Class for the property in the given BusinessObject instance, if property is not accessible then runtime exception is thrown

Parameters:
element - BusinessObject instance that contains property
propertyName - Name of property in BusinessObject to get class for
Returns:
Type for property as Class

maskValueIfNecessary

protected String maskValueIfNecessary(Class businessObjectClass,
                                      String propertyName,
                                      String propertyValue,
                                      BusinessObjectRestrictions businessObjectRestrictions)
Deprecated. 

setReferencesToRefresh

protected void setReferencesToRefresh(String referencesToRefresh)
Deprecated. 

getReferencesToRefresh

public String getReferencesToRefresh()
Deprecated. 

getSequenceAccessorService

protected SequenceAccessorService getSequenceAccessorService()
Deprecated. 

setSequenceAccessorService

public void setSequenceAccessorService(SequenceAccessorService sequenceAccessorService)
Deprecated. 

getBusinessObjectService

public BusinessObjectService getBusinessObjectService()
Deprecated. 

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Deprecated. 

getLookupResultsService

protected LookupResultsService getLookupResultsService()
Deprecated. 

setLookupResultsService

public void setLookupResultsService(LookupResultsService lookupResultsService)
Deprecated. 

isSearchUsingOnlyPrimaryKeyValues

public boolean isSearchUsingOnlyPrimaryKeyValues()
Deprecated. 
Description copied from interface: LookupableHelperService
This method returns whether the previously executed getSearchResults used the primary key values to search, ignoring all non key values

Specified by:
isSearchUsingOnlyPrimaryKeyValues in interface LookupableHelperService
Returns:
false always, subclasses should override to do something smarter
See Also:
LookupableHelperService.isSearchUsingOnlyPrimaryKeyValues()

getPrimaryKeyFieldLabels

public String getPrimaryKeyFieldLabels()
Deprecated. 
Returns "N/A"

Specified by:
getPrimaryKeyFieldLabels in interface LookupableHelperService
Returns:
"N/A"
See Also:
LookupableHelperService.getPrimaryKeyFieldLabels()

isResultReturnable

public boolean isResultReturnable(BusinessObject object)
Deprecated. 
Description copied from interface: LookupableHelperService
Determines whether a given BusinessObject that's returned as one of the lookup's results is considered returnable, which means that for single-value lookups, a "return value" link may be rendered, and for multiple value lookups, a checkbox is rendered. Note that this can be part of an authorization mechanism, but not the complete authorization mechanism. The component that invoked the lookup/ lookup caller (e.g. document, nesting lookup, etc.) needs to check that the object that was passed to it was returnable as well because there are ways around this method (e.g. crafting a custom return URL).

Specified by:
isResultReturnable in interface LookupableHelperService
Parameters:
object - an object from the search result set
Returns:
See Also:
LookupableHelperService#isResultReturnable(org.kuali.core.bo.BusinessObject)

performClear

public void performClear(LookupForm lookupForm)
Deprecated. 
This method does the logic for the clear action.

Specified by:
performClear in interface LookupableHelperService
See Also:
LookupableHelperService#performClear()

shouldDisplayHeaderNonMaintActions

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

shouldDisplayLookupCriteria

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

getSupplementalMenuBar

public String getSupplementalMenuBar()
Deprecated. 
Description copied from interface: LookupableHelperService
This method gets the supplemental lookup menu if any

Specified by:
getSupplementalMenuBar in interface LookupableHelperService
Returns:
supplemental menu bar
See Also:
LookupableHelperService.getSupplementalMenuBar()

getTitle

public String getTitle()
Deprecated. 
Specified by:
getTitle in interface LookupableHelperService
Returns:
String displayed as title for the lookup
See Also:
LookupableHelperService.getTitle()

performCustomAction

public boolean performCustomAction(boolean ignoreErrors)
Deprecated. 
Description copied from interface: LookupableHelperService
performs custom actions. return true to reperform search

Specified by:
performCustomAction in interface LookupableHelperService
Returns:
boolean to reperform search
See Also:
LookupableHelperService.performCustomAction(boolean)

getExtraField

public Field getExtraField()
Deprecated. 
Description copied from interface: LookupableHelperService
get an extra field

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

allowsNewOrCopyAction

public boolean allowsNewOrCopyAction(String documentTypeName)
Deprecated. 
Description copied from interface: LookupableHelperService
Determines if underlying lookup bo has associated document that allows new or copy maintenance actions.

Specified by:
allowsNewOrCopyAction in interface LookupableHelperService
Returns:
true if bo has doc that allows new or copy actions

applyFieldAuthorizationsFromNestedLookups

public void applyFieldAuthorizationsFromNestedLookups(Field field)
Deprecated. 
Functional requirements state that users are able to perform searches using criteria values that they are not allowed to view.

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

applyConditionalLogicForFieldDisplay

public void applyConditionalLogicForFieldDisplay()
Deprecated. 
Calls methods that can be overridden by child lookupables to implement conditional logic for setting read-only, required, and hidden attributes. Called in the last part of the lookup lifecycle so the fields values that will be sent will be correctly reflected in the rows (like after a clear).

Specified by:
applyConditionalLogicForFieldDisplay in interface LookupableHelperService
See Also:
getConditionallyReadOnlyPropertyNames(), getConditionallyRequiredPropertyNames(), getConditionallyHiddenPropertyNames(), LookupableHelperService.applyConditionalLogicForFieldDisplay()

getConditionallyReadOnlyPropertyNames

public Set<String> getConditionallyReadOnlyPropertyNames()
Deprecated. 
Returns:
Set of property names that should be set as read only based on the current search contents, note request parms containing search field values can be retrieved with getParameters()

getConditionallyRequiredPropertyNames

public Set<String> getConditionallyRequiredPropertyNames()
Deprecated. 
Returns:
Set of property names that should be set as required based on the current search contents, note request parms containing search field values can be retrieved with getParameters()

getConditionallyHiddenPropertyNames

public Set<String> getConditionallyHiddenPropertyNames()
Deprecated. 
Returns:
Set of property names that should be set as hidden based on the current search contents, note request parms containing search field values can be retrieved with getParameters()

getCurrentSearchFieldValue

protected String getCurrentSearchFieldValue(String propertyName)
Deprecated. 
Helper method to get the value for a property out of the row-field graph. If property is multi-value then the values will be joined by a semi-colon.

Parameters:
propertyName - - name of property to retrieve value for
Returns:
current property value as a String


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.