Version 7 (modified by kyli, 16 years ago) (diff) |
---|
Analysis
Overview
Every resource should have meta information, which consists of:
- The author of the resource
- The date the resource was created
- Version of the resource
- The date the resource was last modified
- Who was the last that modified the resource
- The dimensions of the image (if the target of the resource is an image)
- etc.
Task requirements
- Get familiar with the resource concepts, described in BASE_RESOURCE_COMMONS_R0.
- Look at S2S_PERSIST_RESOURCES_R0 to understand how the resources will be stored on the server.
- Discuss and decide how to store the meta information for every resource (for example, if resources are persisted in a database, their corresponding meta could be stored in a separate table).
- In the persistence layer of the server, add functionality for dealing with meta information.
- Write appropriate unit tests.
Task result
Source code (updated org.sophie2.server.persistence module with basic implementation of meta concepts), unit tests.
Implementation idea
Implement this task after S2S_PERSIST_RESOURCES_R0, or together with it.
Related
S2S_PERSIST_RESOURCES_R0
BASE_RESOURCE_COMMONS_R0
S2S_PERSISTENCE_COMMONS_R0
How to demo
Show the persistence module with the new class(es), run the unit tests.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)