Class DefaultTuaAgreementSpecificationService
java.lang.Object
de.hybris.platform.agreementservices.services.impl.DefaultTuaAgreementSpecificationService
- All Implemented Interfaces:
TuaAgreementSpecificationService
public class DefaultTuaAgreementSpecificationService
extends Object
implements TuaAgreementSpecificationService
Default implementation of
AgrAgreementSpecificationService- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTuaAgreementSpecificationService(TuaAgreementSpecificationDao agreementSpecificationDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaAgreementSpecificationModel.Returns aTuaAgreementSpecificationModelfor the given id.protected TuaAgreementSpecificationDaogetAgreementSpecifications(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Retrieves a list ofTuaAgreementSpecificationModelfor a given context.protected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfAgreementSpecificationsFor(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.
-
Constructor Details
-
DefaultTuaAgreementSpecificationService
public DefaultTuaAgreementSpecificationService(TuaAgreementSpecificationDao agreementSpecificationDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
getAgreementSpecification
Description copied from interface:TuaAgreementSpecificationServiceReturns aTuaAgreementSpecificationModelfor the given id.- Specified by:
getAgreementSpecificationin interfaceTuaAgreementSpecificationService- Parameters:
id- identifier ofTuaAgreementSpecificationModel- Returns:
- the
TuaAgreementSpecificationModelfound.
-
getAgreementSpecifications
public List<TuaAgreementSpecificationModel> getAgreementSpecifications(AgrAgreementContext agrAgreementContext, Integer offset, Integer limit) Description copied from interface:TuaAgreementSpecificationServiceRetrieves a list ofTuaAgreementSpecificationModelfor a given context.- Specified by:
getAgreementSpecificationsin interfaceTuaAgreementSpecificationService- 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
Description copied from interface:TuaAgreementSpecificationServiceRetrieves the total number of agreement specifications found for a given context.- Specified by:
getNumberOfAgreementSpecificationsForin interfaceTuaAgreementSpecificationService- Parameters:
agrAgreementContext- the context.- Returns:
- the number of agreement specifications found.
-
createAgreementSpecification
Description copied from interface:TuaAgreementSpecificationServiceCreates an instance ofTuaAgreementSpecificationModel.- Specified by:
createAgreementSpecificationin interfaceTuaAgreementSpecificationService- Returns:
- the newly created model.
-
removeAgreementSpecification
Description copied from interface:TuaAgreementSpecificationServiceRemoves the givenTuaAgreementSpecificationModel- Specified by:
removeAgreementSpecificationin interfaceTuaAgreementSpecificationService- Parameters:
agreementSpecification- the agreement specification.
-
saveAgreementSpecification
Description copied from interface:TuaAgreementSpecificationServiceSaves the givenTuaAgreementSpecificationModel.- Specified by:
saveAgreementSpecificationin interfaceTuaAgreementSpecificationService- Parameters:
agreementSpecification- the agreement specification.
-
getAgreementSpecificationDao
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-