Skip to content

Instantly share code, notes, and snippets.

@nshaw
Created October 31, 2012 16:22
Show Gist options
  • Select an option

  • Save nshaw/3988036 to your computer and use it in GitHub Desktop.

Select an option

Save nshaw/3988036 to your computer and use it in GitHub Desktop.
set company virtual host
setCompanyVirtualHost("uat.company.org");
def setCompanyVirtualHost(newVirtualHost) {
long companyId = PortalUtil.getDefaultCompanyId()
Company c = CompanyLocalServiceUtil.getCompany(companyId)
println "Current company virtual host: " + c.virtualHostname
c = CompanyServiceUtil.updateCompany(companyId, newVirtualHost, c.mx, c.maxUsers, c.active);
println "Updated company virtual host: " + c.virtualHostname
}
@nshaw
Copy link
Author

nshaw commented Oct 31, 2012

I didn't include the java imports here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment