TableColumnOrderService (interface)

Provides the ability to reorder (or suppress) columns in both parented- and standalone tables.

There can be multiple implementations of this service registered, ordered as per the Spring org.springframework.core.annotation.Order annotation (or equivalent). The result of the first service implementation to return a non- null value will be used.

If all provided implementations return null , then the framework will fallback to a default implementation.

API

TableColumnOrderService.java
interface TableColumnOrderService {
  List<String> orderParented(final Object parent, final String collectionId, final Class<?> collectionType, final List<String> propertyIds)     (1)
  List<String> orderStandalone(final Class<?> collectionType, final List<String> propertyIds)     (2)
}
1 orderParented(Object, String, Class, List)

For the parent collection owned by the specified parent and collection Id, return the set of property ids in the same or other order.

2 orderStandalone(Class, List)

For the standalone collection of the specified type, return the set of property ids in the same or other order.

Members

orderParented(Object, String, Class, List)

For the parent collection owned by the specified parent and collection Id, return the set of property ids in the same or other order.

Return null if has no opinion/provides no reordering for this parent and collection.

orderStandalone(Class, List)

For the standalone collection of the specified type, return the set of property ids in the same or other order.

Return null if has no opinion/provides no reordering for this type.

Implementation

The framework provides a fallback implementation of this service, namely o.a.i.core.metamodel.services.tablecol.TableColumnOrderServiceDefault.