Class SCCSearchModelConfiguration
- java.lang.Object
-
- org.ametys.plugins.contentio.synchronize.search.SCCSearchModelConfiguration
-
public class SCCSearchModelConfiguration extends Object
Search model configuration for SCC import/search tool
-
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,Object>
__MASK_IMPORTED_CRITERION
private List<Map<String,Object>>
_columns
private Map<String,Map<String,Object>>
_criteria
private boolean
_displayMaskImported
static String
CRITERIA_MASK_IMPORTED
Criteria to mask imported elements in SCCSearchTool
-
Constructor Summary
Constructors Constructor Description SCCSearchModelConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(String id)
Add a column to the model.void
addColumn(String id, I18nizableText label)
Add a column to the model.void
addColumn(String id, I18nizableText label, boolean sortable)
Add a column to the model.void
addColumn(String id, I18nizableText label, int width)
Add a column to the model.void
addColumn(String id, I18nizableText label, int width, boolean sortable)
Add a column to the model.void
addColumn(String id, I18nizableText label, int width, boolean sortable, String type)
Add a column to the model.void
addColumn(String id, I18nizableText label, int width, boolean sortable, String type, String renderer)
Add a column to the model.void
addCriterion(String id)
Add a criterion to the model.void
addCriterion(String id, I18nizableText label)
Add a criterion to the model.void
addCriterion(String id, I18nizableText label, String type)
Add a criterion to the model.void
addCriterion(String id, I18nizableText label, String type, String widget)
Add a criterion to the model.void
displayMaskImported(boolean displayMaskImported)
Set tofalse
if you don't want to display the maskImported criteria.Map<String,Object>
toJSON()
Convert criteria and columns to JSON Map and add searchUrlPlugin, searchUrl and pageSize to JSON results.
-
-
-
Field Detail
-
CRITERIA_MASK_IMPORTED
public static final String CRITERIA_MASK_IMPORTED
Criteria to mask imported elements in SCCSearchTool- See Also:
- Constant Field Values
-
__MASK_IMPORTED_CRITERION
private static final Map<String,Object> __MASK_IMPORTED_CRITERION
-
_displayMaskImported
private boolean _displayMaskImported
-
-
Constructor Detail
-
SCCSearchModelConfiguration
public SCCSearchModelConfiguration()
-
-
Method Detail
-
displayMaskImported
public void displayMaskImported(boolean displayMaskImported)
Set tofalse
if you don't want to display the maskImported criteria.- Parameters:
displayMaskImported
-false
if you want to disable the maskImportedCriteria
-
addCriterion
public void addCriterion(String id)
Add a criterion to the model.- Parameters:
id
- ID
-
addCriterion
public void addCriterion(String id, I18nizableText label)
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized label
-
addCriterion
public void addCriterion(String id, I18nizableText label, String type)
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized labeltype
- Type (string, boolean, etc.)
-
addCriterion
public void addCriterion(String id, I18nizableText label, String type, String widget)
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized labeltype
- Type (string, boolean, etc.)widget
- The widget to display
-
addColumn
public void addColumn(String id, I18nizableText label)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized label
-
addColumn
public void addColumn(String id, I18nizableText label, int width)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the column
-
addColumn
public void addColumn(String id, I18nizableText label, boolean sortable)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelsortable
- true if sortable
-
addColumn
public void addColumn(String id, I18nizableText label, int width, boolean sortable)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the columnsortable
- true if sortable
-
addColumn
public void addColumn(String id, I18nizableText label, int width, boolean sortable, String type)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the columnsortable
- true if sortabletype
- Type (string, boolean, etc.)
-
addColumn
public void addColumn(String id, I18nizableText label, int width, boolean sortable, String type, String renderer)
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the columnsortable
- true if sortabletype
- Type (string, boolean, etc.)renderer
- The render JS function
-
-