List all oTask/Activity records within a team

@param   company Company ID
@throws	JSONException If error occurred
@return	{@link JSONObject}
977551
public JSONObject getList(String company, String team) throws JSONException {
        return _getByType(company, team, null);
    }
542924
public static List<CPInstance> findByUuid_C(String uuid, long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
716508
public JSONObject getByTeamLimited(String company, String team, HashMap<String, String> params) throws JSONException {
        return _getByType(company, team, null, params, true);
    }
145622
public JSONObject updateRoomMetadata(String company, String roomId, HashMap<String, String> params) throws JSONException {
        return oClient.put("/messages/v3/" + company + "/rooms/" + roomId, params);
    }
627346
private JSONObject _getByType(String company, String team, String code) throws JSONException {
        String url = "";
        if (code != null) {
            url = "/" + code;
        }

        return oClient.get("/otask/v1/tasks/companies/" + company + "/teams/" + team + "/tasks" + url);
    }
322452
public JSONObject getByTeamFull(String company, String team, HashMap<String, String> params) throws JSONException {
        return _getByType(company, team, null, params, false);
    }
755923
@Override
	public List<CommerceDiscount> getCommerceDiscountsByUuidAndCompanyId(
		String uuid, long companyId) {
		return commerceDiscountPersistence.findByUuid_C(uuid, companyId);
	}
763722
public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
618158
public static List<CommerceDiscount> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}
1282994
public JSONObject getByContract(String contractId, String ts) throws JSONException {   
        return oClient.get("/team/v3/snapshots/contracts/" + contractId + "/" + ts);
    }
1257660
public static java.util.List<com.liferay.commerce.product.model.CPInstance> getCPInstancesByUuidAndCompanyId(
		String uuid, long companyId) {
		return getService().getCPInstancesByUuidAndCompanyId(uuid, companyId);
	}
278999
public static Company get(final UUID _uuid)
        throws CacheReloadException
    {
        final Cache<UUID, Company> cache = InfinispanCache.get().<UUID, Company>getCache(Company.UUIDCACHE);
        if (!cache.containsKey(_uuid)) {
            Company.getCompanyFromDB(Company.SQL_UUID, String.valueOf(_uuid));
        }
        return cache.get(_uuid);
    }
211702
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
      throws RemoteException {
    CompanyServiceInterface companyService =
        adManagerServices.get(session, CompanyServiceInterface.class);

    // Create a statement to select companies.
    StatementBuilder statementBuilder =
        new StatementBuilder()
            .where("type = :type")
            .orderBy("id ASC")
            .limit(StatementBuilder.SUGGESTED_PAGE_LIMIT)
            .withBindVariableValue("type", CompanyType.ADVERTISER.toString());

    // Retrieve a small amount of companies at a time, paging through
    // until all companies have been retrieved.
    int totalResultSetSize = 0;
    do {
      CompanyPage page = companyService.getCompaniesByStatement(statementBuilder.toStatement());

      if (page.getResults() != null) {
        // Print out some information for each company.
        totalResultSetSize = page.getTotalResultSetSize();
        int i = page.getStartIndex();
        for (Company company : page.getResults()) {
          System.out.printf(
              "%d) Company with ID %d, name '%s', and type '%s' was found.%n",
              i++, company.getId(), company.getName(), company.getType());
        }
      }

      statementBuilder.increaseOffsetBy(StatementBuilder.SUGGESTED_PAGE_LIMIT);
    } while (statementBuilder.getOffset() < totalResultSetSize);

    System.out.printf("Number of results found: %d%n", totalResultSetSize);
  }
440012
def get_companies():
        
        LOGGER.debug("CompanyService.get_companies")
        args = {'http_operation': 'GET', 'operation_path': ''}
        response = CompanyService.requester.call(args)
        ret = None
        if response.rc == 0:
            ret = []
            for company in response.response_content['companies']:
                ret.append(Company.json_2_company(company))
        elif response.rc != 404:
            err_msg = 'CompanyService.get_companies - Problem while getting companies. ' \
                      'Reason: ' + str(response.response_content) + '-' + str(response.error_message) + \
                      " (" + str(response.rc) + ")"
            LOGGER.warning(err_msg)
        return ret
1244566
public JSONObject getByContract(String contract, String date, HashMap<String, String> params) throws JSONException {
        return oClient.get("/team/v3/workdiaries/contracts/" + contract + "/" + date, params);
    }
101998
public JSONObject get(String company, String date, HashMap<String, String> params) throws JSONException {
        return oClient.get("/team/v3/workdiaries/companies/" + company + "/" + date, params);
    }
370356
public static List<CPDefinitionInventory> findByUuid_C(String uuid,
		long companyId) {
		return getPersistence().findByUuid_C(uuid, companyId);
	}