Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Creation of a sharing controller #204

Open
paultranvan opened this issue Feb 16, 2016 · 4 comments
Open

Creation of a sharing controller #204

paultranvan opened this issue Feb 16, 2016 · 4 comments
Assignees

Comments

@paultranvan
Copy link
Contributor

In order to implement the cozy-to-cozy sharing, we need to create a sharing controller.
As a first iteration, this controller could be conceptually split in 3 parts :

  • Creation (sharing creator) : creates a Sharing document including the sharing metadata (recipient urls, description, docids, etc), and sends a sharing proposition for each recipient (could be considered as a Cozy notification).
  • Validation (sharing recipient) : called when a recipient accepts or denies a sharing proposition. If accepted, it creates a new Access document for this sharing. The answer and the credentials (if any) are sent to the sharing creator.
  • Answer (sharing creator) : depending on the recipient's answer, saves the credentials and triggers a CouchDB replication, or removes the recipient from the Sharing document.
@nono
Copy link
Member

nono commented Feb 17, 2016

Maybe, it's better to call it 'sharing service' instead of 'sharing controller', as controller has a specific meaning in cozy.

@frankrousseau
Copy link
Contributor

I think @Gara64 talks about Express/Americano controllers.

@frankrousseau
Copy link
Contributor

But on the architectural point of view, we could include it as a service like we talked for files.

@paultranvan
Copy link
Contributor Author

Yes, I meant an Americano controller, but this could indeed be viewed as a service.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants