| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=S2S_PERSIST_META_R0, 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|)]] |
| 4 | |
| 5 | |
| 6 | |
| 7 | = Analysis = |
| 8 | |
| 9 | |
| 10 | == Overview == |
| 11 | Every resource should have meta information, which consists of: |
| 12 | * The author of the resource |
| 13 | * The date the resource was created |
| 14 | * Version of the resource |
| 15 | * The date the resource was last modified |
| 16 | * Who was the last that modified the resource |
| 17 | * The dimensions of the image (if the target of the resource is an image) |
| 18 | * etc. |
| 19 | |
| 20 | == Task requirements == |
| 21 | * Get familiar with the resource concepts, described in [wiki:BASE_RESOURCE_COMMONS_R0]. |
| 22 | * Look at [wiki:S2S_PERSIST_RESOURCES_R0] to understand how the resources will be stored on the server. |
| 23 | * 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). |
| 24 | * In the persistence layer of the server, add functionality for dealing with meta information. |
| 25 | * Write appropriate unit tests. |
| 26 | |
| 27 | == Task result == |
| 28 | Source code (updated org.sophie2.server.persistence module with basic implementation of meta concepts), unit tests. |
| 29 | |
| 30 | == Implementation idea == |
| 31 | Implement this task after [wiki:S2S_PERSIST_RESOURCES_R0], or together with it. |
| 32 | |
| 33 | == Related == |
| 34 | [wiki:S2S_PERSIST_RESOURCES_R0] [[BR]] |
| 35 | [wiki:BASE_RESOURCE_COMMONS_R0] [[BR]] |
| 36 | [wiki:S2S_PERSISTENCE_COMMONS_R0] |
| 37 | |
| 38 | == How to demo == |
| 39 | Show the persistence module with the new class(es), run the unit tests. |
| 40 | |
| 41 | = Design = |
| 42 | |
| 43 | = Implementation = |
| 44 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 45 | |
| 46 | = Testing = |
| 47 | |
| 48 | = Comments = |
| 49 | ^(Write comments for this or later revisions here.) |