String city, String state, String zip, String phone, String fax,
String emailAddress, String authType, boolean autoLogin,
boolean strangers)
throws PortalException, SystemException {
Company company =
CompanyUtil.findByPrimaryKey(getUser().getCompanyId());
if (!hasAdministrator(company.getCompanyId())) {
throw new PrincipalException();
}
company.setPortalURL(portalURL);
company.setHomeURL(homeURL);
if (GetterUtil.get(
PropsUtil.get(PropsUtil.MAIL_MX_UPDATE), true)) {
company.setMx(mx);
}
company.setName(name);
company.setShortName(shortName);
company.setType(type);
company.setSize(size);
company.setStreet(street);
company.setCity(city);
company.setState(state);
company.setZip(zip);
company.setPhone(phone);
company.setFax(fax);
company.setEmailAddress(emailAddress);
company.setAuthType(authType);
company.setAutoLogin(autoLogin);
company.setStrangers(strangers);
CompanyUtil.update(company);
return company;
}