63 | | * Create ServerResourcesPalette in org.sophie2.main.func.servers. It will track the currently selected element in ConnectionsPalette (using findNearestElement for example) and if there is connection available, it will use it to obtain a list of server resources. When double-clicked a book item (for this revision), the current app logic will be used to download and open the corresponding book. |
64 | | * In org.sophie2.base.connectivity, add method getResourceManager() to the facade interface and create ResourceManager class. It must at least have getResourceList method, as well as getResource(entityId). |
65 | | * '' ResourceManager implementation in the client / the server''. |
| 63 | Currently there is a clear separation of the classes into packages, which will ease the module decomposition. |
| 64 | |
| 65 | 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. |
| 66 | |
| 67 | 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): |
| 68 | * getResourceList() - it will return all resources on the server. |
| 69 | * getResource(String entityId) - will get a resource by a given entityId. |
| 70 | |
| 71 | There will be concrete implementations of these methods in both the client and the server. |
| 72 | |
| 73 | 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. |