public abstract class ProtocolLookupableHelperServiceImplBase<GenericProtocol extends ProtocolBase> extends KraLookupableHelperServiceImpl
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AMEND_RENEW_PROTOCOL_LOOKUP_ACTION |
protected org.kuali.rice.krad.service.DocumentService |
documentService |
protected KcPersonService |
kcPersonService |
protected KraAuthorizationService |
kraAuthorizationService |
protected static String |
PENDING_PI_ACTION_PROTOCOL_LOOKUP |
protected static String |
PENDING_PROTOCOL_LOOKUP |
protected static String |
PROTOCOL_PERSON_ID_LOOKUP |
protected static String |
REQUEST_PROTOCOL_ACTION |
protected TaskAuthorizationService |
taskAuthorizationService |
MEDUSAsearchUsingOnlyPrimaryKeyValuesACTION_URLS_CHILDREN_END, ACTION_URLS_CHILDREN_SEPARATOR, ACTION_URLS_CHILDREN_STARTER, ACTION_URLS_EMPTY, ACTION_URLS_SEPARATOR, backLocation, businessObjectAuthorizationService, businessObjectClass, businessObjectDictionaryService, businessObjectMetaDataService, businessObjectService, configurationService, dataDictionaryService, docFormKey, docNum, encryptionService, fieldConversions, forceLookupResultFieldInquiryCache, inquirableClassCache, kualiInquirable, lookupResultsService, lookupService, maintenanceDocumentDictionaryService, noLookupResultFieldInquiryCache, parameters, parameterService, persistenceStructureService, readOnlyFieldsList, referencesToRefresh, resultColumns, RESULTS_DEFAULT_MAX_COLUMN_LENGTH, rows, sequenceAccessorService, TITLE_ACTION_URL_PREPENDTEXT_PROPERTY, TITLE_RETURN_URL_PREPENDTEXT_PROPERTY| Constructor and Description |
|---|
ProtocolLookupableHelperServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ProtocolTaskBase |
createNewProtocolTaskInstanceHook(String taskName,
ProtocolBase protocol) |
protected List<? extends org.kuali.rice.krad.bo.BusinessObject> |
filterProtocols(Map<String,String> fieldValues)
Filters the unbounded list of protocols by the given field values
|
protected List<? extends org.kuali.rice.krad.bo.BusinessObject> |
filterProtocolsByPrincipal(Map<String,String> fieldValues,
String principalKey)
Filters the unbounded list of protocols by the given field values and whether the given principalId represents a protocol initiator or PI.
|
protected List<? extends org.kuali.rice.krad.bo.BusinessObject> |
filterProtocolsByStatus(Map<String,String> fieldValues,
String... protocolStatusCodes)
Filters the unbounded list of protocols by the given field values and protocol status codes.
|
protected List<? extends org.kuali.rice.krad.bo.BusinessObject> |
filterProtocolsByTask(Map<String,String> fieldValues,
String... taskNames)
Filters the unbounded list of protocols by the given field values and protocol tasks.
|
protected abstract List<org.kuali.rice.kns.lookup.HtmlData> |
getCustomActions(org.kuali.rice.krad.bo.BusinessObject businessObject,
List pkNames) |
List<org.kuali.rice.kns.lookup.HtmlData> |
getCustomActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject,
List pkNames)
create 'edit' link
|
org.kuali.rice.kns.service.DictionaryValidationService |
getDictionaryValidationService()
This method returns an instance of a DictionaryValidationService implementation
|
protected String |
getDocumentTypeName()
This method to set document type of the lookup bo's document
|
protected abstract String |
getDocumentTypeNameHook() |
protected List<org.kuali.rice.kns.lookup.HtmlData> |
getEditCopyViewLinks(org.kuali.rice.krad.bo.BusinessObject businessObject,
List pkNames)
Construct and return edit, view, and copy links.
|
protected String |
getHtmlAction()
htmlaction for 'edit' link
|
protected abstract String |
getHtmlActionHook() |
org.kuali.rice.kns.lookup.HtmlData |
getInquiryUrl(org.kuali.rice.krad.bo.BusinessObject bo,
String propertyName)
This method is for several fields that does not have inquiry created by lookup frame work.
|
protected String |
getKeyFieldName()
This method is set the key field to retrieve bo for editing.
|
protected org.kuali.rice.kns.lookup.HtmlData.AnchorHtmlData |
getPerformActionLink(org.kuali.rice.krad.bo.BusinessObject businessObject,
String actionKey)
Constructs and returns the perform action links.
|
protected abstract Class<? extends ProtocolBase> |
getProtocolClassHook() |
protected abstract ProtocolDao<GenericProtocol> |
getProtocolDaoHook() |
List<org.kuali.rice.kns.web.ui.Row> |
getRows()
This override is reset field definition for research area lookup fields & investigator label.
|
List<? extends org.kuali.rice.krad.bo.BusinessObject> |
getSearchResults(Map<String,String> fieldValues) |
protected abstract List<? extends org.kuali.rice.krad.bo.BusinessObject> |
getSearchResultsFilteredByTask(Map<String,String> fieldValues) |
protected String |
getUserIdentifier() |
protected boolean |
isParameterTrue(String parameterKey) |
protected abstract Map<String,String> |
removeExtraFilterParameters(Map<String,String> fieldValues) |
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService) |
void |
setKcPersonService(KcPersonService kcPersonService)
Sets the KC Person Service.
|
void |
setKraAuthorizationService(KraAuthorizationService kraAuthorizationService) |
void |
setTaskAuthorizationService(TaskAuthorizationService taskAuthorizationService) |
protected List<GenericProtocol> |
trimResult(List<GenericProtocol> result,
Integer trimSize)
This method trims the search result.
|
protected boolean |
validateDate(String dateFieldName,
String dateFieldValue) |
void |
validateSearchParameters(Map fieldValues) |
addEditHtmlData, getCustomLink, getMedusaLink, getViewLink, performLookup, setBackLocationDocFormKey, updateLookupFieldgetExternalBusinessObjectProperty, getExternalizableBusinessObjectClass, getExternalizableBusinessObjectFieldValues, getExternalizableBusinessObjectProperties, getPrimaryKeyFieldLabels, getSearchResultsHelper, getSearchResultsUnbounded, hasExternalBusinessObjectProperty, isExternalBusinessObjectProperty, isSearchUsingOnlyPrimaryKeyValues, removeExternalizableBusinessObjectFieldValuesaddToReturnHref, allowsMaintenanceDeleteAction, allowsMaintenanceEditAction, allowsMaintenanceNewOrCopyAction, allowsNewOrCopyAction, applyConditionalLogicForFieldDisplay, applyFieldAuthorizationsFromNestedLookups, checkForAdditionalFields, getActionUrlHref, getActionUrls, getActionUrlTitleText, getBackLocation, getBusinessObjectAuthorizationService, getBusinessObjectClass, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getColumnMaxLength, getColumns, getConditionallyHiddenPropertyNames, getConditionallyReadOnlyPropertyNames, getConditionallyRequiredPropertyNames, getCurrentSearchFieldValue, getDataDictionaryService, getDefaultSortColumns, getDocFormKey, getDocNum, getEmptyActionUrls, getEmptyAnchorHtmlData, getEncryptionService, getExtraField, getKualiConfigurationService, getKualiInquirable, getLookupResultsService, getLookupService, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentTypeName, getMaintenanceUrl, getParameters, getParameters, getParameterService, getParametersFromPrimaryKey, getPersistenceStructureService, getPropertyClass, getReadOnlyFieldsList, getReferencesToRefresh, getReturnAnchorHtmlData, getReturnHref, getReturnHref, getReturnInputHtmlData, getReturnKeys, getReturnLocation, getReturnUrl, getReturnUrl, getSequenceAccessorService, getSupplementalMenuBar, getTitle, getUrlData, getUrlData, isResultReturnable, maskValueIfNecessary, performClear, performCustomAction, setBackLocation, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setBusinessObjectService, setDataDictionaryService, setDocFormKey, setDocNum, setEncryptionService, setFieldConversions, setKualiInquirable, setLookupResultsService, setLookupService, setMaintenanceDocumentDictionaryService, setParameters, setParameterService, setParameterService, setPersistenceStructureService, setReadOnlyFieldsList, setReferencesToRefresh, setRows, setSequenceAccessorService, shouldDisplayHeaderNonMaintActions, shouldDisplayLookupCriteria, validateSearchParameterWildcardAndOperatorsprotected static final String AMEND_RENEW_PROTOCOL_LOOKUP_ACTION
protected static final String REQUEST_PROTOCOL_ACTION
protected static final String PENDING_PROTOCOL_LOOKUP
protected static final String PENDING_PI_ACTION_PROTOCOL_LOOKUP
protected static final String PROTOCOL_PERSON_ID_LOOKUP
protected KcPersonService kcPersonService
protected KraAuthorizationService kraAuthorizationService
protected TaskAuthorizationService taskAuthorizationService
protected org.kuali.rice.krad.service.DocumentService documentService
public ProtocolLookupableHelperServiceImplBase()
public List<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResults(Map<String,String> fieldValues)
getSearchResults in interface org.kuali.rice.kns.lookup.LookupableHelperServicegetSearchResults in class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImplprotected List<? extends org.kuali.rice.krad.bo.BusinessObject> filterProtocolsByTask(Map<String,String> fieldValues, String... taskNames)
fieldValues - the field values that form a normal protocol searchtaskNames - the list of protocol tasks that the user must be able to perform in a protocol in order for it to be in the search resultsprotected abstract ProtocolTaskBase createNewProtocolTaskInstanceHook(String taskName, ProtocolBase protocol)
protected List<? extends org.kuali.rice.krad.bo.BusinessObject> filterProtocolsByStatus(Map<String,String> fieldValues, String... protocolStatusCodes)
fieldValues - the field values that form a normal protocol searchprotocolStatusCodes - the list of protocol status codes that should be included in the search resultprotected List<? extends org.kuali.rice.krad.bo.BusinessObject> filterProtocolsByPrincipal(Map<String,String> fieldValues, String principalKey)
fieldValues - the field values that form a normal protocol searchpersonKey - the key in the fieldValues that maps to the principalIdprotected List<? extends org.kuali.rice.krad.bo.BusinessObject> filterProtocols(Map<String,String> fieldValues)
fieldValues - the field values that form a normal protocol searchprotected List<GenericProtocol> trimResult(List<GenericProtocol> result, Integer trimSize)
result, - the result set to be trimmedtrimSize, - the maximum size of the trimmed result setpublic void validateSearchParameters(Map fieldValues)
validateSearchParameters in interface org.kuali.rice.kns.lookup.LookupableHelperServicevalidateSearchParameters in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImplpublic org.kuali.rice.kns.service.DictionaryValidationService getDictionaryValidationService()
public List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames)
getCustomActionUrls in interface org.kuali.rice.kns.lookup.LookupableHelperServicegetCustomActionUrls in class KraLookupableHelperServiceImplKraLookupableHelperServiceImpl.getCustomActionUrls(org.kuali.rice.krad.bo.BusinessObject, java.util.List)protected boolean isParameterTrue(String parameterKey)
protected org.kuali.rice.kns.lookup.HtmlData.AnchorHtmlData getPerformActionLink(org.kuali.rice.krad.bo.BusinessObject businessObject,
String actionKey)
businessObject - actionKey - protected List<org.kuali.rice.kns.lookup.HtmlData> getEditCopyViewLinks(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames)
businessObject - pkNames - public List<org.kuali.rice.kns.web.ui.Row> getRows()
getRows in interface org.kuali.rice.kns.lookup.LookupableHelperServicegetRows in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImplorg.kuali.core.lookup.AbstractLookupableHelperServiceImpl#getRows()public void setKcPersonService(KcPersonService kcPersonService)
kcPersonService - the kc person servicepublic org.kuali.rice.kns.lookup.HtmlData getInquiryUrl(org.kuali.rice.krad.bo.BusinessObject bo,
String propertyName)
getInquiryUrl in interface org.kuali.rice.kns.lookup.LookupableHelperServicegetInquiryUrl in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImplorg.kuali.core.lookup.AbstractLookupableHelperServiceImpl#getInquiryUrl(org.kuali.core.bo.BusinessObject, java.lang.String)protected String getHtmlAction()
KraLookupableHelperServiceImplgetHtmlAction in class KraLookupableHelperServiceImplprotected String getDocumentTypeName()
KraLookupableHelperServiceImplgetDocumentTypeName in class KraLookupableHelperServiceImplprotected String getKeyFieldName()
KraLookupableHelperServiceImplgetKeyFieldName in class KraLookupableHelperServiceImplprotected String getUserIdentifier()
public void setKraAuthorizationService(KraAuthorizationService kraAuthorizationService)
public void setTaskAuthorizationService(TaskAuthorizationService taskAuthorizationService)
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
protected abstract List<? extends org.kuali.rice.krad.bo.BusinessObject> getSearchResultsFilteredByTask(Map<String,String> fieldValues)
protected abstract Map<String,String> removeExtraFilterParameters(Map<String,String> fieldValues)
protected abstract List<org.kuali.rice.kns.lookup.HtmlData> getCustomActions(org.kuali.rice.krad.bo.BusinessObject businessObject, List pkNames)
protected abstract ProtocolDao<GenericProtocol> getProtocolDaoHook()
protected abstract String getDocumentTypeNameHook()
protected abstract String getHtmlActionHook()
protected abstract Class<? extends ProtocolBase> getProtocolClassHook()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.