ws_account.ecm 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #include "xslprocessor.hpp"
  14. ESPrequest UpdateUserInputRequest
  15. {
  16. };
  17. ESPresponse [exceptions_inline] UpdateUserInputResponse
  18. {
  19. string username;
  20. };
  21. ESPrequest MyAccountRequest
  22. {
  23. };
  24. ESPresponse [exceptions_inline] MyAccountResponse
  25. {
  26. string username;
  27. string firstName;
  28. string lastName;
  29. string passwordExpiration;
  30. int passwordDaysRemaining;
  31. [min_ver("1.01")] int passwordExpirationWarningDays;
  32. [min_ver("1.02")] string employeeID;
  33. [min_ver("1.03")] string distinguishedName;
  34. [min_ver("1.04")] string accountType; //"User" or "Administrator"
  35. [min_ver("1.04")] bool passwordNeverExpires;
  36. [min_ver("1.04")] bool passwordIsExpired;
  37. };
  38. ESPrequest UpdateUserRequest
  39. {
  40. [label("User Name"), cols(20)] string username;
  41. [label("Old Password"), password, cols(20)] oldpass;
  42. [label("New password"), password, cols(20)] newpass1;
  43. [label("Retype new password"), password, cols(20)] newpass2;
  44. };
  45. ESPresponse [exceptions_inline] UpdateUserResponse
  46. {
  47. int retcode;
  48. string message;
  49. };
  50. ESPrequest VerifyUserRequest
  51. {
  52. string application;
  53. string version;
  54. };
  55. ESPresponse [exceptions_inline] VerifyUserResponse
  56. {
  57. int retcode;
  58. };
  59. //Kevin/russ does this method need feature level check?
  60. ESPservice [auth_feature("NONE"), version("1.04"), default_client_version("1.04"), exceptions_inline("./smc_xslt/exceptions.xslt")] ws_account
  61. {
  62. ESPmethod [client_xslt("/esp/xslt/account_myaccount.xslt")] MyAccount(MyAccountRequest, MyAccountResponse);
  63. ESPmethod [client_xslt("/esp/xslt/account_input.xslt")] UpdateUserInput(UpdateUserInputRequest, UpdateUserInputResponse);
  64. ESPmethod [resp_xsl_default("./smc_xslt/account.xslt")] UpdateUser(UpdateUserRequest, UpdateUserResponse);
  65. ESPmethod VerifyUser(VerifyUserRequest, VerifyUserResponse);
  66. };
  67. SCMexportdef(ws_account);
  68. SCMapi(ws_account) IClientws_account *createws_accountClient();