Class SortDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.krad.datadictionary.SortDefinition
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DataDictionaryDefinition,DictionaryBean
The defaultSort element specifies the sequence in which the lookup search results should be displayed
It contains an ascending/descending indicator and a list of attribute names. JSTL: defaultSort is a Map with the following keys: sortAscending (boolean String) and sortAttributes (Map). By the time JSTL export occurs, the optional attributeName from the defaultSort tag will have been converted into the first contained sortAttribute.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFields 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, ValidationTrace tracer) Empty implementation so that all subclasses do not need to implement this method if they have no local validation to perform.booleanIndicates that the items must be sorted in ascending ordervoidsetAttributeName(String attributeName) The sortAttribute element defines one part of the sort key.voidsetAttributeNames(List<String> attributeNames) The sortAttributes element allows a multiple-part sort key to be defined JSTL: sortAttributes is a Map which is accessed using a key of "sortAttributes".voidsetSortAscending(boolean sortAscending) Setter for the flag to indicate ascending sorting of itemstoString()Methods 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, getNamespaceCode
-
Field Details
-
sortAscending
protected boolean sortAscending -
attributeNames
-
-
Constructor Details
-
SortDefinition
public SortDefinition()
-
-
Method Details
-
setAttributeName
The sortAttribute element defines one part of the sort key. The full sort key is comprised of the sortAttribute's in the order in which they have been defined. DD: See SortAttributesDefinition.java. JSTL: sortAttribute is a Map which is accessed using a key of the attributeName of the sortAttribute. It contains a single entry with the following key: "attributeName" The associated value is the attributeName of the sortAttribute. See LookupMapBuilder.java- Throws:
IllegalArgumentException- if the given attributeName is blank
-
getAttributeNames
- Returns:
- the List of associated attribute names as Strings
-
getSortAscending
public boolean getSortAscending()Indicates that the items must be sorted in ascending order- Returns:
- true if items should sort in ascending order
-
setSortAscending
public void setSortAscending(boolean sortAscending) Setter for the flag to indicate ascending sorting of items- Parameters:
sortAscending-
-
completeValidation
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Description copied from class:DataDictionaryDefinitionBaseEmpty implementation so that all subclasses do not need to implement this method if they have no local validation to perform.- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classDataDictionaryDefinitionBase- Parameters:
rootBusinessObjectClass- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass- other stuff required to complete validationtracer-ValidationTraceclass used to track what was being validated at the time of any problems discovered
-
toString
-
setAttributeNames
The sortAttributes element allows a multiple-part sort key to be defined JSTL: sortAttributes is a Map which is accessed using a key of "sortAttributes". This map contains an entry for sort attribute. The key is: attributeName of a sort field. The associated value is a sortAttribute ExportMap.
-