@ GET @ Path ( "{id}/context" ) public eu . atos . sla . parser . data . wsag . Context getAgreementContextById ( @ PathParam ( "id" ) String agreementId ) throws NotFoundException , InternalException { logger . debug ( "StartOf getAgreementContextById REQUEST for /agreements/{}/context" , agreementId ) ; AgreementHelperE agreementRestHelper = getAgreementHelper ( ) ; eu . atos . sla . parser . data . wsag . Context context ; try { context = agreementRestHelper . getAgreementContextByID ( agreementId ) ; } catch ( InternalHelperException e ) { logger . error ( "getAgreementContextById InternalException" , e ) ; throw new InternalException ( e . getMessage ( ) ) ; } if ( context == null ) { logger . info ( "getAgreementContextById NotFoundException: There is no agreement with id " + agreementId + " in the SLA Repository Database" ) ; throw new NotFoundException ( "There is no agreement with id " + agreementId + " in the SLA Repository Database" ) ; } logger . debug ( "EndOf getAgreementContextById" ) ; return context ; }
Gets the context information of an specific agreement .