Class DatadogSettings
java.lang.Object
edu.internet2.middleware.grouper.app.datadog.DatadogSettings
Settings for Datadog provisioner, passed to API command methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertNotIgnoredUserEmail(String email) Throw an exception if the email is in the ignore list.booleanisIgnoredRole(String roleName) Check if a role name should be ignored.booleanisIgnoredUserEmail(String email) Check if a user email should be ignored.voidloadFromDatadogProvisionerConfiguration(DatadogProvisionerConfiguration datadogConfiguration) Load settings from the Datadog provisioner configuration.voidsetIgnoreRoles(Set<String> ignoreRoles) voidsetIgnoreUserEmails(Set<String> ignoreUserEmails)
-
Constructor Details
-
DatadogSettings
public DatadogSettings()
-
-
Method Details
-
getIgnoreUserEmails
- Returns:
- set of user emails to ignore
-
setIgnoreUserEmails
- Parameters:
ignoreUserEmails-
-
getIgnoreRoles
- Returns:
- set of role names to ignore
-
setIgnoreRoles
- Parameters:
ignoreRoles-
-
isIgnoredUserEmail
Check if a user email should be ignored. Matches against email or handle (which is typically the same as email in Datadog).- Parameters:
email- the email to check- Returns:
- true if the email should be ignored
-
isIgnoredRole
Check if a role name should be ignored.- Parameters:
roleName- the role name to check- Returns:
- true if the role should be ignored
-
assertNotIgnoredUserEmail
Throw an exception if the email is in the ignore list. Used for create/update/delete/retrieveByEmail operations where operating on an ignored user indicates something is wrong.- Parameters:
email- the email to check
-
loadFromDatadogProvisionerConfiguration
public void loadFromDatadogProvisionerConfiguration(DatadogProvisionerConfiguration datadogConfiguration) Load settings from the Datadog provisioner configuration.- Parameters:
datadogConfiguration- the provisioner configuration
-