Skip to content
Snippets Groups Projects
UserAndLimitationManagementWs.asmx.cs 1.22 KiB
Newer Older
  • Learn to ignore specific revisions
  • Vaclav Svaton's avatar
    Vaclav Svaton committed
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Services;
    using HaaSMiddleware.ServiceTier.UserAndLimitationManagement;
    using org.apache.etch.EtchServiceTier.types.EtchServiceTier;
    
    namespace HaaSMiddleware.WebServices {
    	/// <summary>
    	/// Summary description for UserAndLimitationManagementWs
    	/// </summary>
    	[WebService(Namespace = "http://hpcaas.it4i.cz/")]
    	[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    	[System.ComponentModel.ToolboxItem(false)]
    	[System.Web.Script.Services.ScriptService]
    	public class UserAndLimitationManagementWs : System.Web.Services.WebService {
    		private IUserAndLimitationManagementService service = new UserAndLimitationManagementService();
    
    		[WebMethod]
    		public string AuthenticateUserPassword(PasswordCredentialsExt credentials) {
    			return service.AuthenticateUser(credentials);
    		}
    
    		[WebMethod]
    		public string AuthenticateUserDigitalSignature(DigitalSignatureCredentialsExt credentials) {
    			return service.AuthenticateUser(credentials);
    		}
    
    		[WebMethod]
    		public ResourceUsageExt[] GetCurrentUsageAndLimitationsForCurrentUser(string sessionCode) {
    			return service.GetCurrentUsageAndLimitationsForCurrentUser(sessionCode);
    		}
    	}
    }