org.kuali.rice.kns.lookup
Class PersistableBusinessObjectLookupResultsSupportStrategyImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.PersistableBusinessObjectLookupResultsSupportStrategyImpl
All Implemented Interfaces:
LookupResultsSupportStrategyService

public class PersistableBusinessObjectLookupResultsSupportStrategyImpl
extends Object
implements LookupResultsSupportStrategyService

The LookupResultsSupportStrategyService implementation which supports PersistableBusinessObjects, simply enough

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
PersistableBusinessObjectLookupResultsSupportStrategyImpl()
           
 
Method Summary
 BusinessObjectService getBusinessObjectService()
           
 String getLookupIdForBusinessObject(BusinessObject businessObject)
          Returns the object id
 boolean qualifiesForStrategy(Class<? extends BusinessObject> boClass)
          Sees if the class implements the PersistableBusinessObject interface; if so, then yes, the BO qualifies!
<T extends BusinessObject>
Collection<T>
retrieveSelectedResultBOs(Class<T> boClass, Set<String> lookupIds)
          Uses the BusinessObjectService to retrieve a collection of PersistableBusinessObjects
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistableBusinessObjectLookupResultsSupportStrategyImpl

public PersistableBusinessObjectLookupResultsSupportStrategyImpl()
Method Detail

getLookupIdForBusinessObject

public String getLookupIdForBusinessObject(BusinessObject businessObject)
Returns the object id

Specified by:
getLookupIdForBusinessObject in interface LookupResultsSupportStrategyService
Parameters:
businessObject - the lookup to generate an id for
Returns:
the String id
See Also:
LookupResultsSupportStrategyService.getLookupIdForBusinessObject(org.kuali.rice.krad.bo.BusinessObject)

retrieveSelectedResultBOs

public <T extends BusinessObject> Collection<T> retrieveSelectedResultBOs(Class<T> boClass,
                                                                          Set<String> lookupIds)
                                                               throws Exception
Uses the BusinessObjectService to retrieve a collection of PersistableBusinessObjects

Specified by:
retrieveSelectedResultBOs in interface LookupResultsSupportStrategyService
Parameters:
boClass - the class of the business object to retrieve
Returns:
a Collection of retrieved BusinessObjects
Throws:
Exception - if anything goes wrong...well, just blow up, okay?
See Also:
org.kuali.rice.kns.lookup.LookupResultsSupportStrategyService#retrieveSelectedResultBOs(java.lang.String, java.lang.Class, java.lang.String)

qualifiesForStrategy

public boolean qualifiesForStrategy(Class<? extends BusinessObject> boClass)
Sees if the class implements the PersistableBusinessObject interface; if so, then yes, the BO qualifies!

Specified by:
qualifiesForStrategy in interface LookupResultsSupportStrategyService
Parameters:
boClass - the class to test the determination on
Returns:
true if this strategy supports it, false otherwise
See Also:
LookupResultsSupportStrategyService.qualifiesForStrategy(java.lang.Class)

getBusinessObjectService

public BusinessObjectService getBusinessObjectService()
Returns:
the businessObjectService

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Parameters:
businessObjectService - the businessObjectService to set


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