Class DefaultTuaPartyRoleService
java.lang.Object
de.hybris.platform.partyroleservices.service.impl.DefaultTuaPartyRoleService
- All Implemented Interfaces:
TuaPartyRoleService
Default implementation of
TuaPartyRoleService.- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTuaPartyRoleService(TuaPartyRoleDao prPartyRoleDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaPartyRoleModel.protected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfPartyRoles(PrPartyRoleFilteringContextData filteringContextData) Returns the total number ofTuaPartyRoleModelfound for a given filtering context.getPartyRole(String id) Returns aTuaPartyRoleModelfor the given id.protected TuaPartyRoleDaogetPartyRoles(PrPartyRoleFilteringContextData filteringContext, Integer offset, Integer limit) Returns the list ofTuaPartyRoleModelfiltered by a given filtering context.voidremovePartyRole(TuaPartyRoleModel partyRoleModel) Removes the givenTuaPartyRoleModelvoidsavePartyRole(TuaPartyRoleModel partyRole) Saves the givenTuaPartyRoleModel.
-
Constructor Details
-
DefaultTuaPartyRoleService
public DefaultTuaPartyRoleService(TuaPartyRoleDao prPartyRoleDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
getPartyRole
Description copied from interface:TuaPartyRoleServiceReturns aTuaPartyRoleModelfor the given id.- Specified by:
getPartyRolein interfaceTuaPartyRoleService- Parameters:
id- identifier ofTuaPartyRoleModel- Returns:
- the
TuaPartyRoleModelfound.
-
savePartyRole
Description copied from interface:TuaPartyRoleServiceSaves the givenTuaPartyRoleModel.- Specified by:
savePartyRolein interfaceTuaPartyRoleService- Parameters:
partyRole- the partyRole
-
createPartyRole
Description copied from interface:TuaPartyRoleServiceCreates an instance ofTuaPartyRoleModel.- Specified by:
createPartyRolein interfaceTuaPartyRoleService- Returns:
- the newly created model
-
removePartyRole
Description copied from interface:TuaPartyRoleServiceRemoves the givenTuaPartyRoleModel- Specified by:
removePartyRolein interfaceTuaPartyRoleService- Parameters:
partyRoleModel- the party role to be removed
-
getPartyRoles
public List<TuaPartyRoleModel> getPartyRoles(PrPartyRoleFilteringContextData filteringContext, Integer offset, Integer limit) Description copied from interface:TuaPartyRoleServiceReturns the list ofTuaPartyRoleModelfiltered by a given filtering context.- Specified by:
getPartyRolesin interfaceTuaPartyRoleService- Parameters:
filteringContext- the filter context used for filteringoffset- the offset of first party role that will be returnedlimit- maximum number of returned party roles- Returns:
- the list of party roles found for given offset, limit and filteringContext
-
getNumberOfPartyRoles
Description copied from interface:TuaPartyRoleServiceReturns the total number ofTuaPartyRoleModelfound for a given filtering context.- Specified by:
getNumberOfPartyRolesin interfaceTuaPartyRoleService- Parameters:
filteringContextData- the filtering context.- Returns:
- the number of party roles found.
-
getPartyRoleDao
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-