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:
ContainerableNameColumn
,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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
OPERATION_EVALUATE_EXPRESSION
-
Constructor Summary
Constructors Constructor Description ConfigurableExpressionColumn(org.apache.wicket.model.IModel<String> displayModel, String sortProperty, GuiObjectColumnType customColumns, ExpressionType expressionType, PageBase modelServiceLocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <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)
String
getCssClass()
org.apache.wicket.model.IModel<String>
getDataModel(org.apache.wicket.model.IModel<S> rowModel)
protected PageBase
getPageBase()
T
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
-
-
-
-
Field Detail
-
OPERATION_EVALUATE_EXPRESSION
protected static final String OPERATION_EVALUATE_EXPRESSION
-
-
Constructor Detail
-
ConfigurableExpressionColumn
public ConfigurableExpressionColumn(org.apache.wicket.model.IModel<String> displayModel, String sortProperty, GuiObjectColumnType customColumns, ExpressionType expressionType, PageBase modelServiceLocator)
-
-
Method Detail
-
getPageBase
protected PageBase 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
public org.apache.wicket.model.IModel<String> getDataModel(org.apache.wicket.model.IModel<S> rowModel)
-
getCssClass
public String 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)
-
evaluateExpression
protected <V> Collection<V> evaluateExpression(T rowValue, Item<?,?> columnItem, ExpressionType expression, GuiObjectColumnType customColumn)
-
processVariables
protected void processVariables(VariablesMap variablesMap, T rowValue)
-
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
protected String getStringValueForObject(ObjectType object)
-
-