code: private CmsPair<String, List<String>> buildAliasConditions(CmsAliasFilter filter) {
  
          List<String> conditions = new ArrayList<String>();
          conditions.add("1 = 1");
          List<String> conditionParams = new ArrayList<String>();
          if (filter.getSiteRoot() != null) {
              conditions.add("site_root = ?");
              conditionParams.add(filter.getSiteRoot());
          }
          if (filter.getStructureId() != null) {
              conditions.add("structure_id = ?");
              conditionParams.add(filter.getStructureId().toString());
          }
          if (filter.getPath() != null) {
              conditions.add("path = ?");
              conditionParams.add(filter.getPath());
          }
          String conditionString = CmsStringUtil.listAsString(conditions, " AND ");
          return CmsPair.create(conditionString, conditionParams);
      }
docs: Helper method to convert an alias filter to SQL conditions.<p>
  
  @param filter the alias filter
  @return a pair containing a condition string and the parameters which are necessary for the conditions