public class UifDefaultingServiceImpl extends Object implements UifDefaultingService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ANY_CHARACTER_PATTERN_CONSTRAINT |
protected static String |
BIG_DECIMAL_PATTERN_CONSTRAINT |
protected static String |
CURRENCY_PATTERN_CONSTRAINT |
protected DataDictionaryService |
dataDictionaryService |
protected DataObjectService |
dataObjectService |
protected static String |
DATE_PATTERN_CONSTRAINT |
protected static String |
FLOATING_POINT_PATTERN_CONSTRAINT |
protected static String |
TIMESTAMP_PATTERN_CONSTRAINT |
| Constructor and Description |
|---|
UifDefaultingServiceImpl() |
protected DataDictionaryService dataDictionaryService
protected DataObjectService dataObjectService
protected static final String ANY_CHARACTER_PATTERN_CONSTRAINT
protected static final String DATE_PATTERN_CONSTRAINT
protected static final String FLOATING_POINT_PATTERN_CONSTRAINT
protected static final String BIG_DECIMAL_PATTERN_CONSTRAINT
protected static final String TIMESTAMP_PATTERN_CONSTRAINT
protected static final String CURRENCY_PATTERN_CONSTRAINT
public UifDefaultingServiceImpl()
public String deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
UifDefaultingServicederiveHumanFriendlyNameFromPropertyName in interface UifDefaultingServicecamelCasedName - property name, in camel caseprotected UifDisplayHint getHintOfType(DataObjectAttribute attr, UifDisplayHintType hintType)
protected boolean hasHintOfType(DataObjectAttribute attr, UifDisplayHintType hintType)
UifDisplayHints on an attribute, return true if any of them have the
given type.attr - data object attributehintType - hint typeprotected Control getControlInstance(AttributeDefinition attrDef, DataObjectAttribute dataObjectAttribute)
protected void customizeControlInstance(Control c, AttributeDefinition attrDef, DataObjectAttribute dataObjectAttribute)
public Control deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
UifDefaultingServiceAttributeDefinition.
Attempts to build reasonable defaults based on the data type and other metadata which has
been included.
If no special information is found in the metadata, it will return a standard/default text control.deriveControlAttributeFromMetadata in interface UifDefaultingServiceattrDef - attribute definitionpublic ValidCharactersConstraint deriveValidCharactersConstraint(AttributeDefinition attrDef)
UifDefaultingServiceAttributeDefinitionderiveValidCharactersConstraint in interface UifDefaultingServiceattrDef - attribute definitionValidCharactersConstraint object or null if no information in the AttributeDefinition suggests an appropriate default.protected Group createInquirySection(String groupId, String headerText)
protected CollectionGroup createCollectionInquirySection(String groupId, String headerText)
protected void addAttributeSectionsToInquiryView(InquiryView view, DataObjectEntry dataObjectEntry)
protected void addCollectionSectionsToInquiryView(InquiryView view, DataObjectEntry dataObjectEntry)
public InquiryView deriveInquiryViewFromMetadata(DataObjectEntry dataObjectEntry)
UifDefaultingServiceInquiryView for the given data object entry.
Information will be pulled from the DataObjectEntry and the embedded
DataObjectMetadata and DataObjectAttribute instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the inquiry. Additionally, any collections on the object will be
displayed in their own sections.deriveInquiryViewFromMetadata in interface UifDefaultingServicedataObjectEntry - data object entryUifDefaultingService.deriveInquiryViewFromMetadata(org.kuali.rice.krad.datadictionary.DataObjectEntry)protected void addAttributesToLookupCriteria(LookupView view, DataObjectEntry dataObjectEntry)
protected void addAttributesToLookupResults(LookupView view, DataObjectEntry dataObjectEntry)
public LookupView deriveLookupViewFromMetadata(DataObjectEntry dataObjectEntry)
UifDefaultingServiceLookupView for the given data object entry.
Information will be pulled from the DataObjectEntry and the embedded
DataObjectMetadata and DataObjectAttribute instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the lookup search criteria and results.deriveLookupViewFromMetadata in interface UifDefaultingServicedataObjectEntry - data object entryUifDefaultingService.deriveLookupViewFromMetadata(org.kuali.rice.krad.datadictionary.DataObjectEntry)public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.