From 8abf8623f13c2bc02c31fa636a9851eb3ef6e68e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 19 Jun 2015 18:07:10 +0200 Subject: Add more Thrift calls --- src/main/thrift/bwlp.thrift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main/thrift/bwlp.thrift') 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), -- cgit v1.2.3-55-g7522