public class LookupResultsServiceImpl extends Object implements LookupResultsService
| Constructor and Description |
|---|
LookupResultsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPersistedLookupResults(String lookupResultsSequenceNumber) |
void |
clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber) |
void |
deleteOldLookupResults(Timestamp expirationDate) |
void |
deleteOldSelectedObjectIds(Timestamp expirationDate) |
BusinessObjectService |
getBusinessObjectService() |
LookupResultsSupportStrategyService |
getDataDictionarySupportStrategy() |
String |
getLookupId(BusinessObject businessObject)
Figures out which LookupResultsServiceSupportStrategy to defer to, and uses that to get the lookup id
|
LookupResultsSupportStrategyService |
getPersistableBusinessObjectSupportStrategy() |
PersistedLookupMetadataDao |
getPersistedLookupMetadataDao() |
protected LookupResultsSupportStrategyService |
getQualifingSupportStrategy(Class boClass)
Given the business object class, determines the best qualifying LookupResultsSupportStrategyService to use
|
protected boolean |
isAuthorizedToAccessLookupResults(LookupResults lookupResults,
String personId)
Returns whether the user ID parameter is allowed to view the results.
|
boolean |
isAuthorizedToAccessLookupResults(String lookupResultsSequenceNumber,
String personId) |
protected boolean |
isAuthorizedToAccessMultipleValueLookupMetadata(MultipleValueLookupMetadata mvlm,
String personId)
Determines whether the passed in user ID is allowed to view the lookup metadata (object IDs or results table)
|
protected boolean |
isAuthorizedToAccessSelectedObjectIds(SelectedObjectIds selectedObjectIds,
String personId)
Returns whether the user ID parameter is allowed to view the selected object IDs
|
boolean |
isAuthorizedToAccessSelectedObjectIds(String lookupResultsSequenceNumber,
String personId) |
void |
persistResultsTable(String lookupResultsSequenceNumber,
List<ResultRow> resultTable,
String personId) |
void |
persistSelectedObjectIds(String lookupResultsSequenceNumber,
Set<String> selectedObjectIds,
String personId) |
protected LookupResults |
retrieveLookupResults(String lookupResultsSequenceNumber)
Retrieves the LookupResults BO with the given sequence number.
|
List<ResultRow> |
retrieveResultsTable(String lookupResultsSequenceNumber,
String personId) |
protected SelectedObjectIds |
retrieveSelectedObjectIds(String lookupResultsSequenceNumber)
Retrieves the SelectedObjectIds BO with the given sequence number.
|
<T extends BusinessObject> |
retrieveSelectedResultBOs(String lookupResultsSequenceNumber,
Class<T> boClass,
String personId)
Figures out which support strategy to defer to and uses that service to retrieve the results; if the bo class doesn't qualify with any support strategy, an exception is thrown.
|
void |
setBusinessObjectService(BusinessObjectService businessObjectService) |
void |
setDataDictionarySupportStrategy(LookupResultsSupportStrategyService dataDictionarySupportStrategy) |
void |
setPersistableBusinessObjectSupportStrategy(LookupResultsSupportStrategyService persistableBusinessObjectSupportStrategy) |
void |
setPersistedLookupMetadataDao(PersistedLookupMetadataDao persistedLookupMetadataDao) |
public LookupResultsServiceImpl()
public void persistResultsTable(String lookupResultsSequenceNumber, List<ResultRow> resultTable, String personId) throws Exception
persistResultsTable in interface LookupResultsServiceExceptionLookupResultsServicepublic void persistSelectedObjectIds(String lookupResultsSequenceNumber, Set<String> selectedObjectIds, String personId) throws Exception
persistSelectedObjectIds in interface LookupResultsServiceExceptionLookupResultsServiceprotected LookupResults retrieveLookupResults(String lookupResultsSequenceNumber) throws Exception
lookupResultsSequenceNumber - Exceptionprotected SelectedObjectIds retrieveSelectedObjectIds(String lookupResultsSequenceNumber) throws Exception
lookupResultsSequenceNumber - Exceptionpublic boolean isAuthorizedToAccessLookupResults(String lookupResultsSequenceNumber, String personId)
isAuthorizedToAccessLookupResults in interface LookupResultsServiceLookupResultsServiceprotected boolean isAuthorizedToAccessLookupResults(LookupResults lookupResults, String personId)
lookupResults - personId - public boolean isAuthorizedToAccessSelectedObjectIds(String lookupResultsSequenceNumber, String personId)
isAuthorizedToAccessSelectedObjectIds in interface LookupResultsServiceLookupResultsServiceprotected boolean isAuthorizedToAccessSelectedObjectIds(SelectedObjectIds selectedObjectIds, String personId)
selectedObjectIds - personId - public List<ResultRow> retrieveResultsTable(String lookupResultsSequenceNumber, String personId) throws Exception
retrieveResultsTable in interface LookupResultsServiceExceptionLookupResultsServicepublic <T extends BusinessObject> Collection<T> retrieveSelectedResultBOs(String lookupResultsSequenceNumber, Class<T> boClass, String personId) throws Exception
retrieveSelectedResultBOs in interface LookupResultsServiceExceptionLookupResultsServiceprotected LookupResultsSupportStrategyService getQualifingSupportStrategy(Class boClass)
boClass - a business object classpublic void clearPersistedLookupResults(String lookupResultsSequenceNumber) throws Exception
clearPersistedLookupResults in interface LookupResultsServiceExceptionLookupResultsServicepublic void clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber) throws Exception
clearPersistedSelectedObjectIds in interface LookupResultsServiceExceptionLookupResultsServicepublic String getLookupId(BusinessObject businessObject)
getLookupId in interface LookupResultsServiceLookupResultsServicepublic BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(BusinessObjectService businessObjectService)
protected boolean isAuthorizedToAccessMultipleValueLookupMetadata(MultipleValueLookupMetadata mvlm, String personId)
mvlm - personId - public void deleteOldLookupResults(Timestamp expirationDate)
deleteOldLookupResults in interface LookupResultsServicepublic void deleteOldSelectedObjectIds(Timestamp expirationDate)
deleteOldSelectedObjectIds in interface LookupResultsServicepublic PersistedLookupMetadataDao getPersistedLookupMetadataDao()
public void setPersistedLookupMetadataDao(PersistedLookupMetadataDao persistedLookupMetadataDao)
public LookupResultsSupportStrategyService getPersistableBusinessObjectSupportStrategy()
public LookupResultsSupportStrategyService getDataDictionarySupportStrategy()
public void setPersistableBusinessObjectSupportStrategy(LookupResultsSupportStrategyService persistableBusinessObjectSupportStrategy)
persistableBusinessObjectSupportStrategy - the persistableBusinessObjectSupportStrategy to setpublic void setDataDictionarySupportStrategy(LookupResultsSupportStrategyService dataDictionarySupportStrategy)
dataDictionarySupportStrategy - the dataDictionarySupportStrategy to setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.