Deploys the databases and the default documents of an ECM system (ELO) to SQL Server, PostgreSQL or Oracle.
| Id | ecm-deployment |
|---|---|
| Role | deployment - needed for the page and the REST API (administrators always may) |
| Page | Plugins > Open (overlay with an X at the top right) or /plugins/ecm-deployment/ |
| REST | /api/plugins/ecm-deployment/… and, for callers with the role, /plugins/ecm-deployment/… |
In the administration open Plugins, select the row of this plug-in and press Open. The page opens in an overlay dialog: close it with the X at the top right, with Esc or by clicking outside; Open in a new tab next to the title shows it full size.
The page has these sections: Profile, 1. ECM system and database, 2. Databases, 3. Document paths, 4. What to deploy, 5. Deploy.
| Label | Meaning |
|---|---|
| ECM system | |
| Database | |
| Server | |
| Port | |
| Administrator login | |
| Password | |
| Service name | |
| Password of the schemas | |
| Tablespace (existing) | |
| _DATA for every schema (in the folder of the USERS data file, or the folder below) and makes it the default tablespace of the user“> | |
| _LOG”> | |
| Folder of the data files | |
| Start size (MB) | |
| Repository database | |
| Access manager database | |
| Source repository (copied for the seed; Oracle: optional) | |
| Source access manager | |
| SQL script of the repository schema (optional) | |
| SQL script of the access manager schema (optional) | |
| Archive folder (written by Vibecat) | |
| The same folder as the ELO server sees it | |
| Access manager data folder | |
| Document source (folder or ZIP, optional) | |
| IndexServer host (instance ELO-<host>-IX) | |
| SSL port | |
| Instance / context | |
| Plug-in folder |
Deploys the databases and the default documents of an ECM system to the database server and the document folders you name. Open the page under Plugins, or call it through REST.
With the valve Plug-in REST (Valves, on by default) the plug-in answers on the port of the web applications, below /plugins/ecm-deployment. Every call needs the login of a user with the role deployment (or admin) (HTTP Basic: the admin user of vibecat.json or a tomcat-users.xml user with an administration role).
| Call | Purpose |
|---|---|
GET /plugins/ecm-deployment | The ECM systems, the database providers, which JDBC drivers are there |
POST /plugins/ecm-deployment/test | Connects to the server with the payload; returns the version and the existing databases |
POST /plugins/ecm-deployment/check | Checks the payload (names, paths, targets, documents) without changing anything: {“problems”:[…],“lines”:[…]} |
POST /plugins/ecm-deployment | Deploys (the payload below); answers at once with {“job”:“3”,“status”:“/plugins/ecm-deployment/jobs/3?since=0”} |
GET /plugins/ecm-deployment/jobs/{id}?since=n | State (running, succeeded, failed), the log lines from n, next, error |
POST /plugins/ecm-deployment/reset-passwords | Sets new passwords for Administrator and ELOService of the repository in the payload (optional administratorPassword, eloServicePassword; empty = generated); the job result holds them |
GET /plugins/ecm-deployment/credentials | The current passwords of the deployed repositories (admin only) |
GET|PUT|DELETE /plugins/ecm-deployment/profiles/{name} | Saved settings profiles (without passwords) |
GET /plugins/ecm-deployment/jobs | The last jobs |
{
"ecm": "elo",
"provider": "sqlserver", // sqlserver | postgres | oracle
"host": "dbserver", "port": 1433, // port: default of the provider
"user": "elodb", "password": "...", // the login that may create databases (dbcreator / CREATEDB / DBA)
"repositoryDatabase": "elo25",
"accessManagerDatabase": "eloam25",
"archivePath": "C:\\ELOenterprise\\archive\\elo25",
"serverArchivePath": "", // the same folder as the ELO server sees it (default: archivePath)
"accessManagerDataPath": "", // default: ...\data\eloam beside the archive folder
"documentSource": "", // folder or ZIP of the documents (default: the bundled ELO 25 documents)
"setup": true, "update": false, "seed": true, "documents": true, "indexServerOptions": true,
"indexServerHost": "elohost", "indexServerSslPort": 9093,
"indexServerInstance": "", // default ix-<repository>
"pluginsDirectory": "" // osgiPluginDirectories of the IndexServer
}
| Field | Meaning |
|---|---|
ecm, provider | ECM system (elo) and database (sqlserver, postgres, oracle) |
host, port, user, password | The database server and the login that creates the databases. The password is used for the call only and is never stored. |
trustServerCertificate, encrypt | SQL Server: trust the certificate (default true) / encrypt the connection (default false) |
repositoryDatabase, accessManagerDatabase | Names of the two databases (Oracle: the schemas); they must not exist when setup is true, unless update is true |
archivePath | Where Vibecat writes the document files (a folder this machine can write to); basis and elosys are created below it |
serverArchivePath | The same folder as the ELO server sees it: this is what the database stores in elodmpath |
update | Databases / schemas that exist already are updated instead of refused: the bundled ELO 25 schema is compared with them and missing tables, columns, indexes and sequences are added (views, defaults and constraints that are missing are created too); nothing is dropped and no data is touched. The seed goes into empty tables only, and the passwords and options of the seed are set only when it put rows in |
setup, seed, documents, indexServerOptions | Create the databases and tables / load the seed / install the default documents / set the IndexServer options |
sourceRepositoryDatabase, sourceAccessManagerDatabase | PostgreSQL / Oracle: existing source databases (schemas) that are copied for the seed |
serviceName, schemaPassword, tablespace, repositoryScript, accessManagerScript | Oracle: service name, password / tablespace of the schemas (no password for an existing schema: the administration login works in it), SQL scripts of the schemas |
curl -u admin:SECRET -X POST http://localhost:8080/plugins/ecm-deployment/check -H "Content-Type: application/json" -d @deploy-elo-sqlserver.json curl -u admin:SECRET -X POST http://localhost:8080/plugins/ecm-deployment -H "Content-Type: application/json" -d @deploy-elo-sqlserver.json curl -u admin:SECRET "http://localhost:8080/plugins/ecm-deployment/jobs/1?since=0"
Ready-made scripts are in the samples folder of the setup package: Invoke-EcmDeployment.ps1 (PowerShell) and invoke-ecm-deployment.sh (Bash, curl), with deploy-elo-sqlserver.json as payload.
Setting or resetting the ELO passwords first checks that credentials.json in the data folder of the plug-in can be written; if not, the job stops before anything is changed. The changes in the access manager database (userdata) and the repository database (eloixopt, ixEloPwd) are one transaction each and are committed only after the credentials file has been written. If writing the file fails, both are rolled back and the old passwords stay (and the old file is restored). If the second commit fails after the first was done, the old password hashes are applied again in the access manager database (the job log says so, or names the old values if even that failed).
tools\Make-OracleSchema.ps1 from an ELO 23 Oracle schema plus the ELO 25 changes (new tables, columns, indexes, sequences) found in the ELO 25 PostgreSQL schema; the access manager schema is translated from the PostgreSQL one.elodmpath), the access manager options and the IndexServer options (ELO-<host>-IX).The deployment of the IndexServer itself (Tomcat, WAR, config.xml) is not part of it: use a Vibecat profile or SwxPS4ELODeployment.
The service of Oracle XE is the pluggable database (XEPDB1); the service XE is the container root and cannot hold normal users. Options for Oracle: Own tablespace per schema creates <SCHEMA>_DATA (the default tablespace of the new user), Log tablespace puts the history and log tables of the repository (OBJHISTORY, DOCHISTORY, WORKFLOWHISTORY, REPLIHIST, FEEDACTIONHIST, ASPHISTORY_0, OBJHISTKEYS, SERVERSTAT) into <SCHEMA>_LOG. The data files go to the folder of the existing USERS data file (e.g. /opt/oracle/oradata/XE/XEPDB1 in a Linux container, a Windows path on a Windows server) or to the folder you give; they start at 128 MB and grow by themselves. Show the SQL*Plus script shows the same work as a script for sqlplus (Linux and Windows); with the schemas made by a script, run the deployment with Update. When the ELO server sees the archive under another path (a container: /elo/data/archive/welser) and this machine under another (C:Dockerelodataarchivewelser), the data folder of the access manager is created below the same root here.