Configuration in repository.cfg
<repoName>.protocolservice.type=database <repoName>.protocolservice.database.driver= <repoName>.protocolservice.database.url= <repoName>.protocolservice.database.user= <repoName>.protocolservice.database.password= #<repoName>.protocolservice.database.read-connections.max= #default: 32 #<repoName>.protocolservice.database.read-connections.min= #default: 32 #<repoName>.protocolservice.database.read-connections.shared= #default: false #<repoName>.protocolservice.database.write-connections.max= #default: 32 #<repoName>.protocolservice.database.write-connections.min= #default: 32 #<repoName>.protocolservice.database.cache-statements= #default: false #<repoName>.protocolservice.database.cache-statements.size= #default: 50
H2
<repoName>.protocolservice.database.driver=org.h2.Driver <repoName>.protocolservice.database.url=jdbc:h2:C:/h2db.db;FILE_LOCK=FS;TRACE_LEVEL_SYSTEM_OUT=0
Oracle
<repoName>.protocolservice.database.driver=oracle.jdbc.OracleDriver <repoName>.protocolservice.database.url=jdbc:oracle:thin:@localhost:49161:xe
MSSQL
<repoName>.protocolservice.database.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver <repoName>.protocolservice.database.url=jdbc:sqlserver://localhost:1433;databaseName=CONTENTSERVER;
Tables:
PROTOCOL
Contains on record per access, defines acces modul and access data
PROTKEY_VALUES
multiple record per access, contains details according to configuration
Example Queries (based on MSSQL)
find all Entries
SELECT p.*, pv.FIELDSTRINGVALUE as 'Path' FROM [PROTOCOL] p inner join PROTKEY_VALUES pv on p.RECORDID = pv.RECORDID where pv.FIELDID = 'path'
find read entries only
you can replace “read“ with the following values to get only certain categories:
Value | Description |
---|---|
read | all read access to a folder or document |
create | all create folder or document entries |
update | all update requests |
delete | all delete requests for folder or documents |
info | for info requests (AricheLink or ILM) |
admin | all admin access like create put certificate or serverInfo |
SELECT p.*, pv.FIELDSTRINGVALUE as 'Path' FROM [PROTOCOL] p inner join PROTKEY_VALUES pv on p.RECORDID = pv.RECORDID where pv.FIELDID = 'path' and p.COMMANDCATEGORY = 'read'