Use Cases » History » Version 9
Никита Давыдовский, 10/20/2013 12:28 AM
1 | 1 | Кирилл Кулаков | h1. Use Cases |
---|---|---|---|
2 | |||
3 | 7 | Никита Давыдовский | {{toc}} |
4 | |||
5 | 3 | Кирилл Кулаков | category-channel = channel in geo2tag, corresponding category of GeTS |
6 | 1 | Кирилл Кулаков | |
7 | 2 | Кирилл Кулаков | h2. Points |
8 | |||
9 | 1 | Кирилл Кулаков | h3. Load points |
10 | |||
11 | 7 | Никита Давыдовский | * Send to GeTS (loadPoints) list of categories, coordinates of circle center and radius |
12 | * GeTS loads from geo2tag (filterCircle) list of category-channels with 2D filter (circle center and radius) |
||
13 | 2 | Кирилл Кулаков | * GeTS merges list of points from channels and remove duplicates. |
14 | * GeTS returns list of points. |
||
15 | 1 | Кирилл Кулаков | |
16 | 2 | Кирилл Кулаков | h3. Update point info (categories and data) |
17 | 1 | Кирилл Кулаков | |
18 | 7 | Никита Давыдовский | * Send to GeTS (updatePoint) point with list of categories and point data |
19 | 2 | Кирилл Кулаков | * GeTS search category-channels with old version of point |
20 | 1 | Кирилл Кулаков | * if point data is differ then exists, then GeTS removes point from category-channels, else GeTS removes point from old category-channels |
21 | 7 | Никита Давыдовский | * GeTS add point to geo2tag (writeTag) to new category-channels (or to all category-channels if poind data was changed) |
22 | 2 | Кирилл Кулаков | * GeTS returns OK answer |
23 | |||
24 | h3. Add point |
||
25 | |||
26 | 7 | Никита Давыдовский | * Send to GeTS (addPoint) point with list of categories and point data |
27 | * GeTS add point to geo2tag (writeTag) to all category-channels |
||
28 | * if requested category-channel doesn't exists then GeTS creates (addChannel) category-channel |
||
29 | 2 | Кирилл Кулаков | |
30 | h3. Remove point from category-channel(s) |
||
31 | |||
32 | *(We need function in geo2tag for removing points from channels)* |
||
33 | 4 | Кирилл Кулаков | *(We need function in geo2tag for removing channels)* |
34 | 1 | Кирилл Кулаков | |
35 | 7 | Никита Давыдовский | * Send to GeTS (removePoint) point with list of categories |
36 | 2 | Кирилл Кулаков | * For each category GeTS: |
37 | 7 | Никита Давыдовский | *# loads point from category-channel (filterChannel); |
38 | 8 | Никита Давыдовский | *# removes deleted point from list; |
39 | *# deletes old category-channel (*need a method*); |
||
40 | *# creates new category-channel (addChannel) and addes list of points (writeTag) |
||
41 | 6 | Никита Артемов | |
42 | 1 | Кирилл Кулаков | h2. Tracks |
43 | 6 | Никита Артемов | |
44 | h3. Load track |
||
45 | |||
46 | * Send to GeTS (loadTrack) name of track |
||
47 | 7 | Никита Давыдовский | * GeTS loads track from geo2tag (filterChannel), if one exists |
48 | 6 | Никита Артемов | * GeTS returns track. |
49 | |||
50 | 1 | Кирилл Кулаков | h3. Update track's info |
51 | |||
52 | 7 | Никита Давыдовский | * Send to GeTS (updateTrackInfo) with track's field to change: url, name or description |
53 | * GeTS makes update track info on geo2tag (alterChannel) |
||
54 | 1 | Кирилл Кулаков | * GeTS returns OK answer |
55 | |||
56 | 6 | Никита Артемов | h3. Remove track |
57 | |||
58 | * Send to GeTS (removeTrack) name of track |
||
59 | 7 | Никита Давыдовский | * GeTS removes track from geo2tag (*need a method*), if one exists |
60 | 6 | Никита Артемов | * GeTS returns OK answer |
61 | |||
62 | h3. Add track |
||
63 | |||
64 | * Send to GeTS (addTrack) with name, description, url, activeRadius |
||
65 | 8 | Никита Давыдовский | * GeTS addes channel to geo2tag (addChannel), if there is no channel with given name in the system |
66 | 6 | Никита Артемов | * GeTS returns OK answer |
67 | |||
68 | 9 | Никита Давыдовский | h2. Categories |
69 | |||
70 | h3. Add category |
||
71 | |||
72 | * Send to GeTS (addCategory) with name, description, url |
||
73 | * GeTS addes channel to geo2tag (addChannel) like category, if there is no channel with given name in the system |
||
74 | * GeTS returns OK answer |
||
75 | |||
76 | h2. Get category |
||
77 | |||
78 | * Send to GeTS (getCategory) with the name of the desirable category |
||
79 | * GeTS loads category from geo2tag (filterChannel), if this category exists |
||
80 | * GeTS returns category with all points that it contains. |
||
81 | |||
82 | 7 | Никита Давыдовский | h2. Users |
83 | |||
84 | 1 | Кирилл Кулаков | h3. Registration |
85 | |||
86 | h3. Authorization |
||
87 | |||
88 | 8 | Никита Давыдовский | h3. Quit session |
89 | |||
90 | * Send to GeTS auth-token (quitSession) |
||
91 | * GeTS calls quit session in geo2tag (quit) |
||
92 | * GeTS returns OK answer |
||
93 | |||
94 | h3. Remove user |
||
95 | |||
96 | * Send to GeTS (removeUser) with name and password |
||
97 | * GeTS calls delete user in geo2tag (deleteUser) |
||
98 | * GeTS returns OK answer |