Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. // Before running this script please do the following:
  2. // 1. Open local-applink.properties and replace all of the information in it with the information in syccluster-applink.properties.
  3. // 2. Enter your username and password in the 2 variables. This is used to read data off spreadsheets on share point that we need to
  4. // populate some tables with. Make sure you delete your user name and password from the script afterwards.
  5. // User name for example - "KM1G"
  6. // After running this all of the users will be active but they don't have a password set up. You'll need to login as super user
  7. // and set the passwords to a few users individually. We user "gw" as the password for everyone.
  8. // Example users - create claim - LG6W. injury adjuster - KI3P.
  9.  
  10. uses com.icbc.gwcc.dbUpgrader.MasterLoader
  11. uses com.icbc.gwcc.dbUpgrader.master.AppLinkLoader
  12. uses com.icbc.gwcc.financials.recoveryreserve.SyncRecoverablesTableUsingSpreadsheet
  13. uses gw.api.database.Query
  14. uses com.icbc.gwcc.financials.recoveryreserve.SyncRepayablesTableUsingSpreadsheet
  15. uses java.net.URL
  16. uses java.net.Authenticator
  17. uses java.net.PasswordAuthentication
  18. uses java.net.HttpURLConnection
  19. uses java.io.InputStream
  20. uses com.icbc.gwcc.liabilitysplit.SyncPaymentTransferMapUsingSpreadsheet
  21.  
  22. // Make sure you enter your credentials - these are your regular RACF credentials, used for pulling the spreadsheet from Sharepoint.
  23. // These are NOT the ClaimCenter credentials you might otherwise use for other scripts.
  24. var userName = "XV4X"
  25. var password = "gw"
  26.  
  27.  
  28. // Initial load of all APs, queues, users, groups, permissions etc.
  29. new MasterLoader().doInitialLoad()
  30.  
  31. // ======================================================================
  32.  
  33. // Activate all users.
  34. gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
  35. Query.make(User).select().each(\u -> {
  36. var credential = bundle.add(u.Credential)
  37. credential.Active = true
  38. })
  39. }, User.util.UnrestrictedUser)
  40.  
  41. // ======================================================================
  42.  
  43. // Set up of app links to link to external apps.
  44. var appLinkLoader = new AppLinkLoader()
  45. appLinkLoader.loadICBC_AppLink()
  46.  
  47. // ======================================================================
  48.  
  49. // WS user name set up.
  50. gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
  51. removeAllServiceAccessConfig("local")
  52. addServiceAccessConfig("local", "SVCUA6N", "sOKt6Va7Nt2agk+luvM/sA==")
  53. }, User.util.UnrestrictedUser)
  54.  
  55.  
  56. // End points setup for all WSs.
  57. gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
  58. removeAllWSConfig("local")
  59. addWSConfig("local", "ContentService.Download.URI", "http://otcssyc:8090/gwcc/download.jsp", null, null)
  60. addWSConfig("local", "ContentService.BasicHttpBinding_ContentService", "http://otcssyc/cws/ContentService.svc", null, null)
  61. addWSConfig("local", "CLC_VehicleService.CLC_VehicleServiceSOAP", "http://esbibsyc:19203/CLC_VehicleService", null, null)
  62. addWSConfig("local", "CLC_PolicyService.CLC_PolicyServiceSOAPPort", "http://esbibsyc:19203/CLC_PolicyService", null, null)
  63. addWSConfig("local", "CLC_FinanceService.CLC_FinanceServiceSOAP", "http://esbibsyc:19203/CLC_FinanceService", null, null)
  64. addWSConfig("local", "CLC_DocumentTemplateService.CLC_DocumentTemplateServiceSOAP", "http://esbibsyc:19203/CLC_DocumentTemplateService", null, null)
  65. addWSConfig("local", "CLC_ContentManagementService.CLC_ContentManagementServiceSOAPPort", "http://esbibsyc:19203/CLC_ContentManagementService", null, null)
  66. addWSConfig("local", "CLC_ContactService.CLC_ContactServiceSOAPPort", "http://esbibsyc:19203/CLC_ContactService", null, null)
  67. addWSConfig("local", "Authentication.BasicHttpBinding_Authentication", "http://otcssyc/cws/Authentication.svc", null, null)
  68. addWSConfig("local", "AppLaunch.ClaimCenter.URI", "http://isasccmrg2.icbc.net:41300/cc", null, null)
  69. addWSConfig("local", "DocumentManagement.BasicHttpBinding_DocumentManagement", "http://otcssyc/cws/DocumentManagement.svc", null, null)
  70. addWSConfig("local", "EstimatePackageDownload.REST", "http://b2bmrg.icbc.com:8087/", null, null)
  71. addWSConfig("local", "ClaimService.ClaimServiceSoap12", "http://b2bmrg.icbc.com:87/ClaimSave", null, null)
  72. addWSConfig("local", "MessageBusService.MessageBusPort", "http://b2bmrg.icbc.com:87/mdx/messagebus/v1/soap", null, null)
  73. addWSConfig("local", "CiecaAssignmentReceiver.CiecaAssignmentReceiverSoap", "http://b2bmrg.icbc.com:87/AppraisalAssignment", null, null)
  74. }, User.util.UnrestrictedUser)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement