Class SCCSearchModelConfiguration
java.lang.Object
org.ametys.plugins.contentio.synchronize.search.SCCSearchModelConfiguration
Search model configuration for SCC import/search tool
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Criteria to mask imported elements in SCCSearchTool -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.toJSON()
Convert criteria and columns to JSON Map and add searchUrlPlugin, searchUrl and pageSize to JSON results.
-
Field Details
-
CRITERIA_MASK_IMPORTED
Criteria to mask imported elements in SCCSearchTool- See Also:
-
-
Constructor Details
-
SCCSearchModelConfiguration
public SCCSearchModelConfiguration()
-
-
Method Details
-
displayMaskImported
Set tofalse
if you don't want to display the maskImported criteria.- Parameters:
displayMaskImported
-false
if you want to disable the maskImportedCriteria
-
addCriterion
Add a criterion to the model.- Parameters:
id
- ID
-
addCriterion
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized label
-
addCriterion
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized labeltype
- Type (string, boolean, etc.)
-
addCriterion
Add a criterion to the model.- Parameters:
id
- IDlabel
- Internationalized labeltype
- Type (string, boolean, etc.)widget
- The widget to display
-
addColumn
Add a column to the model.- Parameters:
id
- ID
-
addColumn
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized label
-
addColumn
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the column
-
addColumn
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelsortable
- true if sortable
-
addColumn
Add a column to the model.- Parameters:
id
- IDlabel
- Internationalized labelwidth
- Width of the columnsortable
- true if sortable
-
addColumn
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
-
toJSON
Convert criteria and columns to JSON Map and add searchUrlPlugin, searchUrl and pageSize to JSON results.- Returns:
- A Map to be convert as JSON
-