org.kuali.rice.kim.inquiry
Class PermissionInquirableImpl

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

public class PermissionInquirableImpl
extends RoleMemberInquirableImpl

This is a description of what this class does - bhargavp don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static PermissionService permissionService
           
 
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, dataObjectClass, encryptionService, inactiveRecordDisplay, INQUIRY_TITLE_PREFIX, kualiConfigurationService, lookupService, persistenceStructureService, SUPER_CLASS_TRANSLATOR_LIST
 
Constructor Summary
PermissionInquirableImpl()
           
 
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)
          This overridden method ...
 Object getDataObject(Map fieldValues)
          TODO: generics do not match between call to module service and call to lookup service
 HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry)
          Helper method to build an inquiry url for a result field.
 PermissionService getPermissionService()
           
private  PermissionImpl getPermissionsSearchResultsCopy(KimPermissionImpl permissionSearchResult)
           
 
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, getDataObjectClass, getEncryptionService, getHtmlMenuBar, getHyperLink, getHyperLink, getInactiveRecordDisplay, getInquiryUrlForPrimaryKeys, getKualiConfigurationService, getLookupService, getPersistenceStructureService, getSections, getShowInactiveRecords, getTitle, setBusinessObjectAuthorizationService, setBusinessObjectClass, setBusinessObjectDictionaryService, setBusinessObjectMetaDataService, setDataObjectClass, setEncryptionService, setKualiConfigurationService, setLookupService, setPersistenceStructureService, setShowInactiveRecords
 
Methods inherited from class org.kuali.rice.kns.uif.service.impl.ViewHelperServiceImpl
applyDefaultValues, applyDefaultValuesForCollectionLine, buildInquiryLink, findNestedDictionaryAttribute, getCommonContext, getDataDictionaryService, getDictionaryModelClass, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeAttributeFieldFromDataDictionary, invokeAuthorizerPresentationController, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processBeforeAddLine, processCollectionAddLine, processCollectionDeleteLine, runComponentModifiers, setDataDictionaryService, setExpressionEvaluatorService, setViewContext, setViewDictionaryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

permissionService

private static transient PermissionService permissionService
Constructor Detail

PermissionInquirableImpl

public PermissionInquirableImpl()
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.kns.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 KualiInquirableImpl
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.kns.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.

Specified by:
getInquiryUrl in interface Inquirable
Overrides:
getInquiryUrl in class KualiInquirableImpl
Returns:
String url to inquiry

getAttributesInquiryUrl

protected HtmlData getAttributesInquiryUrl(BusinessObject businessObject,
                                           String attributeName)

getAssignedRoleInquiryUrl

protected HtmlData getAssignedRoleInquiryUrl(BusinessObject businessObject)

getDataObject

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

Specified by:
getDataObject in interface Inquirable
Overrides:
getDataObject 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.getDataObject(java.util.Map)

getBusinessObject

public BusinessObject getBusinessObject(Map fieldValues)
This overridden method ...

Specified by:
getBusinessObject in interface Inquirable
Overrides:
getBusinessObject in class KualiInquirableImpl
See Also:
KualiInquirableImpl.getBusinessObject(java.util.Map)

getPermissionService

public PermissionService getPermissionService()

getPermissionsSearchResultsCopy

private PermissionImpl getPermissionsSearchResultsCopy(KimPermissionImpl permissionSearchResult)


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