Class SCCSearchModelConfiguration

    • Method Detail

      • displayMaskImported

        public void displayMaskImported​(boolean displayMaskImported)
        Set to false 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 - ID
        label - Internationalized label
      • addCriterion

        public void addCriterion​(String id,
                                 I18nizableText label,
                                 String type)
        Add a criterion to the model.
        Parameters:
        id - ID
        label - Internationalized label
        type - Type (string, boolean, etc.)
      • addCriterion

        public void addCriterion​(String id,
                                 I18nizableText label,
                                 String type,
                                 String widget)
        Add a criterion to the model.
        Parameters:
        id - ID
        label - Internationalized label
        type - Type (string, boolean, etc.)
        widget - The widget to display
      • addColumn

        public void addColumn​(String id)
        Add a column to the model.
        Parameters:
        id - ID
      • addColumn

        public void addColumn​(String id,
                              I18nizableText label)
        Add a column to the model.
        Parameters:
        id - ID
        label - Internationalized label
      • addColumn

        public void addColumn​(String id,
                              I18nizableText label,
                              int width)
        Add a column to the model.
        Parameters:
        id - ID
        label - Internationalized label
        width - Width of the column
      • addColumn

        public void addColumn​(String id,
                              I18nizableText label,
                              boolean sortable)
        Add a column to the model.
        Parameters:
        id - ID
        label - Internationalized label
        sortable - true if sortable
      • addColumn

        public void addColumn​(String id,
                              I18nizableText label,
                              int width,
                              boolean sortable)
        Add a column to the model.
        Parameters:
        id - ID
        label - Internationalized label
        width - Width of the column
        sortable - 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 - ID
        label - Internationalized label
        width - Width of the column
        sortable - true if sortable
        type - 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 - ID
        label - Internationalized label
        width - Width of the column
        sortable - true if sortable
        type - Type (string, boolean, etc.)
        renderer - The render JS function
      • toJSON

        public Map<String,​ObjecttoJSON()
        Convert criteria and columns to JSON Map and add searchUrlPlugin, searchUrl and pageSize to JSON results.
        Returns:
        A Map to be convert as JSON