|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.service.impl.ViewDictionaryServiceImpl
public class ViewDictionaryServiceImpl
Implementation of ViewDictionaryService
Pulls view entries from the data dictionary to implement the various query methods
Constructor Summary | |
---|---|
ViewDictionaryServiceImpl()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewDictionaryServiceImpl()
Method Detail |
---|
public Inquirable getInquirable(Class<?> dataObjectClass, String viewName)
ViewDictionaryService
InquiryView
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 used
getInquirable
in interface ViewDictionaryService
dataObjectClass
- - class for the inquiry data objectviewName
- - name of the inquiry view, can be blank in which case the
'default' name will be used
ViewDictionaryService.getInquirable(java.lang.Class,
java.lang.String)
public boolean isInquirable(Class<?> dataObjectClass)
ViewDictionaryService
InquiryView
configured and thus can have inquiry links built
isInquirable
in interface ViewDictionaryService
dataObjectClass
- - object class to get inquiry view for
ViewDictionaryService.isInquirable(java.lang.Class)
public boolean isLookupable(Class<?> dataObjectClass)
ViewDictionaryService
LookupView
configured and thus can have quickfinders
associated with the class
isLookupable
in interface ViewDictionaryService
dataObjectClass
- - object class to get lookup view for
ViewDictionaryService.isLookupable(java.lang.Class)
public boolean isMaintainable(Class<?> dataObjectClass)
ViewDictionaryService
MaintenanceDocumentView
configured
isMaintainable
in interface ViewDictionaryService
dataObjectClass
- - object class to get maintenance view for
ViewDictionaryService.isMaintainable(java.lang.Class)
public Integer getResultSetLimitForLookup(Class<?> dataObjectClass, LookupForm lookupForm)
ViewDictionaryService
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
getResultSetLimitForLookup
in interface ViewDictionaryService
dataObjectClass
- - object class to get lookup view forlookupForm
- - the LookupForm
If 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)
ViewDictionaryService
ViewSessionPolicy
instance associated with the given view id
getViewSessionPolicy
in interface ViewDictionaryService
viewId
- id for the view whose session policy should be retrieved
ViewDictionaryService.getViewSessionPolicy(java.lang.String)
public boolean isSessionStorageEnabled(String viewId)
ViewDictionaryService
isSessionStorageEnabled
in interface ViewDictionaryService
viewId
- id for the view to check
ViewDictionaryService.isSessionStorageEnabled(java.lang.String)
protected DataDictionary getDataDictionary()
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |