|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.lookup.LookupResultsServiceImpl
public class LookupResultsServiceImpl
| Constructor Summary | |
|---|---|
LookupResultsServiceImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
clearPersistedLookupResults(String lookupResultsSequenceNumber)
Removes the lookup results that were persisted under this lookup results sequence number |
|
void |
clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber)
Removes the lookup results that were persisted under this selected object IDs |
|
void |
deleteOldLookupResults(Timestamp expirationDate)
removes all LookupResults BO where the lookup date attribute is older than the parameter |
|
void |
deleteOldSelectedObjectIds(Timestamp expirationDate)
removes all LookupResults BO where the lookup date attribute is older than the parameter |
|
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)
Returns whether a user is allowed to view the lookup results of the given sequence number |
|
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)
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)
Persists a list of result row objects into a database. |
|
void |
persistSelectedObjectIds(String lookupResultsSequenceNumber,
Set<String> selectedObjectIds,
String personId)
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)
Retrieves the LookupResults BO with the given sequence number. |
|
List<ResultRow> |
retrieveResultsTable(String lookupResultsSequenceNumber,
String personId)
Returns the list of result rows that was persisted under the passed in sequence number |
|
protected SelectedObjectIds |
retrieveSelectedObjectIds(String lookupResultsSequenceNumber)
Retrieves the SelectedObjectIds BO with the given sequence number. |
|
|
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)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LookupResultsServiceImpl()
| Method Detail |
|---|
public void persistResultsTable(String lookupResultsSequenceNumber,
List<ResultRow> resultTable,
String personId)
throws Exception
LookupResultsService
persistResultsTable in interface LookupResultsServicelookupResultsSequenceNumber - 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 data
Exceptionorg.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 LookupResultsServicelookupResultsSequenceNumber - 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 data
Exceptionorg.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 LookupResultsServicelookupResultsSequenceNumber - 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 LookupResultsServicelookupResultsSequenceNumber - the lookup sequence number that was used to persist the selected object IDspersonId - the user id that was used to persist the selected object IDs
org.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 LookupResultsServicelookupResultsSequenceNumber - 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 data
Exception - 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 LookupResultsServicelookupResultsSequenceNumber - 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 data
Exception - 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 class
public void clearPersistedLookupResults(String lookupResultsSequenceNumber)
throws Exception
LookupResultsService
clearPersistedLookupResults in interface LookupResultsServiceExceptionorg.kuali.rice.krad.lookup.LookupResultsService#clearPersistedLookupResults(java.lang.String)
public void clearPersistedSelectedObjectIds(String lookupResultsSequenceNumber)
throws Exception
LookupResultsService
clearPersistedSelectedObjectIds in interface LookupResultsServiceExceptionorg.kuali.rice.krad.lookup.LookupResultsService#clearPersistedSelectedObjectIds(java.lang.String)public String getLookupId(BusinessObject businessObject)
getLookupId in interface LookupResultsServicebusinessObject - the business object to get a lookup id for
org.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 LookupResultsServiceexpirationDate - all LookupResults having a lookup date before this date
will be removedpublic void deleteOldSelectedObjectIds(Timestamp expirationDate)
LookupResultsService
deleteOldSelectedObjectIds in interface LookupResultsServiceexpirationDate - 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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||