Skip to main content

Home/ Groups/ HealthcareMetadata
Malcolm McRoberts

Play Framework: Binding and Validating Objects and Rendering JSON Output | Packt Publis... - 0 views

  • How to do it... Create your entities first. This example consists of a user, an address, and a SuperSecretData entity: @Entitypublic class User extends Model { @SerializedName("userLogin") public String login; @NoJsonExport public String password; @ManyToOne public Address address; @OneToOne public SuperSecretData secrets; public String toString() { return id + "/" + login; }}@Entitypublic class Address extends Model { public String street; public String city; public String zip;}@Entitypublic class SuperSecretData extends Model { public String secret = "foo";}
Malcolm McRoberts

jsonengine - Simple and ultra-scalable JSON storage on Google App Engine. No server-sid... - 0 views

  • Supports Google account and OpenID authentication and access control on each JSON document. Provides admin console for setting the access control.
Malcolm McRoberts

Security and Authentication - MongoDB - 0 views

  • MongoDB includes a basic authentication scheme that works with single server deployments and replica sets. However, the built-in authentication does not work with sharding, so for this and other cases, we recommend running the database in a secure environment.
  • The current version of Mongo supports only very basic security.  One authenticates a username and password in the context of a particular database.  Once authenticated, a normal user has full read and write access to the database in question while a read only user only has read access.
Malcolm McRoberts

python - Ideal schema design for privacy settings in MongoDB and Meteor - Stack Overflow - 0 views

  • var projectSchema = new Schema({ access: { type: String, enum: ACCESS_MODES, required: true, default: 'public' }, owner: { type: Schema.Types.ObjectId, ref: 'User' }] });
Malcolm McRoberts

optimization - Schema design for privacy settings in MongoDB - Database Administrators ... - 0 views

  • { _id: ..., public: true, groups: ['group1', 'group2',...], users: ['user1','user2',...], } You could now query for all documents visible to user X if you have a list of groups user X belongs to by querying: db.documents.find( { $or : [ { public : true }, { users : X }, { groups : { $in : [list-of-X's-groups] } } ] } )
Malcolm McRoberts

Java-Only | RESTful web services with MongoDB - 0 views

  • A tutorial on how to use RestEasy with MongoDB in order to create RESTful web services
Malcolm McRoberts

OLAP cube - Wikipedia, the free encyclopedia - 0 views

  • A cube can be considered a generalization of a three-dimensional spreadsheet.
  • Each cell of the cube holds a number that represents some measure of the business
  • OLAP data is typically stored in a star schema or snowflake schema in a relational data warehouse or in a special-purpose data management system.
  • ...2 more annotations...
  • The elements of a dimension can be organized as a hierarchy,[4]
  • Slice is the act of picking a rectangular subset of a cube by choosing a single value for one of its dimensions, creating a new cube with one fewer dimension
Malcolm McRoberts

The RDF Data Cube Vocabulary - 0 views

  • publish multi-dimensional data, such as statistics, on the web in such a way that it can be linked to related data sets and concepts.
Malcolm McRoberts

XEP-0295: JSON Encodings for XMPP - 0 views

  • Example 4. XML-encoded Message with Security Label<message to='romeo@example.net' from='juliet@example.com/balcony'>    <body>This content is classified.</body>    <securitylabel xmlns='urn:xmpp:sec-label:0'>        <displaymarking fgcolor='black' bgcolor='red'>SECRET</displaymarking>        <label><esssecuritylabel xmlns='urn:xmpp:sec-label:ess:0'>            MQYCAQQGASk=        </esssecuritylabel></label>    </securitylabel></message>  Example 5. JSON-encoded Message with Security Label{"s":"<message to='romeo@example.net' from='juliet@example.com/balcony'><body>This content is classified.</body><securitylabel xmlns='urn:xmpp:sec-label:0'><displaymarking fgcolor='black' bgcolor='red'>SECRET</displaymarking><label><esssecuritylabel xmlns='urn:xmpp:sec-label:ess:0'>MQYCAQQGASk=</esssecuritylabel></label></securitylabel></message>"} 
Malcolm McRoberts

Getting a diff of two JSON strings using Java code - Stack Overflow - 0 views

  • I had the exact same problem and ended up writing my own library: https://github.com/algesten/jsondiff It does both diffing/patching. Diffs are JSON-objects themselves and have a simple syntax for object merge/replace and array insert/replace. Example: original { a: { b: 42 } } patch { "~a" { c: 43 } } The ~ indicates an object merge. result { a: { b: 42, c: 43 } }
Malcolm McRoberts

Google Groups - 0 views

  • There are several common strategies for document versioning. The strategy you select will depend on the trade-offs you want to make. Please note that MongoDB does not have any support for triggers. So a few of these methods will require that you be able to do multiple writes.
  • === Strategy 1: embed history === In theory, you can embed the history of a document inside of the document itself. This can even be done atomically.
  • === Strategy 2: write history to separate collection ===
  • ...2 more annotations...
  • ----- Both strategies can be enhanced by storing only the diffs.
  • Embedding:  + atomic change (especially with findAndModify)  - can result in large documents, may break the 16MB limit  - probably have to enhance code to avoid returning full hist when not necessary Separate collection:  + easier to write queries  - not atomic, needs two operations and Mongo doesn't have transactions  - more storage space (extra indexes on original docs) Hopefully that gets you working in the right direction.
Malcolm McRoberts

zopyx.versioning - A MongoDB based versioning solution for Zope and Plone - ZOPYX Ltd. ... - 0 views

  • zopyx.versioning - A MongoDB based versioning solution for Zope and Plone
Malcolm McRoberts

Document Databases Compared: CouchDB, MongoDB, RavenDB * myNoSQL - 0 views

  • Versioning is an extra-feature that is not fundamental to document databases. MongoDB and CouchDB do not support it by default, but there are different solutions available
  • Versioning is not supported by either MongoDB and CouchDB. MVCC should not be confused for document versioning
  • Built-in Versioning: Most document databases support versioning of documents with the flip of a switch.
Malcolm McRoberts

Home · thiloplanz/v7files Wiki · GitHub - 0 views

  • Installation There has not been a release build yet. You will have to compile v7files from its source code, using Maven.
Malcolm McRoberts

Vermongo · thiloplanz/v7files Wiki · GitHub - 0 views

  • Placing a document under version control is very unintrusive. Vermongo only adds a version number property (an int32 called _version) to the document. It does not touch any other fields. In particular, it also does not place any requirements on the contents of the _id field. Older revisions are stored in a separate collection that shadows the original collection. They are MongoDB documents themselves, and can be queried.
  • When creating, updating, or deleting documents, you just have to follow the Vermongo protocol outlined here. There will be (at least) a Java library to facilitate this. The only major downside is that documents have to be updated one-by-one (no bulk updates possible), and that there is some overhead in retrieving and copying the old version. Query operations can just proceed as normal.
  • After inserting into collection 'foo' a document { a=>"x"}, updating it to { a: "y"}, then to { a: "z" }, and finally deleting it, the shadow collection will contain the following (the original collection will not contain the document anymore, as it has been deleted): > db.foo.vermongo.find() { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 1 }, "a" : "x", "_version" : 1 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 2 }, "a" : "y", "_version" : 2 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 3 }, "a" : "z", "_version" : 3 } { "_id" : { "_id" : ObjectId("4c78da..."), "_version" : 4 }, "_version" : "deleted:4" }
« First ‹ Previous 161 - 180 Next › Last »
Showing 20 items per page