public static Company getCompanyByDomainName(String domainName) throws CompanyNotFoundException { CompanyManager companyManger = getCompanyManager(); return companyManger.getCompanyByDomainName(domainName); }
public static Company getDefaultCompany() throws CompanyNotFoundException { long companuId = getDefaultCompanyId(); CompanyManager companyManger = getCompanyManager(); Company company = companyManger.getCompany(companuId); return company; }
public static Company getCompany(long companyId) throws CompanyNotFoundException { if (companyId <= 0) return NO_COMPANY; CompanyManager companyManger = getCompanyManager(); return companyManger.getCompany(companyId); }