6#include <UserEvent.idl>
89 constant
int SUCCESS = 0;
90 constant
int ERR_FILTER_NAME_UNKNOWN = 1;
91 constant
int ERR_FILTER_TYPE_READONLY = 2;
92 constant
int ERR_PROFILE_ALREADY_EXISTS = 3;
93 constant
int ERR_PROFILE_DOES_NOT_EXIST = 4;
94 constant
int ERR_PROFILE_IS_DEFAULT = 5;
95 constant
int ERR_PROFILE_IS_BUILTIN = 6;
96 constant
int ERR_PROFILE_NAME_TOO_LONG = 7;
97 constant
int ERR_PROFILE_NAME_INVALID = 8;
98 constant
int ERR_PROFILE_TOO_MANY = 9;
Bulk Configuration Interface.
string getDefaultFilterProfileName()
Retrieve the name of the currently selected default profile.
Settings getSettings()
Get settings.
int setSettings(in Settings settings)
Set settings.
vector< FilterProfile > getFilterProfiles()
Retrieve the configured filter profiles.
vector< Filter > getFilters()
Retrieve the list of supported filters.
Status
Status of the last bulk configuration restore operation.
@ RESTORE_OK
Restoring bulk configuration successful.
@ UNKNOWN
No bulk configuration was done yet.
@ UPLOAD_FAILED
Uploading a bulk configuration failed.
@ RESTORE_PENDING
Restore is pending.
int addFilterProfile(in FilterProfile profile)
Add a new filter profile.
void getStatus(out Status status, out time timeStamp)
Retrieve the status of the last bulk configuration restore operation.
int deleteFilterProfile(in string profileName)
Delete an existing filter profile.
FilterType
These are the supported supported filter types.
@ WHITELIST
Whitelist filter (value is part of the bulk configuration)
int modifyFilterProfile(in FilterProfile profile)
Modify an existing filter profile.
int selectDefaultFilterProfile(in string profileName)
Select a new default filter profile.
Filter profiles are named collections of filters.
map< string, FilterType > filterNameToTypeMap
map filter name to type
string name
name of the filter profile
string description
description of the filter profile
This structure defines a filter.
string displayName
name of the filter in the user interface
boolean noOverride
true if filter is always active and has a fixed type
vector< string > ruleSpecs
filter rule specifications (used only internally)
boolean bulkOnly
true if filter is not for backup
string name
internal name of the filter
Event: Bulk configuration restored (also used for restoring config backup)
boolean isBackup
true if the event is caused by restoring a full configuration backup
Event: Bulk configuration saved (also used for saving config backup)
boolean isBackup
true if the event is caused by saving a full configuration backup
Event: Bulk configuration settings changed.
string defaultProfileName
Name of the default profile.
vector< FilterProfile > filterProfiles
Defined filter profiles.