Interface AgrAgreementsService
- All Known Implementing Classes:
DefaultAgrAgreementsService
Deprecated.
2208
Service responsible for handling
AgrAgreementModel related operations.- Since:
- 2108
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates an instance ofAgrAgreementModel.getAgreement(String id) Deprecated.Returns aAgrAgreementModelfor the given id.getAgreements(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Deprecated.Retrieves a list ofAgrAgreementModelfor a given context.getNumberOfAgreementsFor(AgrAgreementContext agrAgreementContext) Deprecated.Retrieves the total number of agreements found for a given context.voidremoveAgreement(AgrAgreementModel agreement) Deprecated.Removes the givenAgrAgreementModelvoidsaveAgreement(AgrAgreementModel agreement) Deprecated.Saves the givenAgrAgreementModel.
-
Method Details
-
getAgreement
Deprecated.Returns aAgrAgreementModelfor the given id.- Parameters:
id- identifier ofAgrAgreementModel- Returns:
- the
AgrAgreementModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no agreement is found.
-
getAgreements
List<AgrAgreementModel> getAgreements(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Deprecated.Retrieves a list ofAgrAgreementModelfor a given context.- Parameters:
agrAgreementContext- the context.offset- the offset.limit- the maximum number of returned agreements.- Returns:
- the list of agreements found for the given context.
-
getNumberOfAgreementsFor
Deprecated.Retrieves the total number of agreements found for a given context.- Parameters:
agrAgreementContext- the context.- Returns:
- the number of agreements found.
-
createAgreement
AgrAgreementModel createAgreement()Deprecated.Creates an instance ofAgrAgreementModel.- Returns:
- the newly created model.
-
removeAgreement
Deprecated.Removes the givenAgrAgreementModel- Parameters:
agreement- the agreement.
-
saveAgreement
Deprecated.Saves the givenAgrAgreementModel.- Parameters:
agreement- the agreement.
-