Class SCCSearchModelConfiguration
java.lang.Object
org.ametys.plugins.contentio.synchronize.search.SCCSearchModelConfiguration
Search model configuration for SCC import/search tool
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCriteria to mask imported elements in SCCSearchTool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a column to the model.voidaddColumn(String id, I18nizableText label) Add a column to the model.voidaddColumn(String id, I18nizableText label, boolean sortable) Add a column to the model.voidaddColumn(String id, I18nizableText label, int width) Add a column to the model.voidaddColumn(String id, I18nizableText label, int width, boolean sortable) Add a column to the model.voidaddColumn(String id, I18nizableText label, int width, boolean sortable, String type) Add a column to the model.voidaddColumn(String id, I18nizableText label, int width, boolean sortable, String type, String renderer) Add a column to the model.voidaddCriterion(String id) Add a criterion to the model.voidaddCriterion(String id, I18nizableText label) Add a criterion to the model.voidaddCriterion(String id, I18nizableText label, String type) Add a criterion to the model.voidaddCriterion(String id, I18nizableText label, String type, String widget) Add a criterion to the model.voiddisplayMaskImported(boolean displayMaskImported) Set tofalseif 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 tofalseif you don't want to display the maskImported criteria.- Parameters:
displayMaskImported-falseif 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
-