Class ConfigurableExpressionColumn<S extends SelectableRow<T>,T extends Serializable>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
org.apache.wicket.extensions.markup.html.repeater.data.table.export.AbstractExportableColumn<S,String>
com.evolveum.midpoint.gui.impl.component.data.column.ConfigurableExpressionColumn<S,T>
- All Implemented Interfaces:
Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<S>
,org.apache.wicket.extensions.markup.html.repeater.data.table.export.IExportableColumn<S,
,String> org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<S,
,String> org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<S,
,String> org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AbstractNameColumn
,ReportExpressionColumn
public class ConfigurableExpressionColumn<S extends SelectableRow<T>,T extends Serializable>
extends org.apache.wicket.extensions.markup.html.repeater.data.table.export.AbstractExportableColumn<S,String>
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConfigurableExpressionColumn
(org.apache.wicket.model.IModel<String> displayModel, String sortProperty, GuiObjectColumnType customColumns, ExpressionType expressionType, PageBase modelServiceLocator) -
Method Summary
Modifier and TypeMethodDescriptionprotected <V> Collection<V>
evaluate
(VariablesMap variablesMap, ExpressionType expression, com.evolveum.midpoint.task.api.Task task, OperationResult result) protected <V> Collection<V>
evaluateExpression
(T rowValue, Item<?, ?> columnItem, ExpressionType expression, GuiObjectColumnType customColumn) org.apache.wicket.model.IModel<String>
getDataModel
(org.apache.wicket.model.IModel<S> rowModel) protected PageBase
getRowRealValue
(S rowValue) protected String
getStringValueForObject
(ObjectType object) protected String
handleDefaultValue
(S selectable) protected String
handleNullRowValue
(S selectable) <V> String
loadExportableColumnDataModel
(org.apache.wicket.model.IModel<S> rowModel, GuiObjectColumnType customColumn, ItemPath columnPath, ExpressionType expression) void
populateItem
(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<S>> item, String componentId, org.apache.wicket.model.IModel<S> rowModel) protected void
processVariables
(VariablesMap variablesMap, T rowValue) Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.export.AbstractExportableColumn
createDisplayComponent
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
detach, getDisplayModel, getHeader, getSortProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn
getHeader, getHeaderColspan, getHeaderRowspan, getSortProperty, isSortable
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.export.IExportableColumn
getDisplayModel
-
Field Details
-
OPERATION_EVALUATE_EXPRESSION
-
-
Constructor Details
-
ConfigurableExpressionColumn
public ConfigurableExpressionColumn(org.apache.wicket.model.IModel<String> displayModel, String sortProperty, GuiObjectColumnType customColumns, ExpressionType expressionType, PageBase modelServiceLocator)
-
-
Method Details
-
getPageBase
-
populateItem
public void populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<S>> item, String componentId, org.apache.wicket.model.IModel<S> rowModel) - Specified by:
populateItem
in interfaceorg.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<S extends SelectableRow<T>>
- Overrides:
populateItem
in classorg.apache.wicket.extensions.markup.html.repeater.data.table.export.AbstractExportableColumn<S extends SelectableRow<T>,
String>
-
getDataModel
-
getCssClass
- Specified by:
getCssClass
in interfaceorg.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<S extends SelectableRow<T>,
T extends Serializable> - Overrides:
getCssClass
in classorg.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<S extends SelectableRow<T>,
String>
-
loadExportableColumnDataModel
public <V> String loadExportableColumnDataModel(org.apache.wicket.model.IModel<S> rowModel, GuiObjectColumnType customColumn, ItemPath columnPath, ExpressionType expression) -
handleNullRowValue
-
handleDefaultValue
-
getRowRealValue
-
evaluateExpression
protected <V> Collection<V> evaluateExpression(T rowValue, Item<?, ?> columnItem, ExpressionType expression, GuiObjectColumnType customColumn) -
processVariables
-
evaluate
protected <V> Collection<V> evaluate(VariablesMap variablesMap, ExpressionType expression, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, SecurityViolationException, ConfigurationException, ObjectNotFoundException -
getStringValueForObject
-