Class MaintainableFieldDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.kns.datadictionary.MaintainableItemDefinition
org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition
- All Implemented Interfaces:
Serializable,Cloneable,FieldDefinitionI,org.kuali.rice.krad.datadictionary.Copyable,org.kuali.rice.krad.datadictionary.DataDictionaryDefinition,org.kuali.rice.krad.datadictionary.DictionaryBean
@Deprecated
public class MaintainableFieldDefinition
extends MaintainableItemDefinition
implements FieldDefinitionI
Deprecated.
The maintainableField element defines the specifications for one data field.
JSTL: maintainableField is a Map accessed by the field name.
It contains entries with the following keys:
* field (boolean String)
* name (String)
* required (boolean String)
name is the name of the field
required is true if the field must contain a non-null value
readOnly is true if it cannot be updated
template documentation from MaintenanceUtils.java:
Field templates are used in relation to multiple value lookups. When doing a MV lookup on a collection, the
returned BOs are not necessarily of the same type as the elements of the collection. Therefore, a means of
mapping between the fields for the 2 BOs are necessary. The template attribute of <maintainableField> contained
within <maintainableCollection> tells us this mapping.
Example:
<maintainableField name="collectionAttrib" template="lookupBOAttrib"> means that when a list of BOs are
returned, the lookupBOAttrib value of the looked up BO will be placed into the collectionAttrib value of the
BO added to the collection
webUILeaveFieldFunction - The name of a javascript function to called when when the user tabs out of the field.
webUILeaveFieldCallbackFunction - This is the call javascript function related to the webUILeaveFieldFunction.
readOnlyAfterAdd - This is used to indicate that the field is read-only after the record has been initially created.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected Class<? extends org.kuali.rice.krad.valuefinder.ValueFinder> Deprecated.protected StringDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected StringDeprecated.protected Class<? extends org.kuali.rice.krad.bo.BusinessObject> Deprecated.protected booleanDeprecated.protected booleanDeprecated.protected BooleanDeprecated.protected StringDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected StringDeprecated.protected StringDeprecated.Deprecated.Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
embeddedDataObjectMetadata, generatedFromMetadata, idFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) Deprecated.Directly validate simple fields.Deprecated.The additionalDisplayAttributeName is the name of the attribute whose value will be displayed in addition to the actual maintenance field attribute.Deprecated.The alternateDisplayAttributeName is the name of the attribute whose value will be displayed instead of the actual maintenance field attribute.Deprecated.Class<? extends org.kuali.rice.krad.valuefinder.ValueFinder> Deprecated.Deprecated.Deprecated.Gets the overrideFieldConversions attribute.Class<? extends org.kuali.rice.krad.bo.BusinessObject> Deprecated.Gets the overrideLookupClass attribute.Deprecated.Deprecated.Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Deprecated.booleanDeprecated.booleanDeprecated.voidsetAdditionalDisplayAttributeName(String additionalDisplayAttributeName) Deprecated.voidsetAlternateDisplayAttributeName(String alternateDisplayAttributeName) Deprecated.voidsetDefaultValue(String defaultValue) Deprecated.The defaultValue element will pre-load the specified value into the lookup field.voidsetDefaultValueFinderClass(Class<? extends org.kuali.rice.krad.valuefinder.ValueFinder> defaultValueFinderClass) Deprecated.The defaultValueFinderClass specifies the java class that will be used to determine the default value of a lookup field.voidsetFieldLevelHelpUrl(String fieldLevelHelpUrl) Deprecated.voidsetLookupReadOnly(boolean lookupReadOnly) Deprecated.voidsetNoLookup(boolean noLookup) Deprecated.voidsetOverrideFieldConversions(String overrideFieldConversions) Deprecated.Single value lookups expect field conversions to be passed in as a HTTP parameter when the lookups is invoked from a quickfinder icon (i.e. magnifying glass on page).voidsetOverrideLookupClass(Class<? extends org.kuali.rice.krad.bo.BusinessObject> overrideLookupClass) Deprecated.The overrideLookupClass element is used to indicate the class that should be used for the magnifying glass lookup.voidsetReadOnlyAfterAdd(boolean readOnlyAfterAdd) Deprecated.This is used to indicate that the field is read-only after the record has been initially created.voidsetRequired(boolean required) Deprecated.required is true if the field must contain a non-null valuevoidsetShowFieldLevelHelp(Boolean showFieldLevelHelp) Deprecated.voidsetTemplate(String template) Deprecated.template documentation from MaintenanceUtils.java: Field templates are used in relation to multiple value lookups.voidsetTriggerOnChange(boolean triggerOnChange) Deprecated.voidsetUnconditionallyReadOnly(boolean unconditionallyReadOnly) Deprecated.voidsetWebUILeaveFieldCallbackFunction(String webUILeaveFieldCallbackFunction) Deprecated.webUILeaveFieldCallbackFunction This is the call javascript function related to the webUILeaveFieldFunction.voidsetWebUILeaveFieldFunction(String webUILeaveFieldFunction) Deprecated.webUILeaveFieldFunction is the name of a javascript function to called when when the user tabs out of the field.voidsetWebUILeaveFieldFunctionParameters(List<String> webUILeaveFieldFunctionParameters) Deprecated.toString()Deprecated.Methods inherited from class org.kuali.rice.kns.datadictionary.MaintainableItemDefinition
getName, setNameMethods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadataMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.kns.datadictionary.FieldDefinitionI
getName
-
Field Details
-
required
protected boolean requiredDeprecated. -
unconditionallyReadOnly
protected boolean unconditionallyReadOnlyDeprecated. -
readOnlyAfterAdd
protected boolean readOnlyAfterAddDeprecated. -
noLookup
protected boolean noLookupDeprecated. -
lookupReadOnly
protected boolean lookupReadOnlyDeprecated. -
defaultValue
Deprecated. -
template
Deprecated. -
defaultValueFinderClass
Deprecated. -
webUILeaveFieldFunction
Deprecated. -
webUILeaveFieldCallbackFunction
Deprecated. -
webUILeaveFieldFunctionParameters
Deprecated. -
overrideLookupClass
Deprecated. -
overrideFieldConversions
Deprecated. -
alternateDisplayAttributeName
Deprecated. -
additionalDisplayAttributeName
Deprecated. -
triggerOnChange
protected boolean triggerOnChangeDeprecated. -
showFieldLevelHelp
Deprecated. -
fieldLevelHelpUrl
Deprecated.
-
-
Constructor Details
-
MaintainableFieldDefinition
public MaintainableFieldDefinition()Deprecated.
-
-
Method Details
-
isRequired
public boolean isRequired()Deprecated.- Returns:
- true if this attribute is required
-
setRequired
public void setRequired(boolean required) Deprecated.required is true if the field must contain a non-null value -
getDefaultValue
Deprecated.- Returns:
- Returns the defaultValue.
-
setDefaultValue
Deprecated.The defaultValue element will pre-load the specified value into the lookup field. -
getDefaultValueFinderClass
Deprecated.- Returns:
- custom defaultValue class
-
isUnconditionallyReadOnly
public boolean isUnconditionallyReadOnly()Deprecated.- Returns:
- the unconditionallyReadOnly
-
setUnconditionallyReadOnly
public void setUnconditionallyReadOnly(boolean unconditionallyReadOnly) Deprecated.- Parameters:
unconditionallyReadOnly- the unconditionallyReadOnly to set
-
getOverrideFieldConversions
Deprecated.Gets the overrideFieldConversions attribute.- Returns:
- Returns the overrideFieldConversions.
-
setOverrideFieldConversions
Deprecated.Single value lookups expect field conversions to be passed in as a HTTP parameter when the lookups is invoked from a quickfinder icon (i.e. magnifying glass on page). Field conversions are normally used to determine which fields will be returned when the "return value" link is clicked. For example, if we're performing a quickfinder lookup and the field conversion string "a:document.someObject.a1,b:document.someObject.b1" is passed into the lookup, this means that when we click on a lookup result row to be returned: the value of property "a" from the selected result bo will be passed as the value of the HTTP parameter named "document.someObject.a1", which, in turn, populates the POJO property of the same name on the form the value of property "b" from the selected result bo will be passed as the value of the HTTP parameter named "document.someObject.b1", which, in turn, populates the POJO property of the same name on the form Normally, the field conversion string is automatically computed by the framework to return all of the primary key values of the looked up BO into the corresponding foreign key values of the destination BO (i.e. document.someObject in the example above). However, putting in this element will allow for the overriding of the field conversions string. -
getOverrideLookupClass
Deprecated.Gets the overrideLookupClass attribute.- Returns:
- Returns the overrideLookupClass.
-
completeValidation
Deprecated.Directly validate simple fields.- Specified by:
completeValidationin interfaceorg.kuali.rice.krad.datadictionary.DataDictionaryDefinition- Overrides:
completeValidationin classorg.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase- See Also:
-
toString
Deprecated.- Overrides:
toStringin classMaintainableItemDefinition- See Also:
-
getTemplate
Deprecated. -
setTemplate
Deprecated.template documentation from MaintenanceUtils.java: Field templates are used in relation to multiple value lookups. When doing a MV lookup on a collection, the returned BOs are not necessarily of the same type as the elements of the collection. Therefore, a means of mapping between the fields for the 2 BOs are necessary. The template attribute of <maintainableField> contained within <maintainableCollection> tells us this mapping. Example: <maintainableField name="collectionAttrib" template="lookupBOAttrib"> means that when a list of BOs are returned, the lookupBOAttrib value of the looked up BO will be placed into the collectionAttrib value of the BO added to the collection -
getWebUILeaveFieldCallbackFunction
Deprecated. -
setWebUILeaveFieldCallbackFunction
Deprecated.webUILeaveFieldCallbackFunction This is the call javascript function related to the webUILeaveFieldFunction. -
getWebUILeaveFieldFunction
Deprecated. -
setWebUILeaveFieldFunction
Deprecated.webUILeaveFieldFunction is the name of a javascript function to called when when the user tabs out of the field. -
isReadOnlyAfterAdd
public boolean isReadOnlyAfterAdd()Deprecated.- Specified by:
isReadOnlyAfterAddin interfaceFieldDefinitionI
-
setReadOnlyAfterAdd
public void setReadOnlyAfterAdd(boolean readOnlyAfterAdd) Deprecated.This is used to indicate that the field is read-only after the record has been initially created. -
setDefaultValueFinderClass
public void setDefaultValueFinderClass(Class<? extends org.kuali.rice.krad.valuefinder.ValueFinder> defaultValueFinderClass) Deprecated.The defaultValueFinderClass specifies the java class that will be used to determine the default value of a lookup field. The classname specified in this field must implement ValueFinder -
setOverrideLookupClass
public void setOverrideLookupClass(Class<? extends org.kuali.rice.krad.bo.BusinessObject> overrideLookupClass) Deprecated.The overrideLookupClass element is used to indicate the class that should be used for the magnifying glass lookup. The specified class must be a subclass of the business object class. -
isNoLookup
public boolean isNoLookup()Deprecated.- Returns:
- the noLookup
-
setNoLookup
public void setNoLookup(boolean noLookup) Deprecated.- Parameters:
noLookup- the noLookup to set
-
isLookupReadOnly
public boolean isLookupReadOnly()Deprecated. -
setLookupReadOnly
public void setLookupReadOnly(boolean lookupReadOnly) Deprecated. -
isShowFieldLevelHelp
Deprecated. -
setShowFieldLevelHelp
Deprecated. -
getFieldLevelHelpUrl
Deprecated. -
setFieldLevelHelpUrl
Deprecated. -
getAlternateDisplayAttributeName
Deprecated.The alternateDisplayAttributeName is the name of the attribute whose value will be displayed instead of the actual maintenance field attribute. Only applies when field is read-only.- Specified by:
getAlternateDisplayAttributeNamein interfaceFieldDefinitionI
-
setAlternateDisplayAttributeName
Deprecated. -
getAdditionalDisplayAttributeName
Deprecated.The additionalDisplayAttributeName is the name of the attribute whose value will be displayed in addition to the actual maintenance field attribute. Only applies when field is read-only.- Specified by:
getAdditionalDisplayAttributeNamein interfaceFieldDefinitionI
-
setAdditionalDisplayAttributeName
Deprecated. -
isTriggerOnChange
public boolean isTriggerOnChange()Deprecated. -
setTriggerOnChange
public void setTriggerOnChange(boolean triggerOnChange) Deprecated. -
getWebUILeaveFieldFunctionParameters
Deprecated.- Returns:
- the webUILeaveFieldFunctionParameters
-
setWebUILeaveFieldFunctionParameters
Deprecated.- Parameters:
webUILeaveFieldFunctionParameters- the webUILeaveFieldFunctionParameters to set
-
Fieldsubclasses.