public class ViewDictionaryServiceImpl extends Object implements ViewDictionaryService
ViewDictionaryService
Pulls view entries from the data dictionary to implement the various query methods
| Constructor and Description |
|---|
ViewDictionaryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected DataDictionary |
getDataDictionary() |
protected DataDictionaryService |
getDataDictionaryService() |
Inquirable |
getInquirable(Class<?> dataObjectClass,
String viewName)
Queries the dictionary to find the
InquiryView configured
for the data object class and returns the configured Inquirable for the
view. |
Integer |
getResultSetLimitForLookup(Class<?> dataObjectClass,
LookupForm lookupForm)
Attempts to find an associated
LookupView for the
given data object class and if found returns the configured result
set limit, if multiple lookup views are found the default is used
unless the specific view can be found by view ID |
ViewSessionPolicy |
getViewSessionPolicy(String viewId)
Retrieves the
ViewSessionPolicy instance associated with the given view id |
boolean |
isInquirable(Class<?> dataObjectClass)
Indicates whether the given data object class has an associated
InquiryView configured and thus can have inquiry links built |
boolean |
isLookupable(Class<?> dataObjectClass)
Indicates whether the given data object class has an associated
LookupView configured and thus can have quickfinders
associated with the class |
boolean |
isMaintainable(Class<?> dataObjectClass)
Indicates whether the given data object class has an associated
MaintenanceDocumentView configured |
boolean |
isSessionStorageEnabled(String viewId)
Indicates whether session storage is enabled for the view associated with the given id
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
public ViewDictionaryServiceImpl()
public Inquirable getInquirable(Class<?> dataObjectClass, String viewName)
ViewDictionaryServiceInquiryView configured
for the data object class and returns the configured Inquirable for the
view. If more than one inquiry view exists for the data object class, the
one that matches the given viewName, or the default if viewName is blank
is usedgetInquirable in interface ViewDictionaryServicedataObjectClass - - class for the inquiry data objectviewName - - name of the inquiry view, can be blank in which case the
'default' name will be usedViewDictionaryService.getInquirable(java.lang.Class,
java.lang.String)public boolean isInquirable(Class<?> dataObjectClass)
ViewDictionaryServiceInquiryView configured and thus can have inquiry links builtisInquirable in interface ViewDictionaryServicedataObjectClass - - object class to get inquiry view forViewDictionaryService.isInquirable(java.lang.Class)public boolean isLookupable(Class<?> dataObjectClass)
ViewDictionaryServiceLookupView configured and thus can have quickfinders
associated with the classisLookupable in interface ViewDictionaryServicedataObjectClass - - object class to get lookup view forViewDictionaryService.isLookupable(java.lang.Class)public boolean isMaintainable(Class<?> dataObjectClass)
ViewDictionaryServiceMaintenanceDocumentView configuredisMaintainable in interface ViewDictionaryServicedataObjectClass - - object class to get maintenance view forViewDictionaryService.isMaintainable(java.lang.Class)public Integer getResultSetLimitForLookup(Class<?> dataObjectClass, LookupForm lookupForm)
ViewDictionaryServiceLookupView for the
given data object class and if found returns the configured result
set limit, if multiple lookup views are found the default is used
unless the specific view can be found by view IDgetResultSetLimitForLookup in interface ViewDictionaryServicedataObjectClass - - object class to get lookup view forlookupForm - - the LookupFormIf the form is null, only the dataObjectClass will be used to find the LookupView and corresponding
results set limit. Since the viewID is not known, the default view will be used.public ViewSessionPolicy getViewSessionPolicy(String viewId)
ViewDictionaryServiceViewSessionPolicy instance associated with the given view idgetViewSessionPolicy in interface ViewDictionaryServiceviewId - id for the view whose session policy should be retrievedViewDictionaryService.getViewSessionPolicy(java.lang.String)public boolean isSessionStorageEnabled(String viewId)
ViewDictionaryServiceisSessionStorageEnabled in interface ViewDictionaryServiceviewId - id for the view to checkViewDictionaryService.isSessionStorageEnabled(java.lang.String)protected DataDictionary getDataDictionary()
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.