Changes between Version 18 and Version 19 of GROUP_APP_SERVER_RESOURCE_ACCESS_R0
- Timestamp:
- 06/12/09 14:20:39 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_APP_SERVER_RESOURCE_ACCESS_R0
v18 v19 59 59 60 60 = Design = 61 === Server Decomposition === 61 62 This is the component diagram for the server decomposition: [[BR]] 62 63 [[Image(source:branches/private/kyli/server/sophie2-platform/modules/org.sophie2.server/doc/Modules.png)]][[BR]] … … 69 70 * org.sophie2.server.persistence - persistence. 70 71 72 === Facade === 73 For server resource access, the facade needs to implement an additional method - getResourceManager() that will return an instance of the ResourceManager class. This is a new class that will be created and will support basic manipulation of resources. It should have the following methods (at this iteration): 74 * getResourceList(). It will return list of all book resources on the server (without users and groups). Actually returns ResourceRefs, which hold enough information for resource names, resource IDs on the server, etc. 75 * getResource(String entityId) - will get a resource by a given entityId. 76 There will be concrete implementations of these methods in both the client and the server. [[BR]] 77 UserManager and GroupManager can be combined as SecurityManager, since we do not need such division. 78 79 80 === Client === 71 81 Currently the client successfully establishes a session to the server using the Connections palette in the Servers tab of the left flap. The username and password used are hardcoded at the current stage and will be left this way at this iteration. 72 73 For server resource access, the facade needs to implement an additional method - getResourceManager() that will return an instance of the ResourceManager class. This is a new class that will be created and will support basic manipulation of resources. It should have the following methods (at this iteration):74 * getResourceList() - it will return all resources on the server.75 * getResource(String entityId) - will get a resource by a given entityId.76 77 There will be concrete implementations of these methods in both the client and the server.78 82 79 83 A class ServerResourcesPalette will be created in org.sophie2.main.func.servers. It will track the currently selected element in ConnectionsPalette (using the findNearestElement method) and if there is a connection established, it will use it to obtain a list of server resources. The only action it will support at this iteration is double-click on a book item. This will download and open the selected book, using the current app logic.