Class SqlUserSelectorByCriteriaBuilder


  • public class SqlUserSelectorByCriteriaBuilder
    extends Object
    A builder of JdbcSqlQuery to select some fields of the users found from some given criteria.
    Author:
    mmoquillon
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JdbcSqlQuery build​(UserDetailsSearchCriteria criteria)
      Builds the a SQL query to find the users that match the specified criteria with the peculiar expectations: First, the criterion on the groups must include also their own children groups; Secondly, when the criterion on the role names are set along the one on the component instance, the criterion on the groups in those roles should be set. If one of these expectations aren't fulfilled then the query couldn't be correct and any unexpected results could be returned.
    • Method Detail

      • build

        public JdbcSqlQuery build​(UserDetailsSearchCriteria criteria)
        Builds the a SQL query to find the users that match the specified criteria with the peculiar expectations:
        • First, the criterion on the groups must include also their own children groups;
        • Secondly, when the criterion on the role names are set along the one on the component instance, the criterion on the groups in those roles should be set.
        If one of these expectations aren't fulfilled then the query couldn't be correct and any unexpected results could be returned.
        Parameters:
        criteria - a set of criteria on the users to find.
        Returns:
        the SQL query matching the specified criteria.