[[BackLinksMenu]] [[TicketQuery(summary=S2S_WEB_RESOURCE_MANIPULATION_R4, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] = Analysis = ^(Give as much as possible of the needed information for designing and implementing the task in the following sections.)^ == Overview == Here is an example tree of the data for a sophie2 server [[BR]] * There are three users: admin, peter, and sophie2_user * Groups * Two predefined: everyone and admin * One custom peters_friends [[Image(resources-organization.png)]] [[BR]] These data can be accessed by the sophie 2 server web ui as follow: * A user's profile is accessible at url users/ if current user can access it. By default only a own profile is accessible. * A user can access it's own profile by clicking Edit Profile link (which is available after login) * The resources are accessible at url /resources * Resources can be viewed by clicking the browse menu item. * If current user is logged in the browse menu item navigates to /resources/ * The resource contains a folder for every registered user who has some content. * The groups are not implemented for now and are not part of these analysis. == Task requirements == The following things should be added. {{{ tsachev: I think this must be removed. * group item in the main menu used for * creating a group * adding a member to a group * (optional) giving read or write permissions for a member of a group * a definite user can see only his resources if nobody gives him permission for others * a group name is created by the name chose by the user plus the user's unique name. In this way no groups with equal names can exist. }}} * add delete button for a definite resource * add upload button, giving the ability to upload a new resource * opening a resource now gives a common information for the resource, but some more things should be added: * last change information * all child resources which can also be opened * all the downloaded resources are in the corresponding format(if jpg, in jpg; if pdf in pdf; if sjrb, in sjrb). * frames and pages are not available to be downloaded. * Texts and comments are exported in rtf format. == Task result == Source code == Implementation idea == {{{ tsachev: I think this must be removed. * Add group as a new item in the main menu. }}} * Add "upload" button in the "browse" page. * Add "delete" button next to the "download" one appearing for each resource. == Related == RESOURCES_EXPORT_IMPORT_R0 == How to demo == 1. Open "browse" and see there your resources.[[BR]] 2. Upload a book resource as the book has a text frame in it.[[BR]] 3. Open the book resource and the text resource should be there.[[BR]] 4. Open the text resource.[[BR]] 5. Download the resource and notice the downloaded resource is in rtf format.[[BR]] [[BR]] 1. Open "group".[[BR]] 2. Create a new group.[[BR]] 3. Add an existing user to your group.[[BR]] 4. (optional) Give him a permission for reading for an existing resource.[[BR]] = Design = ^(Describe your design here.)^ = Implementation = ^(Describe and link the implementation results here (from the wiki or the repository).)^ = Testing = ^(Place the testing results here.)^ = Comments = ^(Write comments for this or later revisions here.)