Interface TuaPartyRoleService
- All Known Implementing Classes:
DefaultTuaPartyRoleService
public interface TuaPartyRoleService
Service responsible for handling
TuaPartyRoleModel related operations.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaPartyRoleModel.getNumberOfPartyRoles(PrPartyRoleFilteringContextData filteringContextData) Returns the total number ofTuaPartyRoleModelfound for a given filtering context.getPartyRole(String id) Returns aTuaPartyRoleModelfor the given id.getPartyRoles(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.
-
Method Details
-
getPartyRole
Returns aTuaPartyRoleModelfor the given id.- Parameters:
id- identifier ofTuaPartyRoleModel- Returns:
- the
TuaPartyRoleModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no party role is found.
-
savePartyRole
Saves the givenTuaPartyRoleModel.- Parameters:
partyRole- the partyRole
-
createPartyRole
TuaPartyRoleModel createPartyRole()Creates an instance ofTuaPartyRoleModel.- Returns:
- the newly created model
-
removePartyRole
Removes the givenTuaPartyRoleModel- Parameters:
partyRoleModel- the party role to be removed
-
getPartyRoles
List<TuaPartyRoleModel> getPartyRoles(PrPartyRoleFilteringContextData filteringContext, Integer offset, Integer limit) Returns the list ofTuaPartyRoleModelfiltered by a given filtering context.- 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
Returns the total number ofTuaPartyRoleModelfound for a given filtering context.- Parameters:
filteringContextData- the filtering context.- Returns:
- the number of party roles found.
-