1 | 1. Placing tarball: as always, take the tar-ball of the new version 1.3.2, and follow the |
---|
2 | standard MPI deployment procedure. Consult the instructions from INSTALL.txt |
---|
3 | about placing war file if you have forgotten. |
---|
4 | |
---|
5 | 2. Adjusting shhaa.xml and web.xml this time are not necessary. |
---|
6 | |
---|
7 | |
---|
8 | 3. Updating database script (should go smoothly, but do be on a safe side to do it command by command) |
---|
9 | |
---|
10 | |
---|
11 | ALTER TABLE permission_ |
---|
12 | RENAME TO access; |
---|
13 | |
---|
14 | ALTER TABLE annotations_principals_permissions |
---|
15 | RENAME TO annotations_principals_accesses; |
---|
16 | |
---|
17 | ALTER TABLE notebooks_principals_permissions |
---|
18 | RENAME TO notebooks_principals_accesses; |
---|
19 | |
---|
20 | ALTER TABLE access RENAME COLUMN permission_mode TO access_mode; |
---|
21 | -- |
---|
22 | -- |
---|
23 | ALTER TABLE annotations_principals_accesses DROP CONSTRAINT annotations_principals_permissions_permission__fkey; |
---|
24 | ALTER TABLE notebooks_principals_accesses DROP CONSTRAINT notebooks_principals_permissions_permission__fkey; |
---|
25 | |
---|
26 | UPDATE access SET access_mode='read' WHERE access_mode='reader'; |
---|
27 | |
---|
28 | UPDATE access SET access_mode='write' WHERE access_mode='writer'; |
---|
29 | -- |
---|
30 | INSERT INTO access (access_mode) VALUES ('none'); |
---|
31 | |
---|
32 | ALTER TABLE annotations_principals_accesses |
---|
33 | RENAME COLUMN permission_ to access_; |
---|
34 | -- |
---|
35 | UPDATE annotations_principals_accesses SET access_='read' WHERE access_='reader'; |
---|
36 | UPDATE annotations_principals_accesses SET access_='write' WHERE access_='writer'; |
---|
37 | -- -- |
---|
38 | -- |
---|
39 | ALTER TABLE annotations_principals_accesses ADD CONSTRAINT annotations_principals_accesses_access__fkey |
---|
40 | FOREIGN KEY (access_) REFERENCES access(access_mode); |
---|
41 | |
---|
42 | |
---|
43 | ALTER TABLE annotations_principals_accesses ADD CONSTRAINT access_not_null CHECK(access_ IS NOT NULL); |
---|
44 | |
---|
45 | ALTER TABLE annotation ADD public_ text REFERENCES access(access_mode) NOT NULL default 'none'; |
---|
46 | -- |
---|
47 | UPDATE annotation SET public_='write' WHERE external_id='00000000-0000-0000-0000-000000000021'; |
---|
48 | UPDATE annotation SET public_='read' WHERE external_id='00000000-0000-0000-0000-000000000022'; |
---|
49 | UPDATE annotation SET public_='read' WHERE external_id='00000000-0000-0000-0000-000000000023'; |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | ALTER TABLE notebooks_principals_accesses RENAME COLUMN permission_ to access_; |
---|
54 | UPDATE notebooks_principals_accesses SET access_='read' WHERE access_='reader'; |
---|
55 | UPDATE notebooks_principals_accesses SET access_='write' WHERE access_='writer'; |
---|
56 | |
---|
57 | -- |
---|
58 | ALTER TABLE notebooks_principals_accesses ADD CONSTRAINT notebooks_principals_accesses_access__fkey |
---|
59 | FOREIGN KEY (access_) REFERENCES access(access_mode); |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | 4. If the application is successfully deployed, you will get the jsp page after requesting |
---|
64 | |
---|
65 | <server uri>/ds/webannotator |
---|
66 | |
---|
67 | On this web-page there is a number of test GET requests there which you can send if you want to check if it works. Ask Olha to add you providing with your shibboleth remote ID. If you are in the DB you should be able to perform any request, except may be |
---|
68 | getting annotation. If you have read access to the test annotation, |
---|
69 | you will get it. Ask Olha to test POST, PUT, DELETE or do it yourself consulting "Testing" |
---|
70 | section in INSTALL.txt. |
---|
71 | |
---|
72 | |
---|
73 | |
---|