org.kuali.rice.kim.impl.responsibility
Class ResponsibilityInquirableImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.rice.krad.inquiry.InquirableImpl
          extended by org.kuali.rice.kns.inquiry.KualiInquirableImpl
              extended by org.kuali.rice.kim.inquiry.RoleMemberInquirableImpl
                  extended by org.kuali.rice.kim.impl.responsibility.ResponsibilityInquirableImpl
All Implemented Interfaces:
Serializable, Inquirable, ViewHelperService

public class ResponsibilityInquirableImpl
extends RoleMemberInquirableImpl

See Also:
Serialized Form

Field Summary
protected  String KIM_RESPONSIBILITY_REQUIRED_ATTRIBUTE_ID
           
protected  String RESPONSIBILITY_ID
           
 
Fields inherited from class org.kuali.rice.kim.inquiry.RoleMemberInquirableImpl
ASSIGNED_TO_ROLES, ATTRIBUTE_DATA_ID, DETAIL_OBJECTS, NAME, NAME_TO_DISPLAY, NAMESPACE_CODE, ROLE_ID, TEMPLATE_NAME, TEMPLATE_NAMESPACE_CODE
 
Fields inherited from class org.kuali.rice.kns.inquiry.KualiInquirableImpl
businessObjectAuthorizationService, businessObjectDictionaryService, businessObjectMetaDataService, businessObjectService, encryptionService, inactiveRecordDisplay, INQUIRY_TITLE_PREFIX, lookupService, persistenceStructureService
 
Fields inherited from class org.kuali.rice.krad.inquiry.InquirableImpl
dataObjectClass, SUPER_CLASS_TRANSLATOR_LIST
 
Constructor Summary
ResponsibilityInquirableImpl()
           
 
Method Summary
 void buildInquirableLink(Object dataObject, String propertyName, Inquiry inquiry)
          Invoked by the ViewHelperService to build a link to the inquiry
protected  HtmlData getAssignedRoleInquiryUrl(BusinessObject businessObject)
           
protected  HtmlData getAttributesInquiryUrl(BusinessObject businessObject, String attributeName)
           
 BusinessObject getBusinessObject(Map fieldValues)
          Return a business object by searching with map, the map keys should be a property name of the business object, with the map value as the value to search for.
 HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry)
          Helper method to build an inquiry url for a result field.
 ResponsibilityService getResponsibilityService()
           
 Object retrieveDataObject(Map fieldValues)
          TODO: generics do not match between call to module service and call to lookup service
 
Methods inherited from class org.kuali.rice.kim.inquiry.RoleMemberInquirableImpl
getKimAttributeLabelFromDD, getRoleImpl
 
Methods inherited from class org.kuali.rice.kns.inquiry.KualiInquirableImpl
addAdditionalSections, createTitleText, getBusinessObjectAuthorizationService, getBusinessObjectClass, getBusinessObjectDictionaryService, getBusinessObjectMetaDataService, getBusinessObjectService, getEncryptionService, getHtmlMenuBar, getHyperLink, getHyperLink, getInactiveRecordDisplay, getInquiryUrlForPrimaryKeys, getKualiConfigurationService, getLookupService, getPersistenceStructureService, getSections, getShowInactiveRecords, getTitle, setBusinessObjectAuthorizationService, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setEncryptionService, setLookupService, setPersistenceStructureService, setShowInactiveRecords
 
Methods inherited from class org.kuali.rice.krad.inquiry.InquirableImpl
getAlternateKeysForClass, getDataDictionaryService, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getKualiModuleService, retrieveKeySetFromMap, setDataObjectClass
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addClientSideStateForComponent, addCustomContainerComponents, addLine, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getConfigurationService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, retrieveEditModesAndActionFlags, runComponentModifiers, setConfigurationService, 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.inquiry.Inquirable
setDataObjectClass
 

Field Detail

KIM_RESPONSIBILITY_REQUIRED_ATTRIBUTE_ID

protected final String KIM_RESPONSIBILITY_REQUIRED_ATTRIBUTE_ID
See Also:
Constant Field Values

RESPONSIBILITY_ID

protected final String RESPONSIBILITY_ID
See Also:
Constant Field Values
Constructor Detail

ResponsibilityInquirableImpl

public ResponsibilityInquirableImpl()
Method Detail

buildInquirableLink

public void buildInquirableLink(Object dataObject,
                                String propertyName,
                                Inquiry inquiry)
Description copied from interface: Inquirable
Invoked by the ViewHelperService to build a link to the inquiry

Note this is used primarily for custom Inquirable implementations to customize the inquiry class or parameters for an inquiry. Instead of building the full inquiry link, implementations can make a callback to org.kuali.rice.krad.uif.widget.Inquiry.buildInquiryLink(Object, String, Class, Map) given an inquiry class and parameters to build the link field.

Specified by:
buildInquirableLink in interface Inquirable
Overrides:
buildInquirableLink in class InquirableImpl
Parameters:
dataObject - - parent object for the inquiry property
propertyName - - name of the property the inquiry is being built for
inquiry - - instance of the inquiry widget being built for the property
See Also:
Inquirable.buildInquirableLink(java.lang.Object, java.lang.String, org.kuali.rice.krad.uif.widget.Inquiry)

getInquiryUrl

public HtmlData getInquiryUrl(BusinessObject businessObject,
                              String attributeName,
                              boolean forceInquiry)
Description copied from class: KualiInquirableImpl
Helper method to build an inquiry url for a result field.

Overrides:
getInquiryUrl in class KualiInquirableImpl
Returns:
String url to inquiry

getAttributesInquiryUrl

protected HtmlData getAttributesInquiryUrl(BusinessObject businessObject,
                                           String attributeName)

getAssignedRoleInquiryUrl

protected HtmlData getAssignedRoleInquiryUrl(BusinessObject businessObject)

retrieveDataObject

public Object retrieveDataObject(Map fieldValues)
Description copied from class: KualiInquirableImpl
TODO: generics do not match between call to module service and call to lookup service

Specified by:
retrieveDataObject in interface Inquirable
Overrides:
retrieveDataObject in class KualiInquirableImpl
Parameters:
fieldValues - - a map of string field names and values
Returns:
the data object or null if not found
See Also:
Inquirable.retrieveDataObject(java.util.Map)

getBusinessObject

public BusinessObject getBusinessObject(Map fieldValues)
Description copied from class: KualiInquirableImpl
Return a business object by searching with map, the map keys should be a property name of the business object, with the map value as the value to search for.

Overrides:
getBusinessObject in class KualiInquirableImpl

getResponsibilityService

public ResponsibilityService getResponsibilityService()


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