i need to add some security to a Document Library, i want to be able to have multiple folders and multiple documents. This feature would provide users with proper right to modify, read, hide documents and folders depending on what the owner of the document agreed on.
Exemple: UserA creates a documentA, UserA shares documentA to UserB with write and read permission. UserA gives UserC read only permission for documentA. UserD cannot see DocumentA because UserA did not give any permissions.
The user would go through a custom interface, create a folder, upload a document through custom controls and then have a UI to give rights to other site users to read and/or write the document.
For this i created a Document Library with custom types, MyFolders and MyDocument. I want my users to be able to change security/permissions settings of document they upload. So when i present the Document library to a user i can show the right files he has access to and so on.
I would like to write this with JQuery if possible or i can always code it on the backend with C#.
How can i use sharepoint to help me do this ? Where can i read more on this.
Thank you for any help :)