@Deprecated public class LookupResultsServiceImpl extends Object implements LookupResultsService
Constructor and Description |
---|
LookupResultsServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearPersistedLookupResults(String lookupResultsSequenceNumber)
Deprecated.
Removes the lookup results that were persisted under this lookup results sequence number
|
void |
clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber)
Deprecated.
Removes the lookup results that were persisted under this selected object IDs
|
void |
deleteOldLookupResults(Timestamp expirationDate)
Deprecated.
removes all LookupResults BO where the lookup date attribute is older than
the parameter
|
void |
deleteOldSelectedObjectIds(Timestamp expirationDate)
Deprecated.
removes all LookupResults BO where the lookup date attribute is older than
the parameter
|
BusinessObjectService |
getBusinessObjectService()
Deprecated.
|
LookupResultsSupportStrategyService |
getDataDictionarySupportStrategy()
Deprecated.
|
String |
getLookupId(BusinessObject businessObject)
Deprecated.
Figures out which LookupResultsServiceSupportStrategy to defer to, and uses that to get the lookup id
|
LookupResultsSupportStrategyService |
getPersistableBusinessObjectSupportStrategy()
Deprecated.
|
PersistedLookupMetadataDao |
getPersistedLookupMetadataDao()
Deprecated.
|
protected LookupResultsSupportStrategyService |
getQualifingSupportStrategy(Class boClass)
Deprecated.
Given the business object class, determines the best qualifying LookupResultsSupportStrategyService to use
|
protected boolean |
isAuthorizedToAccessLookupResults(LookupResults lookupResults,
String personId)
Deprecated.
Returns whether the user ID parameter is allowed to view the results.
|
boolean |
isAuthorizedToAccessLookupResults(String lookupResultsSequenceNumber,
String personId)
Deprecated.
Returns whether a user is allowed to view the lookup results of the given sequence number
|
protected boolean |
isAuthorizedToAccessMultipleValueLookupMetadata(MultipleValueLookupMetadata mvlm,
String personId)
Deprecated.
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)
Deprecated.
Returns whether the user ID parameter is allowed to view the selected object IDs
|
boolean |
isAuthorizedToAccessSelectedObjectIds(String lookupResultsSequenceNumber,
String personId)
Deprecated.
Returns whether a user is allowed to view the selected object IDs of the given sequence number
|
void |
persistResultsTable(String lookupResultsSequenceNumber,
List<ResultRow> resultTable,
String personId)
Deprecated.
Persists a list of result row objects into a database.
|
void |
persistSelectedObjectIds(String lookupResultsSequenceNumber,
Set<String> selectedObjectIds,
String personId)
Deprecated.
Persists a list of BO object IDs that have been selected for return to the calling document (the back location in lookup terminology).
|
protected LookupResults |
retrieveLookupResults(String lookupResultsSequenceNumber)
Deprecated.
Retrieves the LookupResults BO with the given sequence number.
|
List<ResultRow> |
retrieveResultsTable(String lookupResultsSequenceNumber,
String personId)
Deprecated.
Returns the list of result rows that was persisted under the passed in sequence number
|
protected SelectedObjectIds |
retrieveSelectedObjectIds(String lookupResultsSequenceNumber)
Deprecated.
Retrieves the SelectedObjectIds BO with the given sequence number.
|
<T extends BusinessObject> |
retrieveSelectedResultBOs(String lookupResultsSequenceNumber,
Class<T> boClass,
String personId)
Deprecated.
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)
Deprecated.
|
void |
setDataDictionarySupportStrategy(LookupResultsSupportStrategyService dataDictionarySupportStrategy)
Deprecated.
|
void |
setPersistableBusinessObjectSupportStrategy(LookupResultsSupportStrategyService persistableBusinessObjectSupportStrategy)
Deprecated.
|
void |
setPersistedLookupMetadataDao(PersistedLookupMetadataDao persistedLookupMetadataDao)
Deprecated.
|
public LookupResultsServiceImpl()
public void persistResultsTable(String lookupResultsSequenceNumber, List<ResultRow> resultTable, String personId) throws Exception
LookupResultsService
persistResultsTable
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number. Every time a user clicks "search", a new sequence number should be generatedresultTable
- A list of result rows. Note that this list does not contain BOs, but the data necessary to render a lookup results screenpersonId
- the user that is performing the search. This prevents a malicious user from passing someone else's sequence number
(which he can guess) and eventually retrieving it, possibly exposing sensitive dataException
org.kuali.rice.krad.lookup.LookupResultsService#persistResultsTable(java.lang.String, java.util.List, java.lang.String)
public void persistSelectedObjectIds(String lookupResultsSequenceNumber, Set<String> selectedObjectIds, String personId) throws Exception
LookupResultsService
persistSelectedObjectIds
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number. Every time a user clicks "search", a new sequence number should be generatedselectedObjectIds
- A set of the object IDs of the selected rows.personId
- the user that is performing the search. This prevents a malicious user from passing someone else's sequence number
(which he can guess) and eventually retrieving it, possibly exposing sensitive dataException
org.kuali.rice.krad.lookup.LookupResultsService#persistSelectedObjectIds(java.lang.String, java.util.Set, java.lang.String)
protected LookupResults retrieveLookupResults(String lookupResultsSequenceNumber) throws Exception
lookupResultsSequenceNumber
- Exception
protected SelectedObjectIds retrieveSelectedObjectIds(String lookupResultsSequenceNumber) throws Exception
lookupResultsSequenceNumber
- Exception
public boolean isAuthorizedToAccessLookupResults(String lookupResultsSequenceNumber, String personId)
LookupResultsService
isAuthorizedToAccessLookupResults
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number that was used to persist the results tablepersonId
- the user id that was used to persist the results table.org.kuali.rice.krad.lookup.LookupResultsService#isAuthorizedToAccessLookupResults(java.lang.String, java.lang.String)
protected boolean isAuthorizedToAccessLookupResults(LookupResults lookupResults, String personId)
lookupResults
- personId
- public boolean isAuthorizedToAccessSelectedObjectIds(String lookupResultsSequenceNumber, String personId)
LookupResultsService
isAuthorizedToAccessSelectedObjectIds
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number that was used to persist the selected object IDspersonId
- the user id that was used to persist the selected object IDsorg.kuali.rice.krad.lookup.LookupResultsService#isAuthorizedToAccessSelectedObjectIds(java.lang.String, java.lang.String)
protected boolean isAuthorizedToAccessSelectedObjectIds(SelectedObjectIds selectedObjectIds, String personId)
selectedObjectIds
- personId
- public List<ResultRow> retrieveResultsTable(String lookupResultsSequenceNumber, String personId) throws Exception
LookupResultsService
retrieveResultsTable
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number that was used to persistpersonId
- the user id that was used to persist the results table. This prevents a malicious user from passing someone else's sequence number
(which he can guess) and eventually retrieving it, possibly exposing sensitive dataException
- many reasons, including if the user id parameter does not match the user used to persist the resultsorg.kuali.rice.krad.lookup.LookupResultsService#retrieveResultsTable(java.lang.String, java.lang.String)
public <T extends BusinessObject> Collection<T> retrieveSelectedResultBOs(String lookupResultsSequenceNumber, Class<T> boClass, String personId) throws Exception
retrieveSelectedResultBOs
in interface LookupResultsService
lookupResultsSequenceNumber
- the lookup sequence number that was used to persistboClass
- The class of BO being retrieved from the lookuppersonId
- the user id that was used to persist the results table. This prevents a malicious user from passing someone else's sequence number
(which he can guess) and eventually retrieving it, possibly exposing sensitive dataException
- many reasons, including if the user id parameter does not match the user used to persist the resultsorg.kuali.rice.krad.lookup.LookupResultsService#retrieveSelectedResultBOs(java.lang.String, java.lang.Class, java.lang.String)
protected LookupResultsSupportStrategyService getQualifingSupportStrategy(Class boClass)
boClass
- a business object classpublic void clearPersistedLookupResults(String lookupResultsSequenceNumber) throws Exception
LookupResultsService
clearPersistedLookupResults
in interface LookupResultsService
Exception
org.kuali.rice.krad.lookup.LookupResultsService#clearPersistedLookupResults(java.lang.String)
public void clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber) throws Exception
LookupResultsService
clearPersistedSelectedObjectIds
in interface LookupResultsService
Exception
org.kuali.rice.krad.lookup.LookupResultsService#clearPersistedSelectedObjectIds(java.lang.String)
public String getLookupId(BusinessObject businessObject)
getLookupId
in interface LookupResultsService
businessObject
- the business object to get a lookup id fororg.kuali.rice.krad.lookup.LookupResultsService#getLookupId(org.kuali.rice.krad.bo.BusinessObject)
public BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(BusinessObjectService businessObjectService)
protected boolean isAuthorizedToAccessMultipleValueLookupMetadata(MultipleValueLookupMetadata mvlm, String personId)
mvlm
- personId
- public void deleteOldLookupResults(Timestamp expirationDate)
LookupResultsService
deleteOldLookupResults
in interface LookupResultsService
expirationDate
- all LookupResults having a lookup date before this date
will be removedpublic void deleteOldSelectedObjectIds(Timestamp expirationDate)
LookupResultsService
deleteOldSelectedObjectIds
in interface LookupResultsService
expirationDate
- all LookupResults having a lookup date before this date
will be removedpublic 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–2014 The Kuali Foundation. All rights reserved.