clinical:collaborations

v2.1.6Published 8 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

clinical:collaborations

Collaboration based security architecture (similar to Roles and Friends).

========================================

Installation

meteor add clinical:collaborations

========================================

Collaboration Schema

1{
2  _id: { type: String, optional: true },
3  slug: { type: String, optional: true },
4  isUnlisted: { type: Boolean },
5  name: { type: String, optional: true, unique: true },
6  description: { type: String, optional: true },
7  collaborators: { type: [String] },
8  administrators: { type: [String] },
9  invitations: { type: [String], optional: true },
10  requests: { type: [String], optional: true },
11  requiresAdministratorApprovalToJoin: { type: Boolean, autoform: { label: "" } }
12}

========================================

Collaboration Object

1  Collaboration.get();
2  Collaboration.getChecked(properties);
3  Collaboration.getChecked(getUrl);
4
5  // client
6  Collaboration.create();
7  Collaboration.getNames();
8  Collaboration.upsertCompleted();
9  Collaboration.upsertFinished();
10
11  // server
12  Collaboration.parseCookies();
13  Collaboration.lookupToken();
14  Collaboration.fetchToken();

========================================

Server Methods

1  Meteor.call('/collaboration/create');
2  Meteor.call('/collaboration/join');
3  Meteor.call('/collaboration/apply');
4  Meteor.call('/collaboration/leave');

========================================

Licensing

MIT. Use as you will.