Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Before running this script please do the following:
- // 1. Open local-applink.properties and replace all of the information in it with the information in syccluster-applink.properties.
- // 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
- // populate some tables with. Make sure you delete your user name and password from the script afterwards.
- // User name for example - "KM1G"
- // 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
- // and set the passwords to a few users individually. We user "gw" as the password for everyone.
- // Example users - create claim - LG6W. injury adjuster - KI3P.
- uses com.icbc.gwcc.dbUpgrader.MasterLoader
- uses com.icbc.gwcc.dbUpgrader.master.AppLinkLoader
- uses com.icbc.gwcc.financials.recoveryreserve.SyncRecoverablesTableUsingSpreadsheet
- uses gw.api.database.Query
- uses com.icbc.gwcc.financials.recoveryreserve.SyncRepayablesTableUsingSpreadsheet
- uses java.net.URL
- uses java.net.Authenticator
- uses java.net.PasswordAuthentication
- uses java.net.HttpURLConnection
- uses java.io.InputStream
- uses com.icbc.gwcc.liabilitysplit.SyncPaymentTransferMapUsingSpreadsheet
- // Make sure you enter your credentials - these are your regular RACF credentials, used for pulling the spreadsheet from Sharepoint.
- // These are NOT the ClaimCenter credentials you might otherwise use for other scripts.
- var userName = "XV4X"
- var password = "gw"
- // Initial load of all APs, queues, users, groups, permissions etc.
- new MasterLoader().doInitialLoad()
- // ======================================================================
- // Activate all users.
- gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
- Query.make(User).select().each(\u -> {
- var credential = bundle.add(u.Credential)
- credential.Active = true
- })
- }, User.util.UnrestrictedUser)
- // ======================================================================
- // Set up of app links to link to external apps.
- var appLinkLoader = new AppLinkLoader()
- appLinkLoader.loadICBC_AppLink()
- // ======================================================================
- // WS user name set up.
- gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
- removeAllServiceAccessConfig("local")
- addServiceAccessConfig("local", "SVCUA6N", "sOKt6Va7Nt2agk+luvM/sA==")
- }, User.util.UnrestrictedUser)
- // End points setup for all WSs.
- gw.transaction.Transaction.runWithNewBundle(\ bundle -> {
- removeAllWSConfig("local")
- addWSConfig("local", "ContentService.Download.URI", "http://otcssyc:8090/gwcc/download.jsp", null, null)
- addWSConfig("local", "ContentService.BasicHttpBinding_ContentService", "http://otcssyc/cws/ContentService.svc", null, null)
- addWSConfig("local", "CLC_VehicleService.CLC_VehicleServiceSOAP", "http://esbibsyc:19203/CLC_VehicleService", null, null)
- addWSConfig("local", "CLC_PolicyService.CLC_PolicyServiceSOAPPort", "http://esbibsyc:19203/CLC_PolicyService", null, null)
- addWSConfig("local", "CLC_FinanceService.CLC_FinanceServiceSOAP", "http://esbibsyc:19203/CLC_FinanceService", null, null)
- addWSConfig("local", "CLC_DocumentTemplateService.CLC_DocumentTemplateServiceSOAP", "http://esbibsyc:19203/CLC_DocumentTemplateService", null, null)
- addWSConfig("local", "CLC_ContentManagementService.CLC_ContentManagementServiceSOAPPort", "http://esbibsyc:19203/CLC_ContentManagementService", null, null)
- addWSConfig("local", "CLC_ContactService.CLC_ContactServiceSOAPPort", "http://esbibsyc:19203/CLC_ContactService", null, null)
- addWSConfig("local", "Authentication.BasicHttpBinding_Authentication", "http://otcssyc/cws/Authentication.svc", null, null)
- addWSConfig("local", "AppLaunch.ClaimCenter.URI", "http://isasccmrg2.icbc.net:41300/cc", null, null)
- addWSConfig("local", "DocumentManagement.BasicHttpBinding_DocumentManagement", "http://otcssyc/cws/DocumentManagement.svc", null, null)
- addWSConfig("local", "EstimatePackageDownload.REST", "http://b2bmrg.icbc.com:8087/", null, null)
- addWSConfig("local", "ClaimService.ClaimServiceSoap12", "http://b2bmrg.icbc.com:87/ClaimSave", null, null)
- addWSConfig("local", "MessageBusService.MessageBusPort", "http://b2bmrg.icbc.com:87/mdx/messagebus/v1/soap", null, null)
- addWSConfig("local", "CiecaAssignmentReceiver.CiecaAssignmentReceiverSoap", "http://b2bmrg.icbc.com:87/AppraisalAssignment", null, null)
- }, User.util.UnrestrictedUser)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement