Class DefaultTuaOrganizationService
java.lang.Object
de.hybris.platform.partyservices.services.impl.DefaultTuaOrganizationService
- All Implemented Interfaces:
TuaOrganizationService
Default implementation of the
TuaOrganizationService.- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTuaOrganizationService(TuaOrganizationDao organizationDao, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionCreates an instance ofTuaOrganizationModelfindOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext, Integer offset, Integer limit) Retrieves a list ofTuaOrganizationModelfor a given filtering context.protected de.hybris.platform.servicelayer.model.ModelServicegetNumberOfOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext) Retrieves the total number of organization parties found for a given filtering context.Returns the organization for the provided id.protected TuaOrganizationDaovoidremoveOrganization(TuaOrganizationModel organization) Removes the givenTuaOrganizationModelvoidsaveOrganization(TuaOrganizationModel organizationModel) Saves a givenTuaOrganizationModel
-
Constructor Details
-
DefaultTuaOrganizationService
public DefaultTuaOrganizationService(TuaOrganizationDao organizationDao, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
getOrganization
Description copied from interface:TuaOrganizationServiceReturns the organization for the provided id.- Specified by:
getOrganizationin interfaceTuaOrganizationService- Parameters:
id- The unique identifier of the organization- Returns:
- The
TuaOrganizationModelfor the provided id
-
findOrganizationParties
public List<TuaOrganizationModel> findOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext, Integer offset, Integer limit) Description copied from interface:TuaOrganizationServiceRetrieves a list ofTuaOrganizationModelfor a given filtering context.- Specified by:
findOrganizationPartiesin interfaceTuaOrganizationService- Parameters:
pmOrganizationFilteringContext- the organization party context.offset- the offset.limit- the maximum number of returned parties.- Returns:
- the list of organization parties found for the given context.
-
getNumberOfOrganizationParties
public Integer getNumberOfOrganizationParties(PmOrganizationFilteringContextData pmOrganizationFilteringContext) Description copied from interface:TuaOrganizationServiceRetrieves the total number of organization parties found for a given filtering context.- Specified by:
getNumberOfOrganizationPartiesin interfaceTuaOrganizationService- Parameters:
pmOrganizationFilteringContext- the organization party context.- Returns:
- the number of organization parties found.
-
removeOrganization
Description copied from interface:TuaOrganizationServiceRemoves the givenTuaOrganizationModel- Specified by:
removeOrganizationin interfaceTuaOrganizationService- Parameters:
organization- the organization to be removed
-
createOrganization
Description copied from interface:TuaOrganizationServiceCreates an instance ofTuaOrganizationModel- Specified by:
createOrganizationin interfaceTuaOrganizationService- Returns:
- the newly created organization
-
saveOrganization
Description copied from interface:TuaOrganizationServiceSaves a givenTuaOrganizationModel- Specified by:
saveOrganizationin interfaceTuaOrganizationService- Parameters:
organizationModel- the organization to be saved
-
getOrganizationDao
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-