Optional deployment configuration
There are configuration properties that are not included in the sample deployment configuration that may be relevant for some users to add. These are described in this section.
Importing domains at startup
Authorization Domain Manager provides a facility to import domains at startup when running ADM from the command line.
Open the deployment configuration file in a text editor.
Add the property
import:
Add the parameters
namespace:
andsourcePath:
import:
namespace: <namespace>
sourcePath: <path_to_domain_files>
Both parameters are required. If a value is invalid or missing, ADM will not start.
- namespace: A valid String denoting the namespace for the domain. The value cannot be empty or null.
- sourcePath: A valid file reference pointing to the directory containing the domain files to be imported.
The files in the directory must be Authorization Domain document format version 2 YAML files, one domain per file. The file name (minus the ".yaml" extension) becomes the domain name.
The import
command imports all the files in the source directory into the same namespace.
Use the import
command at startup to execute the importing of the domains:
java -cp authorization-domain-manager-1.1.4.jar:JDBC.jar com.axiomatics.domainmanager.App import <path_to_file>/deployment.yaml
Replace the version placeholders with the most recent available distribution.