...
Code Block |
---|
<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
...
Expand | ||
---|---|---|
| ||
CREATE TABLE [dbo].[PROTKEY_VALUES]( ALTER TABLE [dbo].[PROTKEY_VALUES] ADD DEFAULT ((0)) FOR [FIELDBOOLVALUE] ALTER TABLE [dbo].[PROTKEY_VALUES] WITH CHECK ADD CONSTRAINT [PROTKEY_VALUESRECORDID] FOREIGN KEY([RECORDID]) ALTER TABLE [dbo].[PROTKEY_VALUES] CHECK CONSTRAINT [PROTKEY_VALUESRECORDID] |
Example Queries (based on MSSQL)
Read find all Entries
Code Block | ||
---|---|---|
| ||
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 |
Code Block |
---|
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' |