Class CompanyService

java.lang.Object
overit.geocall.platform.CompanyService

@Service public class CompanyService extends Object
  • Constructor Details

    • CompanyService

      public CompanyService()
  • Method Details

    • getCompanies

      public List<Company> getCompanies()
      Retrieves the list of active companies.
      Returns:
      the list of active companies
    • getCompanies

      public List<Company> getCompanies(Predicate<Company> filter)
      Retrieves the list of active companies that match the provided filter.
      Parameters:
      filter - the filter to apply
      Returns:
      the list of companies that match the provided filter
    • companyExists

      public boolean companyExists(Company company)
      Checks if the provided company exists and is active.
      Parameters:
      company - the company to check
      Returns:
      true if the company exists and is active, false otherwise