Skip to main content
When creating a new limit structure via the UI, you can pre-populate fields with default values from a custom template. This can be useful when creating limit structures that share common attributes.

How it works

To create your own template, you will need to create a bean of the LimitStructureTemplate class. Note that the templateName and serverName fields are required:

Define the beans

To define a LimitStructureTemplate bean, you have two options: LimitStructureTemplates can be created via configuration properties. This is the recommended approach as it allows you to define multiple templates in a single file and have the Spring beans created automatically. To define a template in application.yml, add the description under the limits.structure.templates property. A minimal template can be defined as follows, where MyConnectedServer is the name of the Atoti Server that Limits will connect to and serves as the key in the map:
A more complex example can define default values for all configurable fields of a LimitStructure for multiple templates:

Option 2: Define a LimitStructureTemplate bean in a configuration class

To define your own template, add a method in any @Configuration class. Annotate the method with @Bean and return a LimitStructureTemplate object. See Importing Spring Beans into the Project for more information. Example:

Use the template

Once you have defined your template beans, they will be available for selection in the UI when creating a new limit structure. For more details, see Using limit structure templates.