public DistributionBeanQuery(final QueryDefinition definition,final Map<String,Object> queryConfig,final Object[] sortPropertyIds,final boolean[] sortStates){
  super(definition,queryConfig,sortPropertyIds,sortStates);
  if (HawkbitCommonUtil.isNotNullOrEmpty(queryConfig)) {
    distributionTags=(Collection<String>)queryConfig.get(SPUIDefinitions.FILTER_BY_TAG);
    searchText=(String)queryConfig.get(SPUIDefinitions.FILTER_BY_TEXT);
    noTagClicked=(Boolean)queryConfig.get(SPUIDefinitions.FILTER_BY_NO_TAG);
    pinnedControllerId=(String)queryConfig.get(SPUIDefinitions.ORDER_BY_PINNED_TARGET);
    if (!Strings.isNullOrEmpty(searchText)) {
      searchText=String.format("%%%s%%",searchText);
    }
  }
  if (sortStates.length > 0) {
    sort=new Sort(sortStates[0] ? Direction.ASC : Direction.DESC,(String)sortPropertyIds[0]);
    for (int distId=1; distId < sortPropertyIds.length; distId++) {
      sort.and(new Sort(sortStates[distId] ? Direction.ASC : Direction.DESC,(String)sortPropertyIds[distId]));
    }
  }
}

public DistributionBeanQuery ( final QueryDefinition definition , final Map < String , Object > queryConfig , final Object [ ] sortPropertyIds , final boolean [ ] sortStates ) { super ( definition , queryConfig , sortPropertyIds , sortStates ) ; if ( HawkbitCommonUtil . isNotNullOrEmpty ( queryConfig ) ) { distributionTags = ( Collection < String > ) queryConfig . get ( SPUIDefinitions . FILTER_BY_TAG ) ; searchText = ( String ) queryConfig . get ( SPUIDefinitions . FILTER_BY_TEXT ) ; noTagClicked = ( Boolean ) queryConfig . get ( SPUIDefinitions . FILTER_BY_NO_TAG ) ; pinnedControllerId = ( String ) queryConfig . get ( SPUIDefinitions . ORDER_BY_PINNED_TARGET ) ; if ( ! Strings . isNullOrEmpty ( searchText ) ) { searchText = String . format ( "%%%s%%" , searchText ) ; } } if ( sortStates . length > 0 ) { sort = new Sort ( sortStates [ 0 ] ? Direction . ASC : Direction . DESC , ( String ) sortPropertyIds [ 0 ] ) ; for ( int distId = 1 ; distId < sortPropertyIds . length ; distId ++ ) { sort . and ( new Sort ( sortStates [ distId ] ? Direction . ASC : Direction . DESC , ( String ) sortPropertyIds [ distId ] ) ) ; } } }
bean query for retrieving beans / objects of type .
