org.kuali.ole.service
Class OlePatronHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.rice.krad.lookup.LookupableImpl
          extended by org.kuali.ole.service.OlePatronHelperServiceImpl
All Implemented Interfaces:
Serializable, OlePatronHelperService, org.kuali.rice.krad.lookup.Lookupable, org.kuali.rice.krad.uif.service.ViewHelperService

public class OlePatronHelperServiceImpl
extends org.kuali.rice.krad.lookup.LookupableImpl
implements OlePatronHelperService

OlePatronHelperServiceImpl converts PatronProperties to EntityProperties and generate new search criteria.

See Also:
Serialized Form

Field Summary
protected  Map<String,String> criteriaConversion
           
protected static String ENTITY_EMAIL_PROPERTY_PREFIX
           
protected static String ENTITY_NAME_PROPERTY_PREFIX
           
 
Constructor Summary
OlePatronHelperServiceImpl()
           
 
Method Summary
 boolean checkAddressMultipleDefault(List<OleEntityAddressBo> addrBoList)
          This method is for checking the entity address has multiple defaults
 boolean checkAddressSource(List<OleAddressBo> oleAddresses)
          This method is for checking the added address source or not
 boolean CheckBarcodeAndLostBarcode(OlePatronDocument olePatronDocument)
           
 boolean checkEmailMultipleDefault(List<org.kuali.rice.kim.impl.identity.email.EntityEmailBo> emailBoList)
          This method is for checking the entity email address has multiple defaults
 boolean checkPhoneMultipleDefault(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> phoneBoList)
          This method is for checking the entity phone has multiple defaults
 Map<String,String> convertPatronPropertiesToEntityProperties(Map<String,String> criteria)
          Populate search criteria from the patron document
 boolean deletePatron(OlePatronDocument olePatronDocument)
           
protected  org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
          Gets the instance of BusinessObjectService
 boolean isBorrowerTypeActive(OlePatronDocument olePatronDocument)
           
protected  boolean isEmailEntityCriteria(String propertyName)
          Check whether email entity is present in search criteria
protected  boolean isNameEntityCriteria(String propertyName)
          Check whether name entity is present in search criteria
 
Methods inherited from class org.kuali.rice.krad.lookup.LookupableImpl
adjustCriteriaForNestedEBOs, allowsMaintenanceDeleteAction, allowsMaintenanceEditAction, allowsMaintenanceNewOrCopyAction, getActionUrlHref, getConfigurationService, getCriteriaFieldsForValidation, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getDefaultSortAttributeNames, getDocumentDictionaryService, getEncryptionService, getFieldConversions, getLookupService, getMaintenanceActionLink, getMaintenanceDocumentTypeName, getParameters, getReadOnlyFieldsList, getReturnKeys, getReturnUrl, getReturnUrlForResults, getReturnUrlParameters, getSearchResults, getSearchResultsForEBO, initializeLookupViewHelperService, isResultReturnable, isSortAscending, performClear, performInitialization, performSearch, populateViewFromRequestParameters, processSearchCriteria, setConfigurationService, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDefaultSortAttributeNames, setDocumentDictionaryService, setEncryptionService, setFieldConversions, setLookupService, setMultiValueLookupSelect, setParameters, setReadOnlyFieldsList, setSortAscending, validateSearchParameters, validateSearchParameterWildcardAndOperators
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addClientSideStateForComponent, addCustomContainerComponents, addLine, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getDataDictionaryService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, populateDefaultValueForField, processAfterAddLine, processAfterDeleteLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processCollectionAddLine, processCollectionDeleteLine, processMultipleValueLookupResults, retrieveEditModesAndActionFlags, runComponentModifiers, setDataDictionaryService, setExpressionEvaluatorService, setViewContext, setViewDictionaryService, syncClientSideStateForComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, processCollectionAddLine, processCollectionDeleteLine, processMultipleValueLookupResults
 

Field Detail

ENTITY_EMAIL_PROPERTY_PREFIX

protected static final String ENTITY_EMAIL_PROPERTY_PREFIX
See Also:
Constant Field Values

ENTITY_NAME_PROPERTY_PREFIX

protected static final String ENTITY_NAME_PROPERTY_PREFIX
See Also:
Constant Field Values

criteriaConversion

protected Map<String,String> criteriaConversion
Constructor Detail

OlePatronHelperServiceImpl

public OlePatronHelperServiceImpl()
Method Detail

convertPatronPropertiesToEntityProperties

public Map<String,String> convertPatronPropertiesToEntityProperties(Map<String,String> criteria)
Populate search criteria from the patron document

Specified by:
convertPatronPropertiesToEntityProperties in interface OlePatronHelperService
Parameters:
criteria -
Returns:
newCriteria

isNameEntityCriteria

protected boolean isNameEntityCriteria(String propertyName)
Check whether name entity is present in search criteria

Parameters:
propertyName -
Returns:
boolean

isEmailEntityCriteria

protected boolean isEmailEntityCriteria(String propertyName)
Check whether email entity is present in search criteria

Parameters:
propertyName -
Returns:
boolean

deletePatron

public boolean deletePatron(OlePatronDocument olePatronDocument)
Specified by:
deletePatron in interface OlePatronHelperService

checkAddressSource

public boolean checkAddressSource(List<OleAddressBo> oleAddresses)
This method is for checking the added address source or not

Specified by:
checkAddressSource in interface OlePatronHelperService
Parameters:
oleAddresses -
Returns:
true , if the address source has value in a single patron record, else false

checkPhoneMultipleDefault

public boolean checkPhoneMultipleDefault(List<org.kuali.rice.kim.impl.identity.phone.EntityPhoneBo> phoneBoList)
This method is for checking the entity phone has multiple defaults

Specified by:
checkPhoneMultipleDefault in interface OlePatronHelperService
Parameters:
phoneBoList -
Returns:
true , if the entity phone has only one default in a single patron record, else false

checkAddressMultipleDefault

public boolean checkAddressMultipleDefault(List<OleEntityAddressBo> addrBoList)
This method is for checking the entity address has multiple defaults

Specified by:
checkAddressMultipleDefault in interface OlePatronHelperService
Parameters:
addrBoList -
Returns:
true , if the entity address has only one default in a single patron record, else false

checkEmailMultipleDefault

public boolean checkEmailMultipleDefault(List<org.kuali.rice.kim.impl.identity.email.EntityEmailBo> emailBoList)
This method is for checking the entity email address has multiple defaults

Specified by:
checkEmailMultipleDefault in interface OlePatronHelperService
Parameters:
emailBoList -
Returns:
true , if the entity email address has only one default in a single patron record, else false

CheckBarcodeAndLostBarcode

public boolean CheckBarcodeAndLostBarcode(OlePatronDocument olePatronDocument)
Specified by:
CheckBarcodeAndLostBarcode in interface OlePatronHelperService

isBorrowerTypeActive

public boolean isBorrowerTypeActive(OlePatronDocument olePatronDocument)
Specified by:
isBorrowerTypeActive in interface OlePatronHelperService

getBusinessObjectService

protected org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
Gets the instance of BusinessObjectService

Returns:
businessObjectService(BusinessObjectService)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.