source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/UPDATE.txt @ 4909

Last change on this file since 4909 was 4909, checked in by olhsha@mpi.nl, 10 years ago

IO exception instead of returning null for the getRemotePrinciplaID (ResourceResource?), plus other bug-fixes

File size: 3.0 KB
Line 
11. Placing tarball: as always, take the tar-ball of the new  version 1.3.2, and follow the
2standard MPI deployment procedure.  Consult the instructions from INSTALL.txt
3about placing war file if you have forgotten.
4
52. Adjusting shhaa.xml  and web.xml this time are not necessary.
6
7
83. Updating database script (should go smoothly, but do be on a safe side to do it command by command)
9
10
11ALTER TABLE permission_
12  RENAME TO access;
13
14ALTER TABLE annotations_principals_permissions
15  RENAME TO annotations_principals_accesses;
16
17ALTER TABLE notebooks_principals_permissions
18  RENAME TO notebooks_principals_accesses;
19 
20ALTER 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 
43ALTER 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--
47UPDATE  annotation SET public_='write' WHERE external_id='00000000-0000-0000-0000-000000000021';
48UPDATE  annotation SET public_='read' WHERE external_id='00000000-0000-0000-0000-000000000022';
49UPDATE  annotation SET public_='read' WHERE external_id='00000000-0000-0000-0000-000000000023';
50
51
52
53ALTER TABLE notebooks_principals_accesses RENAME COLUMN permission_ to access_;
54UPDATE  notebooks_principals_accesses SET access_='read' WHERE access_='reader';
55UPDATE  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
634. If the application is successfully deployed, you will get the jsp page after requesting
64
65<server uri>/ds/webannotator
66
67On 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
68getting annotation. If you have read access to the test annotation,
69you will get it. Ask Olha to test POST, PUT, DELETE or do it yourself consulting "Testing"
70section in INSTALL.txt.
71
72
73
Note: See TracBrowser for help on using the repository browser.