summaryrefslogtreecommitdiffstats
path: root/src/main/thrift/bwlp.thrift
diff options
context:
space:
mode:
authorSimon Rettberg2015-06-19 18:07:10 +0200
committerSimon Rettberg2015-06-19 18:07:10 +0200
commit8abf8623f13c2bc02c31fa636a9851eb3ef6e68e (patch)
treeb28c4cdcd5e6c0c32a69f2851345c18791b6e30b /src/main/thrift/bwlp.thrift
parentUpdated Thrift API (diff)
downloadmaster-sync-shared-8abf8623f13c2bc02c31fa636a9851eb3ef6e68e.tar.gz
master-sync-shared-8abf8623f13c2bc02c31fa636a9851eb3ef6e68e.tar.xz
master-sync-shared-8abf8623f13c2bc02c31fa636a9851eb3ef6e68e.zip
Add more Thrift calls
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r--src/main/thrift/bwlp.thrift11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift
index 41e17da..0f003b4 100644
--- a/src/main/thrift/bwlp.thrift
+++ b/src/main/thrift/bwlp.thrift
@@ -49,6 +49,11 @@ enum NetDirection {
OUT
}
+enum Role {
+ STUDENT,
+ TUTOR
+}
+
// ############## STRUCT ###############
struct UserInfo {
@@ -56,7 +61,8 @@ struct UserInfo {
2: string firstName,
3: string lastName,
4: string eMail,
- 5: string organizationId
+ 5: string organizationId,
+ 6: optional Role role,
}
struct Organization {
@@ -342,6 +348,9 @@ service SatelliteServer {
// Query detailed information about an image
ImageDetailsRead getImageDetails(1: Token userToken, 2: UUID imageBaseId)
throws (1:TAuthorizationException authError, 2:TNotFoundException notFound),
+ // Create a new image; the image will have no versions, so the user needs to upload one and set meta data later on
+ bool createImage(1: Token userToken, 2: string imageName)
+ throws (1:TAuthorizationException authError),
// Update given image's base meta data
bool updateImageBase(1: Token userToken, 2: UUID imageBaseId 3: ImageBaseWrite image)
throws (1:TAuthorizationException authError),