annotate DVN-web/docs/readme.txt @ 4:9b408c9b05ab

Integration with LGServices.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 07 May 2015 14:56:46 +0200
parents 2ae72563a29d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1 *** To deploy in glassfish
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
2
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
3 mvn clean package
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
4
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
5 sudo /home/jurzua/glassfish3/glassfish/bin/asadmin start-domain domain1
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
6 tail -n 1000 -f /home/jurzua/glassfish3/glassfish/domains/domain1/logs/server.log
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
7 /home/jurzua/glassfish3/glassfish/bin/asadmin deploy --force=true --name=DVN-web /home/jurzua/Projects/Dataverses/dvn/DVN-root/DVN-web/target/DVN-web.war
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
8
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
9
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
10
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
11 -----
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
12
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
13 This blog post aims to address these questions.
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
14 What it means instead is that
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
15
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
16
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
17
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
18 curl -k https://networkAdmin:networkAdmin@localhost/dvn/api/monographs
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
19
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
20 ---
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
21
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
22 curl -k --data-binary @test01.zip -H "Content-Disposition: filename=test01.zip" -H "Content-Type: application/zip" -H "Packaging: http://purl.org/net/sword/package/SimpleZip" https://networkAdmin:networkAdmin@localhost/dvn/api/data-deposit/v1/swordv2/edit-media/study/hdl:TEST/10001 > borrar.html
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
23
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
24 -----
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
25
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
26 curl http://networkAdmin:networkAdmin@localhost/dvn/monographs
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
27
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
28
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
29 curl --data "studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin" --data @borrar.html -H "Content-Type: text/xml" http://networkAdmin:networkAdmin@localhost/dvn/monographs
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
30
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
31
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
32
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
33 curl -F "studyId=hdl:TEST/10001" -F "user=networkAdmin" -F "password=networkAdmin" -F "file=@borrar.html" http://networkAdmin:networkAdmin@localhost/dvn/monographs
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
34
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
35
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
36
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
37 ----
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
38 Examples URL:
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
39
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
40 Get Study Information:
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
41 http://localhost/dvn/getStudyInfo?studyId=hdl:TEST/10001
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
42
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
43
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
44 http://localhost/dvn/removeFileMetadata?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin&fileMetadataId=
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
45
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
46
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
47 Save
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
48 http://localhost/dvn/saveResource?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin&
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
49
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
50 curl -H "Content-Type: multipart/form-data" --data-binary @pom.xml -d "user=hola" http://localhost/dvn/saveResource
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
51
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
52
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
53
4
9b408c9b05ab Integration with LGServices.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents: 2
diff changeset
54 curl --form upload=@pom.xml --form user=networkAdmin --form password=networkAdmin --form studyId=hdl:TEST/10002 http://localhost/dvn/saveResource
2
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
55
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
56 GET USER
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
57 http://localhost/dvn/getUser?user=jurzua&password=221082
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
58
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
59 GET All USER
2ae72563a29d Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
60 http://localhost/dvn/getAllUsers