當前位置: 首頁>>代碼示例>>Java>>正文


Java AgreementHelperE.getAgreements方法代碼示例

本文整理匯總了Java中eu.atos.sla.service.rest.helpers.AgreementHelperE.getAgreements方法的典型用法代碼示例。如果您正苦於以下問題:Java AgreementHelperE.getAgreements方法的具體用法?Java AgreementHelperE.getAgreements怎麽用?Java AgreementHelperE.getAgreements使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在eu.atos.sla.service.rest.helpers.AgreementHelperE的用法示例。


在下文中一共展示了AgreementHelperE.getAgreements方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAgreements

import eu.atos.sla.service.rest.helpers.AgreementHelperE; //導入方法依賴的package包/類
/**
 * Gets a the list of available agreements from where we can get metrics,
 * host information, etc.
 * 
 * <pre>
 *  GET /agreements{?providerId,consumerId,active}
 *  
 *  Request:
 *   GET /agreements HTTP/1.1
 *  
 *  Response:
 *   HTTP/1.1 200 OK
 *   Content-type: application/xml
 *   {@code
 *   <?xml version="1.0" encoding="UTF-8"?>
 *   <collection href="/agreements">
 *   <items offset="0" total="1">
 *   <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
 *     AgreementId="d25eea60-7cfe-11e3-baa7-0800200c9a66">
 *     ...
 *   </wsag:Agreement>
 *   </items>
 *   </collection>
 *   }
 * 
 * </pre>
 * 
 * Example: 
 * <li>curl http://localhost:8080/sla-service/agreements</li>
 * <li>curl http://localhost:8080/sla-service/agreements?consumerId=user-10343</li>
 * @throws NotFoundException 
 * 
 * @throws JAXBException
 */
@GET
public List<IAgreement> getAgreements(
		@QueryParam("consumerId") String consumerId,
		@QueryParam("providerId") String providerId,
		@QueryParam("templateId") String templateId,
		@QueryParam("active") BooleanParam active) {
	logger.debug("StartOf getAgreements - REQUEST for /agreements");
	AgreementHelperE agreementRestHelper = getAgreementHelper();
	List<IAgreement> agreements = agreementRestHelper.getAgreements(
			consumerId, providerId, templateId, BooleanParam.getValue(active));
		
	return agreements;
}
 
開發者ID:Atos-FiwareOps,項目名稱:sla-framework,代碼行數:48,代碼來源:AgreementRestEntity.java

示例2: getAgreements

import eu.atos.sla.service.rest.helpers.AgreementHelperE; //導入方法依賴的package包/類
/**
 * Gets a the list of available agreements from where we can get metrics,
 * host information, etc.
 * 
 * <pre>
 *  GET /agreements{?providerId,consumerId,active}
 *  
 *  Request:
 *   GET /agreements HTTP/1.1
 *  
 *  Response:
 *   HTTP/1.1 200 OK
 *   Content-type: application/xml
 *   {@code
 *   <?xml version="1.0" encoding="UTF-8"?>
 *   <collection href="/agreements">
 *   <items offset="0" total="1">
 *   <wsag:Agreement xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
 *     AgreementId="d25eea60-7cfe-11e3-baa7-0800200c9a66">
 *     ...
 *   </wsag:Agreement>
 *   </items>
 *   </collection>
 *   }
 * 
 * </pre>
 * 
 * Example: 
 * <li>curl http://localhost:8080/sla-service/agreements</li>
 * <li>curl http://localhost:8080/sla-service/agreements?consumerId=user-10343</li>
 * @throws NotFoundException 
 * 
 * @throws JAXBException
 */
@GET
public List<IAgreement> getAgreements(
        @QueryParam("consumerId") String consumerId,
        @QueryParam("providerId") String providerId,
        @QueryParam("templateId") String templateId,
        @QueryParam("active") BooleanParam active) {
    logger.debug("StartOf getAgreements - REQUEST for /agreements");
    AgreementHelperE agreementRestHelper = getAgreementHelper();
    List<IAgreement> agreements = agreementRestHelper.getAgreements(
            consumerId, providerId, templateId, BooleanParam.getValue(active));
        
    return agreements;
}
 
開發者ID:SeaCloudsEU,項目名稱:SeaCloudsPlatform,代碼行數:48,代碼來源:AgreementRestEntity.java


注:本文中的eu.atos.sla.service.rest.helpers.AgreementHelperE.getAgreements方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。