- multi-DB views
- view structure similar to Domino (multi level categorization, sorted columns)
- support for sums / average values
- compute column values via formula or Java code
- incremental view updates, so no rebuilt required
- full control when the view is updated, optional read locks to have exclusive access
- view is populated by the server, shared across users
- for each user we check which view entries the user is allowed to see (checks DB ACL level and compares user names list for each DB with computed list of document readers list)
- for category entries we accumulate the readers of all descendant docs to quickly skip categories that would be empty for a user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mindoo.domino.virtualviewtest; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mindoo.domino.jna.test; | |
import java.util.ArrayList; | |
import java.util.EnumSet; | |
import java.util.List; | |
import org.junit.Test; | |
import com.mindoo.domino.jna.NotesCollection; | |
import com.mindoo.domino.jna.NotesCollection.ViewLookupCallback; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
Sub createQRPViewPersons | |
Description: Comments for Sub | |
%END REM | |
function createQRPViewPersons1(qrpViewReaders As Variant, expirationHours As Integer) As String | |
On Error GoTo errHandler | |
Dim session As New NotesSession | |
Dim db As NotesDatabase | |
Dim viewName As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ========================================================================== | |
* Licensed under the Apache License, Version 2.0 (the "License"). You may | |
* not use this file except in compliance with the License. You may obtain a | |
* copy of the License at <http://www.apache.org/licenses/LICENSE-2.0>. | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
* License for the specific language governing permissions and limitations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
h1 { | |
font-family: Calibri; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Hello World!</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 Mindoo GmbH | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="pouchdb-2.2.0.js"></script> | |
<script type="text/javascript"> | |
var db; | |
function setupDb() { | |
try { | |
db = new PouchDB('testdb'); | |