Interface TuaAgreementSpecificationService
- All Known Implementing Classes:
DefaultTuaAgreementSpecificationService
public interface TuaAgreementSpecificationService
Service responsible for handling
TuaAgreementSpecificationModel related operations.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaAgreementSpecificationModel.Returns aTuaAgreementSpecificationModelfor the given id.getAgreementSpecifications(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Retrieves a list ofTuaAgreementSpecificationModelfor a given context.getNumberOfAgreementSpecificationsFor(AgrAgreementContext agrAgreementContext) Retrieves the total number of agreement specifications found for a given context.voidremoveAgreementSpecification(TuaAgreementSpecificationModel agreementSpecification) Removes the givenTuaAgreementSpecificationModelvoidsaveAgreementSpecification(TuaAgreementSpecificationModel agreementSpecification) Saves the givenTuaAgreementSpecificationModel.
-
Method Details
-
getAgreementSpecification
Returns aTuaAgreementSpecificationModelfor the given id.- Parameters:
id- identifier ofTuaAgreementSpecificationModel- Returns:
- the
TuaAgreementSpecificationModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no agreement specification is found.
-
getAgreementSpecifications
List<TuaAgreementSpecificationModel> getAgreementSpecifications(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Retrieves a list ofTuaAgreementSpecificationModelfor a given context.- Parameters:
agrAgreementContext- the context.offset- the offset.limit- the maximum number of returned agreementSpecifications.- Returns:
- the list of agreement specifications found for the given context.
-
getNumberOfAgreementSpecificationsFor
Retrieves the total number of agreement specifications found for a given context.- Parameters:
agrAgreementContext- the context.- Returns:
- the number of agreement specifications found.
-
createAgreementSpecification
TuaAgreementSpecificationModel createAgreementSpecification()Creates an instance ofTuaAgreementSpecificationModel.- Returns:
- the newly created model.
-
removeAgreementSpecification
Removes the givenTuaAgreementSpecificationModel- Parameters:
agreementSpecification- the agreement specification.
-
saveAgreementSpecification
Saves the givenTuaAgreementSpecificationModel.- Parameters:
agreementSpecification- the agreement specification.
-