Gets this client's suppression list.
432804
def suppressionlist(self, page=1, page_size=1000, order_field="email", order_direction="asc"):
        """"""
        params = {
            "page": page,
            "pagesize": page_size,
            "orderfield": order_field,
            "orderdirection": order_direction}
        response = self._get(self.uri_for("suppressionlist"), params=params)
        return json_to_py(response)
253145
def list_privileges(name, **client_args):
    '''
    
    '''
    client = _client(**client_args)

    res = {}
    for item in client.get_list_privileges(name):
        res[item['database']] = item['privilege'].split()[0].lower()
    return res
802276
@Nonnull
  public static ICommonsList <String> getAllClientCertIssuer ()
  {
    final ICommonsList <String> ret = new CommonsArrayList <> ();

    int nIndex = 1;
    while (true)
    {
      final String sValue = getConfigFile ().getAsString ("clientcert.issuer." + nIndex);
      if (StringHelper.hasNoText (sValue))
        break;

      // Present - try next
      ret.add (sValue);
      ++nIndex;
    }
    return ret;
  }
483010
public function getNoticeProductList()
    {
        if ($this->_aNoticeProductList === null) {
            if ($oUser = $this->getUser()) {
                $this->_aNoticeProductList = $oUser->getBasket('noticelist')->getArticles();
            }
        }

        return $this->_aNoticeProductList;
    }
1337072
def get_list_filter(self, request):
        
        list_filter = super(VersionedAdmin, self).get_list_filter(request)
        return list(list_filter) + [('version_start_date', DateTimeFilter),
                                    IsCurrentFilter]
1236497
public ServerList filterOutObservers()
    {
        Iterable<ServerSpec> filtered = Iterables.filter
        (
            specs,
            new Predicate<ServerSpec>()
            {
                @Override
                public boolean apply(ServerSpec spec)
                {
                    return spec.getServerType() != ServerType.OBSERVER;
                }
            }
        );
        return new ServerList(Lists.newArrayList(filtered));
    }
1129669
private List<String> filterSourcelist(List<String> sourceList) {
        List<String> filteredList = new ArrayList<String>(sourceList);
        filteredList.remove(CollectorConstants.TRACE_CONFIG_VAL);
        filteredList.remove(CollectorConstants.MESSAGES_CONFIG_VAL);
        return filteredList;
    }
379755
public List<BreakpointMessageInterface> getBreakpointsEnabledList() {
		if (mode.equals(Mode.safe)) {
			return new ArrayList<>();
		}
		return getBreakpointsModel().getBreakpointsEnabledList();
	}
198975
static String suppressionPath(final Class<?> klass, final String name) {
        return decapitalize(klass.getSimpleName()) + "/" + name;
    }
812871
protected function get_blacklisted_hosts() {
        global $CFG;
        if (!isset($CFG->curlsecurityblockedhosts)) {
            return [];
        }
        return array_filter(array_map('trim', explode("\n", $CFG->curlsecurityblockedhosts)), function($entry) {
            return !empty($entry);
        });
    }
1208778
String getBlacklistFilter() {

        if (m_ignoreBlacklist) {
            return "";
        }
        String result = "";
        List<CmsUUID> blacklist = m_config.getBlacklist();
        List<String> blacklistStrings = Lists.newArrayList();
        for (CmsUUID id : blacklist) {
            blacklistStrings.add("\"" + id.toString() + "\"");
        }
        if (!blacklistStrings.isEmpty()) {
            result = "&fq=-id:(" + CmsStringUtil.listAsString(blacklistStrings, " OR ") + ")";
        }
        return result;
    }
1208132
def filter_silenced(self):
        '''
        
        '''
        stashes = [
            ('client', '/silence/{}'.format(self.event['client']['name'])),
            ('check', '/silence/{}/{}'.format(
                self.event['client']['name'],
                self.event['check']['name'])),
            ('check', '/silence/all/{}'.format(self.event['check']['name']))
        ]
        for scope, path in stashes:
            if self.stash_exists(path):
                self.bail(scope + ' alerts silenced')
1054420
def vulns_list(self, service_id=None, service_port=None, hostfilter=None):
        
        return self.send.service_vulns_list(service_id, service_port, hostfilter)
272088
protected function getTriggersPriceRule()
    {
        $list = (array) $this->trigger->getList();

        foreach ($list as &$item) {
            if (empty($item['status'])) {
                $item['name'] .= ' (' . $this->lower($this->text('Disabled')) . ')';
            }
        }

        return $list;
    }
961691
def get_client_state(self):
        """"""
        q = '''SELECT threat_type,platform_type,threat_entry_type,client_state FROM threat_list'''
        output = {}
        with self.get_cursor() as dbc:
            dbc.execute(q)
            for h in dbc.fetchall():
                threat_type, platform_type, threat_entry_type, client_state = h
                threat_list_tuple = (threat_type, platform_type, threat_entry_type)
                output[threat_list_tuple] = client_state
        return output
251734
private final List getFilter(String type) {
	    	try {
	    		mutex.acquire();
	        return (List) mapFilter.get(type + ".filter");
	    	}
	    	finally {
	    		try{mutex.release();}catch(Throwable ignore){}
	    	}
    }
1166028
private String getClientIndex(Client client) {
        return getClientIndex(client.getOrganizationId(), client.getClientId(), client.getVersion());
    }