Reloading dimension values from providers

By default, i2 Analyze reloads security dimension values from providers every 15 minutes. If your deployment requires it, you can change that period to be shorter or longer, or instruct the server to reload them immediately.

Changing the security dimension values reload interval

To change the interval between requests from i2 Analyze to security dimension values providers, you edit a setting in the DiscoServerSettingsCommon.properties file:

  1. Using a text editor, open the file at toolkit\configuration\fragments\opal-services\WEB-INF\classes\DiscoServerSettingsCommon.properties.

  2. Edit the following settings, and then save and close the file:

    SecurityDimensionValuesReloadInterval=15
    SecurityDimensionValuesReloadIntervalUnits=MINUTES
  3. In a command prompt, navigate to the toolkit\scripts directory.

  4. Stop Liberty, update the i2 Analyze application, and restart Liberty:

    setup -t stopLiberty
    setup -t deployLiberty
    setup -t startLiberty

Reloading security dimension values from all providers

To make the server reload dimension values, you use an endpoint in the i2 Analyze REST API.

  1. Follow the instructions in Using the admin endpoints to set up curl and authenticate with the i2 Analyze server.

  2. Assuming that your authentication cookie is in cookie.txt, execute the following command to reload the security schema:

    curl -i --cookie cookie.txt
         -X POST 
         http://<host_name>/<context_root>/api/v1/admin/securityschema/reload