diff options
author | Simon Rettberg | 2015-06-19 18:07:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-06-19 18:07:10 +0200 |
commit | 8abf8623f13c2bc02c31fa636a9851eb3ef6e68e (patch) | |
tree | b28c4cdcd5e6c0c32a69f2851345c18791b6e30b /src/main/thrift/bwlp.thrift | |
parent | Updated Thrift API (diff) | |
download | master-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.thrift | 11 |
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), |