Package org.kuali.rice.krad.uif.service
Interface ViewDictionaryService
public interface ViewDictionaryService
Provides methods to query the dictionary meta-data for view entries and their
corresponding component entries
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptiongetInquirable(Class<?> dataObjectClass, String viewName) Queries the dictionary to find theInquiryViewconfigured for the data object class and returns the configured Inquirable for the view.getResultSetLimitForLookup(Class<?> dataObjectClass, LookupForm form) Attempts to find an associatedLookupViewfor 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 IDgetViewSessionPolicy(String viewId) Retrieves theViewSessionPolicyinstance associated with the given view idbooleanisInquirable(Class<?> dataObjectClass) Indicates whether the given data object class has an associatedInquiryViewconfigured and thus can have inquiry links builtbooleanisLookupable(Class<?> dataObjectClass) Indicates whether the given data object class has an associatedLookupViewconfigured and thus can have quickfinders associated with the classbooleanisMaintainable(Class<?> dataObjectClass) Indicates whether the given data object class has an associatedMaintenanceDocumentViewconfiguredbooleanisSessionStorageEnabled(String viewId) Indicates whether session storage is enabled for the view associated with the given id
-
Method Details
-
getInquirable
Queries the dictionary to find theInquiryViewconfigured 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- Parameters:
dataObjectClass- - class for the inquiry data objectviewName- - name of the inquiry view, can be blank in which case the 'default' name will be used- Returns:
- Inquirableinvalid input: '<'?> configured inquirable for the view, or null if view is not found
-
isInquirable
Indicates whether the given data object class has an associatedInquiryViewconfigured and thus can have inquiry links built- Parameters:
dataObjectClass- - object class to get inquiry view for- Returns:
- boolean true if the class has an inquiry view, false if no inquiry view exists for the class
-
isLookupable
Indicates whether the given data object class has an associatedLookupViewconfigured and thus can have quickfinders associated with the class- Parameters:
dataObjectClass- - object class to get lookup view for- Returns:
- boolean true if the class has an lookup view, false if no lookup view exists for the class
-
isMaintainable
Indicates whether the given data object class has an associatedMaintenanceDocumentViewconfigured- Parameters:
dataObjectClass- - object class to get maintenance view for- Returns:
- boolean true if the class has an maintenance view, false if no maintenance view exists for the class
-
getResultSetLimitForLookup
Attempts to find an associatedLookupViewfor 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- Parameters:
dataObjectClass- - object class to get lookup view forform- - the LookupForm- Returns:
- Integer configured result set limit for lookup, or null if not found (note property could also be null on the view itself)
-
getViewSessionPolicy
Retrieves theViewSessionPolicyinstance associated with the given view id- Parameters:
viewId- id for the view whose session policy should be retrieved- Returns:
- view session policy instance for view or null if view not found for the given id
-
isSessionStorageEnabled
Indicates whether session storage is enabled for the view associated with the given id- Parameters:
viewId- id for the view to check- Returns:
- true if session storage is enabled, false if not enabled or the view was not found
-