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)
UifDefaultingService
deriveHumanFriendlyNameFromPropertyName
in interface UifDefaultingService
camelCasedName
- property name, in camel caseprotected UifDisplayHint getHintOfType(DataObjectAttribute attr, UifDisplayHintType hintType)
protected boolean hasHintOfType(DataObjectAttribute attr, UifDisplayHintType hintType)
UifDisplayHint
s 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)
UifDefaultingService
AttributeDefinition
.
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 UifDefaultingService
attrDef
- attribute definitionpublic ValidCharactersConstraint deriveValidCharactersConstraint(AttributeDefinition attrDef)
UifDefaultingService
AttributeDefinition
deriveValidCharactersConstraint
in interface UifDefaultingService
attrDef
- 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)
UifDefaultingService
InquiryView
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 UifDefaultingService
dataObjectEntry
- 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)
UifDefaultingService
LookupView
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 UifDefaultingService
dataObjectEntry
- 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.