Configure and connect data restrictions

Related topics

Data restrictions, which are applied on Application level and referred to in many places, allow you to restrict access to data. The Data restriction table comes preloaded with various restrictions, all of which have the preloaded restriction set id ALL. This means that all values are valid for every preloaded Data restriction type. Its flexible handling allows you to set up the restrictions suitably for your site. (See NetStore Data Restrictions in the Technical references accessible on the Iptor Intranet, for more information about the preloaded data restrictions.)

Note: If you want to accept the All id for all preloaded data restrictions, you do not need to configure/change a thing in the Data restriction table. There is, however, one exception. The data restriction Languages is preloaded with values other than ALL. This data restriction must be configured with the languages that you want to support on your site.

The languages supported impact the languages available for texts, pages, etc. The system comes preloaded with the following:

  • All = No restrictions (i.e., all languages from the Language table in Enterprise/DC1 will be available).
  • Default = NetStore default (i.e., English and Swedish).

You may not want to have all languages available on your site. You should set up a data restriction containing the languages that are applicable.

The following instructions outline how to:

Modify/configure the data restriction for the supported languages

  1. Click Others.
  2. Click Data restrictions.
  3. On the Data restriction type window, click the icon next to the data restriction type Language to edit it.
  4. Click the Define sets button.
  5. You access the Data restriction set window. Click New.
  6. Panel image

    Complete the following fields with the applicable information:

    Data restriction set
    Description

    (You would check the No restriction box when you want to temporarily deactivate a restriction OR when there are no restrictions.)

    Click OK.

    Note: The Select clause section will be updated with the actual query once the restriction is used.

  7. You access the Data restriction window. Click New.
  8. Panel image

    Complete the following:

    Field name
    Leave Code.
    Operand
    Select the applicable operand from the drop-down list. The following operands have special requirements:
    • In and Not in require at least two values.
    • Between and Not between must have two values.
    • Like and Not like are wild cards.
    Restriction value(s)
    You can enter as many languages as you support and want to be available on your site. You must, however, enter your system language as one of the languages.
    Note: If there are several values, each value must be entered on a separate line.
  9. Click OK to update, then Exit.

Connect on Application level

In order for this new restriction to take effect, you must now connect it on Application level.

  1. Click Application.
  2. On the Application window, click the Settings button.
  3. On the Settings page, click the icon next to the setting type SupportedLanguages to edit it.
  4. Panel image

    Select the applicable Value from the drop-down list and click OK.

    The setting has now been connected to the application. You must now restart your server for the supported languages to be available. There are three ways to do this, but the recommended way is described below:

Refresh data

Use the NetStore Edition Web Administration tool to refresh the data.

  1. On the Services page, Under NetStore, click Administration.
  2. You access the Administration menu page. Click Close/Shutdown NetStore.
  3. On the Shutdown of NetStore page, click Close.
  4. Check Clear site cache.
  5. Click Shutdown.
  6. Click Open to restart.
  7. Assuming the image flags are available, the name of the languages will be available the next time any user accesses the Start page, as shown in the browser below:

    Panel image

Related topics