org.kuali.kfs.sec.businessobject.lookup
Class AccessSecurityBalanceLookupableHelperServiceImpl

java.lang.Object
  extended by org.kuali.kfs.sec.businessobject.lookup.AccessSecurityBalanceLookupableHelperServiceImpl
All Implemented Interfaces:
Serializable, org.kuali.rice.kns.lookup.LookupableHelperService

public class AccessSecurityBalanceLookupableHelperServiceImpl
extends Object
implements org.kuali.rice.kns.lookup.LookupableHelperService

Wraps balance inquiry lookupables so that access security can be applied to the results

See Also:
Serialized Form

Field Summary
protected  AccessSecurityService accessSecurityService
           
protected static String ACTION_URLS_EMPTY
           
protected  org.kuali.rice.kns.service.BusinessObjectAuthorizationService businessObjectAuthorizationService
           
protected  org.kuali.rice.kns.service.BusinessObjectMetaDataService businessObjectMetaDataService
           
protected  boolean glInquiry
           
protected  boolean laborInquiry
           
protected  org.kuali.rice.kns.lookup.LookupableHelperService lookupableHelperService
           
protected  org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService
           
 
Constructor Summary
AccessSecurityBalanceLookupableHelperServiceImpl()
           
 
Method Summary
 boolean allowsMaintenanceNewOrCopyAction()
           
 boolean allowsNewOrCopyAction(String documentTypeName)
           
 void applyConditionalLogicForFieldDisplay()
           
 void applyFieldAuthorizationsFromNestedLookups(org.kuali.rice.kns.web.ui.Field field)
           
 boolean checkForAdditionalFields(Map fieldValues)
           
 String getActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject, List pkNames, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 String getBackLocation()
           
 Class getBusinessObjectClass()
           
 org.kuali.rice.kns.service.BusinessObjectDictionaryService getBusinessObjectDictionaryService()
           
 List getColumns()
           
 List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject, List pkNames)
           
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
 List getDefaultSortColumns()
           
 String getDocFormKey()
           
 String getDocNum()
           
 org.kuali.rice.kns.web.ui.Field getExtraField()
           
 org.kuali.rice.kns.lookup.HtmlData getInquiryUrl(org.kuali.rice.kns.bo.BusinessObject businessObject, String propertyName)
           
 String getMaintenanceUrl(org.kuali.rice.kns.bo.BusinessObject businessObject, org.kuali.rice.kns.lookup.HtmlData htmlData, List pkNames, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 Map getParameters()
           
 String getPrimaryKeyFieldLabels()
           
 List<String> getReadOnlyFieldsList()
           
 List getReturnKeys()
           
 String getReturnLocation()
           
 org.kuali.rice.kns.lookup.HtmlData getReturnUrl(org.kuali.rice.kns.bo.BusinessObject businessObject, org.kuali.rice.kns.web.struts.form.LookupForm lookupForm, List returnKeys, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 org.kuali.rice.kns.lookup.HtmlData getReturnUrl(org.kuali.rice.kns.bo.BusinessObject businessObject, Map fieldConversions, String lookupImpl, List returnKeys, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 List<org.kuali.rice.kns.web.ui.Row> getRows()
           
 List getSearchResults(Map<String,String> fieldValues)
          Gets search results and passes to access security service to apply access restrictions
 List getSearchResultsUnbounded(Map<String,String> fieldValues)
          Gets search results and passes to access security service to apply access restrictions
 String getSupplementalMenuBar()
           
 String getTitle()
           
 boolean isResultReturnable(org.kuali.rice.kns.bo.BusinessObject object)
           
 boolean isSearchUsingOnlyPrimaryKeyValues()
           
protected  String maskValueIfNecessary(Class businessObjectClass, String propertyName, String propertyValue, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 void performClear(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm)
           
 boolean performCustomAction(boolean ignoreErrors)
           
 Collection performLookup(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm, Collection resultTable, boolean bounded)
          Need to duplicate the logic of performLookup so that getSearchResults will be called on this class and not the nested lookup helper service
protected  Map<String,String> preprocessDateFields(Map lookupFormFields)
          changes from/to dates into the range operators the lookupable dao expects ("..",">" etc) this method modifies the passed in map and returns a list containing only the modified fields
 void setAccessSecurityService(AccessSecurityService accessSecurityService)
          Sets the accessSecurityService attribute value.
 void setBackLocation(String backLocation)
           
 void setBusinessObjectAuthorizationService(org.kuali.rice.kns.service.BusinessObjectAuthorizationService businessObjectAuthorizationService)
          Sets the businessObjectAuthorizationService attribute value.
 void setBusinessObjectClass(Class businessObjectClass)
           
 void setBusinessObjectMetaDataService(org.kuali.rice.kns.service.BusinessObjectMetaDataService businessObjectMetaDataService)
          Sets the businessObjectMetaDataService attribute value.
 void setDocFormKey(String docFormKey)
           
 void setDocNum(String docNum)
           
 void setFieldConversions(Map fieldConversions)
           
 void setGlInquiry(boolean glInquiry)
          Sets the glInquiry attribute value.
 void setLaborInquiry(boolean laborInquiry)
          Sets the laborInquiry attribute value.
 void setLookupableHelperService(org.kuali.rice.kns.lookup.LookupableHelperService lookupableHelperService)
          Sets the lookupableHelperService attribute value.
 void setParameters(Map parameters)
           
 void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
          Sets the persistenceStructureService attribute value.
 void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
           
protected  org.kuali.rice.kns.web.ui.Column setupResultsColumn(org.kuali.rice.kns.bo.BusinessObject element, String attributeName, org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
           
 boolean shouldDisplayHeaderNonMaintActions()
           
 boolean shouldDisplayLookupCriteria()
           
 void validateSearchParameters(Map fieldValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_URLS_EMPTY

protected static final String ACTION_URLS_EMPTY
See Also:
Constant Field Values

accessSecurityService

protected AccessSecurityService accessSecurityService

lookupableHelperService

protected org.kuali.rice.kns.lookup.LookupableHelperService lookupableHelperService

businessObjectMetaDataService

protected org.kuali.rice.kns.service.BusinessObjectMetaDataService businessObjectMetaDataService

businessObjectAuthorizationService

protected org.kuali.rice.kns.service.BusinessObjectAuthorizationService businessObjectAuthorizationService

persistenceStructureService

protected org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService

glInquiry

protected boolean glInquiry

laborInquiry

protected boolean laborInquiry
Constructor Detail

AccessSecurityBalanceLookupableHelperServiceImpl

public AccessSecurityBalanceLookupableHelperServiceImpl()
Method Detail

allowsMaintenanceNewOrCopyAction

public boolean allowsMaintenanceNewOrCopyAction()
Specified by:
allowsMaintenanceNewOrCopyAction in interface org.kuali.rice.kns.lookup.LookupableHelperService

allowsNewOrCopyAction

public boolean allowsNewOrCopyAction(String documentTypeName)
Specified by:
allowsNewOrCopyAction in interface org.kuali.rice.kns.lookup.LookupableHelperService

applyFieldAuthorizationsFromNestedLookups

public void applyFieldAuthorizationsFromNestedLookups(org.kuali.rice.kns.web.ui.Field field)
Specified by:
applyFieldAuthorizationsFromNestedLookups in interface org.kuali.rice.kns.lookup.LookupableHelperService

checkForAdditionalFields

public boolean checkForAdditionalFields(Map fieldValues)
Specified by:
checkForAdditionalFields in interface org.kuali.rice.kns.lookup.LookupableHelperService

getActionUrls

public String getActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject,
                            List pkNames,
                            org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
Specified by:
getActionUrls in interface org.kuali.rice.kns.lookup.LookupableHelperService

getBackLocation

public String getBackLocation()
Specified by:
getBackLocation in interface org.kuali.rice.kns.lookup.LookupableHelperService

getBusinessObjectClass

public Class getBusinessObjectClass()
Specified by:
getBusinessObjectClass in interface org.kuali.rice.kns.lookup.LookupableHelperService

getBusinessObjectDictionaryService

public org.kuali.rice.kns.service.BusinessObjectDictionaryService getBusinessObjectDictionaryService()
Specified by:
getBusinessObjectDictionaryService in interface org.kuali.rice.kns.lookup.LookupableHelperService

getColumns

public List getColumns()
Specified by:
getColumns in interface org.kuali.rice.kns.lookup.LookupableHelperService

getCustomActionUrls

public List<org.kuali.rice.kns.lookup.HtmlData> getCustomActionUrls(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                                    List pkNames)
Specified by:
getCustomActionUrls in interface org.kuali.rice.kns.lookup.LookupableHelperService

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
Specified by:
getDataDictionaryService in interface org.kuali.rice.kns.lookup.LookupableHelperService

getDefaultSortColumns

public List getDefaultSortColumns()
Specified by:
getDefaultSortColumns in interface org.kuali.rice.kns.lookup.LookupableHelperService

getDocFormKey

public String getDocFormKey()
Specified by:
getDocFormKey in interface org.kuali.rice.kns.lookup.LookupableHelperService

getDocNum

public String getDocNum()
Specified by:
getDocNum in interface org.kuali.rice.kns.lookup.LookupableHelperService

getExtraField

public org.kuali.rice.kns.web.ui.Field getExtraField()
Specified by:
getExtraField in interface org.kuali.rice.kns.lookup.LookupableHelperService

getInquiryUrl

public org.kuali.rice.kns.lookup.HtmlData getInquiryUrl(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                        String propertyName)
Specified by:
getInquiryUrl in interface org.kuali.rice.kns.lookup.LookupableHelperService

getMaintenanceUrl

public String getMaintenanceUrl(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                org.kuali.rice.kns.lookup.HtmlData htmlData,
                                List pkNames,
                                org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
Specified by:
getMaintenanceUrl in interface org.kuali.rice.kns.lookup.LookupableHelperService

getParameters

public Map getParameters()
Specified by:
getParameters in interface org.kuali.rice.kns.lookup.LookupableHelperService

getPrimaryKeyFieldLabels

public String getPrimaryKeyFieldLabels()
Specified by:
getPrimaryKeyFieldLabels in interface org.kuali.rice.kns.lookup.LookupableHelperService

getReadOnlyFieldsList

public List<String> getReadOnlyFieldsList()
Specified by:
getReadOnlyFieldsList in interface org.kuali.rice.kns.lookup.LookupableHelperService

getReturnKeys

public List getReturnKeys()
Specified by:
getReturnKeys in interface org.kuali.rice.kns.lookup.LookupableHelperService

getReturnLocation

public String getReturnLocation()
Specified by:
getReturnLocation in interface org.kuali.rice.kns.lookup.LookupableHelperService

getReturnUrl

public org.kuali.rice.kns.lookup.HtmlData getReturnUrl(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                       org.kuali.rice.kns.web.struts.form.LookupForm lookupForm,
                                                       List returnKeys,
                                                       org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
Specified by:
getReturnUrl in interface org.kuali.rice.kns.lookup.LookupableHelperService

getReturnUrl

public org.kuali.rice.kns.lookup.HtmlData getReturnUrl(org.kuali.rice.kns.bo.BusinessObject businessObject,
                                                       Map fieldConversions,
                                                       String lookupImpl,
                                                       List returnKeys,
                                                       org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
Specified by:
getReturnUrl in interface org.kuali.rice.kns.lookup.LookupableHelperService

getRows

public List<org.kuali.rice.kns.web.ui.Row> getRows()
Specified by:
getRows in interface org.kuali.rice.kns.lookup.LookupableHelperService

getSearchResults

public List getSearchResults(Map<String,String> fieldValues)
Gets search results and passes to access security service to apply access restrictions

Specified by:
getSearchResults in interface org.kuali.rice.kns.lookup.LookupableHelperService
See Also:
LookupableHelperService.getSearchResults(java.util.Map)

getSearchResultsUnbounded

public List getSearchResultsUnbounded(Map<String,String> fieldValues)
Gets search results and passes to access security service to apply access restrictions

Specified by:
getSearchResultsUnbounded in interface org.kuali.rice.kns.lookup.LookupableHelperService
See Also:
LookupableHelperService.getSearchResultsUnbounded(java.util.Map)

getSupplementalMenuBar

public String getSupplementalMenuBar()
Specified by:
getSupplementalMenuBar in interface org.kuali.rice.kns.lookup.LookupableHelperService

getTitle

public String getTitle()
Specified by:
getTitle in interface org.kuali.rice.kns.lookup.LookupableHelperService

isResultReturnable

public boolean isResultReturnable(org.kuali.rice.kns.bo.BusinessObject object)
Specified by:
isResultReturnable in interface org.kuali.rice.kns.lookup.LookupableHelperService

isSearchUsingOnlyPrimaryKeyValues

public boolean isSearchUsingOnlyPrimaryKeyValues()
Specified by:
isSearchUsingOnlyPrimaryKeyValues in interface org.kuali.rice.kns.lookup.LookupableHelperService

performClear

public void performClear(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm)
Specified by:
performClear in interface org.kuali.rice.kns.lookup.LookupableHelperService

performCustomAction

public boolean performCustomAction(boolean ignoreErrors)
Specified by:
performCustomAction in interface org.kuali.rice.kns.lookup.LookupableHelperService

performLookup

public Collection performLookup(org.kuali.rice.kns.web.struts.form.LookupForm lookupForm,
                                Collection resultTable,
                                boolean bounded)
Need to duplicate the logic of performLookup so that getSearchResults will be called on this class and not the nested lookup helper service

Specified by:
performLookup in interface org.kuali.rice.kns.lookup.LookupableHelperService
See Also:
LookupableHelperService.performLookup(org.kuali.rice.kns.web.struts.form.LookupForm, java.util.Collection, boolean)

setupResultsColumn

protected org.kuali.rice.kns.web.ui.Column setupResultsColumn(org.kuali.rice.kns.bo.BusinessObject element,
                                                              String attributeName,
                                                              org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)
Parameters:
element -
attributeName -
Returns:
Column

preprocessDateFields

protected Map<String,String> preprocessDateFields(Map lookupFormFields)
changes from/to dates into the range operators the lookupable dao expects ("..",">" etc) this method modifies the passed in map and returns a list containing only the modified fields

Parameters:
lookupFormFields -

maskValueIfNecessary

protected String maskValueIfNecessary(Class businessObjectClass,
                                      String propertyName,
                                      String propertyValue,
                                      org.kuali.rice.kns.authorization.BusinessObjectRestrictions businessObjectRestrictions)

setBackLocation

public void setBackLocation(String backLocation)
Specified by:
setBackLocation in interface org.kuali.rice.kns.lookup.LookupableHelperService

setBusinessObjectClass

public void setBusinessObjectClass(Class businessObjectClass)
Specified by:
setBusinessObjectClass in interface org.kuali.rice.kns.lookup.LookupableHelperService

setDocFormKey

public void setDocFormKey(String docFormKey)
Specified by:
setDocFormKey in interface org.kuali.rice.kns.lookup.LookupableHelperService

setDocNum

public void setDocNum(String docNum)
Specified by:
setDocNum in interface org.kuali.rice.kns.lookup.LookupableHelperService

setFieldConversions

public void setFieldConversions(Map fieldConversions)
Specified by:
setFieldConversions in interface org.kuali.rice.kns.lookup.LookupableHelperService

setParameters

public void setParameters(Map parameters)
Specified by:
setParameters in interface org.kuali.rice.kns.lookup.LookupableHelperService

setReadOnlyFieldsList

public void setReadOnlyFieldsList(List<String> readOnlyFieldsList)
Specified by:
setReadOnlyFieldsList in interface org.kuali.rice.kns.lookup.LookupableHelperService

shouldDisplayHeaderNonMaintActions

public boolean shouldDisplayHeaderNonMaintActions()
Specified by:
shouldDisplayHeaderNonMaintActions in interface org.kuali.rice.kns.lookup.LookupableHelperService

shouldDisplayLookupCriteria

public boolean shouldDisplayLookupCriteria()
Specified by:
shouldDisplayLookupCriteria in interface org.kuali.rice.kns.lookup.LookupableHelperService

validateSearchParameters

public void validateSearchParameters(Map fieldValues)
Specified by:
validateSearchParameters in interface org.kuali.rice.kns.lookup.LookupableHelperService

setAccessSecurityService

public void setAccessSecurityService(AccessSecurityService accessSecurityService)
Sets the accessSecurityService attribute value.

Parameters:
accessSecurityService - The accessSecurityService to set.

setLookupableHelperService

public void setLookupableHelperService(org.kuali.rice.kns.lookup.LookupableHelperService lookupableHelperService)
Sets the lookupableHelperService attribute value.

Parameters:
lookupableHelperService - The lookupableHelperService to set.

setBusinessObjectMetaDataService

public void setBusinessObjectMetaDataService(org.kuali.rice.kns.service.BusinessObjectMetaDataService businessObjectMetaDataService)
Sets the businessObjectMetaDataService attribute value.

Parameters:
businessObjectMetaDataService - The businessObjectMetaDataService to set.

setBusinessObjectAuthorizationService

public void setBusinessObjectAuthorizationService(org.kuali.rice.kns.service.BusinessObjectAuthorizationService businessObjectAuthorizationService)
Sets the businessObjectAuthorizationService attribute value.

Parameters:
businessObjectAuthorizationService - The businessObjectAuthorizationService to set.

setPersistenceStructureService

public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value.

Parameters:
persistenceStructureService - The persistenceStructureService to set.

setGlInquiry

public void setGlInquiry(boolean glInquiry)
Sets the glInquiry attribute value.

Parameters:
glInquiry - The glInquiry to set.

setLaborInquiry

public void setLaborInquiry(boolean laborInquiry)
Sets the laborInquiry attribute value.

Parameters:
laborInquiry - The laborInquiry to set.

applyConditionalLogicForFieldDisplay

public void applyConditionalLogicForFieldDisplay()
Specified by:
applyConditionalLogicForFieldDisplay in interface org.kuali.rice.kns.lookup.LookupableHelperService


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