org.kuali.kfs.fp.businessobject.lookup
Class CashDrawerLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
      extended by org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
          extended by org.kuali.kfs.fp.businessobject.lookup.CashDrawerLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.LookupableHelperService

public class CashDrawerLookupableHelperServiceImpl
extends org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
implements org.kuali.rice.kns.lookup.LookupableHelperService

Override of KualiLookupableHelperServiceImpl to prevent the editing and copying of Cash Drawers. Also to keep the hobbitses away from my precious.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
LOG, searchUsingOnlyPrimaryKeyValues
 
Fields inherited from class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
ACTION_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 Summary
CashDrawerLookupableHelperServiceImpl()
           
 
Method Summary
 boolean allowsMaintenanceNewOrCopyAction()
          Overridden to see if the current user already has a cash drawer created associated with their campus - if there is a cash drawer already, then no new or copy is allowed
 CashDrawerService getCashDrawerService()
          Gets the cashDrawerService attribute.
 CashReceiptService getCashReceiptService()
          Gets the cashReceiptService attribute.
 List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject, List pkNames)
          Return an empty list - you can't edit or copy cash drawers.
protected  boolean isEditOfCashDrawerAuthorized(CashDrawer cashDrawer)
           
 void setCashDrawerService(CashDrawerService cashDrawerService)
          Sets the cashDrawerService attribute value.
 void setCashReceiptService(CashReceiptService cashReceiptService)
          Sets the cashReceiptService attribute value.
 
Methods inherited from class org.kuali.rice.kns.lookup.KualiLookupableHelperServiceImpl
getExternalBusinessObjectProperty, getExternalizableBusinessObjectClass, getExternalizableBusinessObjectFieldValues, getExternalizableBusinessObjectProperties, getPrimaryKeyFieldLabels, getSearchResults, getSearchResultsHelper, getSearchResultsUnbounded, hasExternalBusinessObjectProperty, isExternalBusinessObjectProperty, isSearchUsingOnlyPrimaryKeyValues, removeExternalizableBusinessObjectFieldValues
 
Methods inherited from class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
addToReturnHref, allowsMaintenanceDeleteAction, allowsMaintenanceEditAction, 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, getInquiryUrl, getKualiConfigurationService, getKualiInquirable, getLookupResultsService, getLookupService, getMaintenanceDocumentDictionaryService, getMaintenanceDocumentTypeName, getMaintenanceUrl, getParameters, getParameters, getParameterService, getParametersFromPrimaryKey, getPersistenceStructureService, getPropertyClass, getReadOnlyFieldsList, getReferencesToRefresh, getReturnAnchorHtmlData, getReturnHref, getReturnHref, getReturnInputHtmlData, getReturnKeys, getReturnLocation, getReturnUrl, getReturnUrl, getRows, getSequenceAccessorService, getSupplementalMenuBar, getTitle, getUrlData, getUrlData, isResultReturnable, maskValueIfNecessary, performClear, performCustomAction, performLookup, preprocessDateFields, setBackLocation, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setBusinessObjectService, setDataDictionaryService, setDocFormKey, setDocNum, setEncryptionService, setFieldConversions, setKualiInquirable, setLookupResultsService, setLookupService, setMaintenanceDocumentDictionaryService, setParameters, setParameterService, setParameterService, setPersistenceStructureService, setReadOnlyFieldsList, setReferencesToRefresh, setRows, setSequenceAccessorService, shouldDisplayHeaderNonMaintActions, shouldDisplayLookupCriteria, validateSearchParameters, validateSearchParameterWildcardAndOperators
 
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.kns.lookup.LookupableHelperService
allowsNewOrCopyAction, applyConditionalLogicForFieldDisplay, applyFieldAuthorizationsFromNestedLookups, checkForAdditionalFields, getActionUrls, getBackLocation, getBusinessObjectClass, getBusinessObjectDictionaryService, getColumns, getDataDictionaryService, getDefaultSortColumns, getDocFormKey, getDocNum, getExtraField, getInquiryUrl, getMaintenanceUrl, getParameters, getPrimaryKeyFieldLabels, getReadOnlyFieldsList, getReturnKeys, getReturnLocation, getReturnUrl, getReturnUrl, getRows, getSearchResults, getSearchResultsUnbounded, getSupplementalMenuBar, getTitle, isResultReturnable, isSearchUsingOnlyPrimaryKeyValues, performClear, performCustomAction, performLookup, setBackLocation, setBusinessObjectClass, setDocFormKey, setDocNum, setFieldConversions, setParameters, setReadOnlyFieldsList, shouldDisplayHeaderNonMaintActions, shouldDisplayLookupCriteria, validateSearchParameters
 

Constructor Detail

CashDrawerLookupableHelperServiceImpl

public CashDrawerLookupableHelperServiceImpl()
Method Detail

getCustomActionUrls

public List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                                    List pkNames)
Return an empty list - you can't edit or copy cash drawers.

Specified by:
getCustomActionUrls in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
getCustomActionUrls in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
AbstractLookupableHelperServiceImpl.getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject, java.util.List)

isEditOfCashDrawerAuthorized

protected boolean isEditOfCashDrawerAuthorized(CashDrawer cashDrawer)
Parameters:
cashDrawer -
Returns:

allowsMaintenanceNewOrCopyAction

public boolean allowsMaintenanceNewOrCopyAction()
Overridden to see if the current user already has a cash drawer created associated with their campus - if there is a cash drawer already, then no new or copy is allowed

Specified by:
allowsMaintenanceNewOrCopyAction in interface org.kuali.rice.kns.lookup.LookupableHelperService
Overrides:
allowsMaintenanceNewOrCopyAction in class org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl
See Also:
AbstractLookupableHelperServiceImpl.allowsMaintenanceNewOrCopyAction()

getCashDrawerService

public CashDrawerService getCashDrawerService()
Gets the cashDrawerService attribute.

Returns:
Returns the cashDrawerService.

setCashDrawerService

public void setCashDrawerService(CashDrawerService cashDrawerService)
Sets the cashDrawerService attribute value.

Parameters:
cashDrawerService - The cashDrawerService to set.

getCashReceiptService

public CashReceiptService getCashReceiptService()
Gets the cashReceiptService attribute.

Returns:
Returns the cashReceiptService.

setCashReceiptService

public void setCashReceiptService(CashReceiptService cashReceiptService)
Sets the cashReceiptService attribute value.

Parameters:
cashReceiptService - The cashReceiptService to set.


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