Modifier and Type | Class and Description |
---|---|
static class |
Watchlist.WatchlistEntry |
Modifier and Type | Field and Description |
---|---|
static String |
watchlistDatastoreNamespace
Namespace for watchlist entries in Datastore
|
static String |
watchlistEmailKind
Kind for watchlist email entry in Datastore
|
static String |
watchlistIpKind
Kind for watchlist IP entry in Datastore
|
Constructor and Description |
---|
Watchlist()
Return a new watchlist interface for fetching watchlist entries
|
Watchlist(String datastoreProject)
Return a new watchlist interface for fetching watchlist entries
|
Modifier and Type | Method and Description |
---|---|
void |
done()
Closes state interfaces to datastore.
|
Watchlist.WatchlistEntry[] |
getWatchedEmails()
Returns watched email addresses
|
Watchlist.WatchlistEntry[] |
getWatchedIPs()
Returns watched ip addresses
|
ArrayList<Watchlist.WatchlistEntry> |
getWatchlistEntries(String type,
ArrayList<String> values)
Get all watchlist entries of the specific type that match a value in the provided value array.
|
static void |
main(String[] args)
main routine used to create watchlist entries.
|
public static final String watchlistDatastoreNamespace
public static final String watchlistIpKind
public static final String watchlistEmailKind
public Watchlist() throws StateException
StateException
- StateExceptionpublic Watchlist(String datastoreProject) throws StateException
Supports specifiying a GCP project name where the watchlist entries are stored in Datastore
datastoreProject
- GCP project name that contains the watchlist entriesStateException
- StateExceptionpublic ArrayList<Watchlist.WatchlistEntry> getWatchlistEntries(String type, ArrayList<String> values)
type
- Type of watchlist entry (email, ip, etc)values
- List of values to look up.public Watchlist.WatchlistEntry[] getWatchedEmails()
public Watchlist.WatchlistEntry[] getWatchedIPs()
public void done()
Watchlist
Copyright © 2022. All rights reserved.