clinical:collaborations

v2.3.4Published 7 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.save();
2  Collaboration.getSelected(properties);
3  Collaboration.getUrl(collaborationName);
4  Collaboration.removeCollaborator(emailAddress);
5  Collaboration.addCollaborator(emailAddress);
6  Collaboration.addCollaborators(collaboratorsInputString);
7  Collaboration.addAdministrator(emailAddress);
8  Collaboration.addAdministrators(administratorsInputString);
9  Collaboration.removeAdministrator(emailAddress);
10  Collaboration.hasMember(emailAddress);
11  Collaboration.hasApplied(emailAddress);
12  Collaboration.getNames();
13  Collaboration.getCollaboratorsGraph();
14  Collaboration.getExtendedGraph();
15  Collaboration.getCollaborators();
16
17  // client
18  Collaboration.create();
19  Collaboration.getNames();
20  Collaboration.upsertCompleted();
21  Collaboration.upsertFinished();
22
23  // server
24  Collaboration.parseCookies();
25  Collaboration.lookupToken();
26  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.