Class DefaultB2BRegistrationService
- java.lang.Object
-
- de.hybris.platform.secureportaladdon.services.impl.DefaultB2BRegistrationService
-
- All Implemented Interfaces:
B2BRegistrationService
public class DefaultB2BRegistrationService extends java.lang.Object implements B2BRegistrationService
Default implementation ofB2BRegistrationService
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BRegistrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<EmailAddressModel>getEmailAddressesOfEmployees(java.util.List<EmployeeModel> employees)Gets the contact email address of the specified list of employeesjava.util.List<EmployeeModel>getEmployeesInUserGroup(java.lang.String userGroup)Gets the list of employees that are part of a given user groupvoidsetEmailService(EmailService emailService)voidsetRegistrationDao(B2BRegistrationDao registrationDao)
-
-
-
Method Detail
-
setRegistrationDao
public void setRegistrationDao(B2BRegistrationDao registrationDao)
- Parameters:
registrationDao- the registrationDao to set
-
setEmailService
public void setEmailService(EmailService emailService)
- Parameters:
emailService- the emailService to set
-
getEmployeesInUserGroup
public java.util.List<EmployeeModel> getEmployeesInUserGroup(java.lang.String userGroup)
Description copied from interface:B2BRegistrationServiceGets the list of employees that are part of a given user group- Specified by:
getEmployeesInUserGroupin interfaceB2BRegistrationService- Parameters:
userGroup- The name of the user group- Returns:
- Employees within the user group
-
getEmailAddressesOfEmployees
public java.util.List<EmailAddressModel> getEmailAddressesOfEmployees(java.util.List<EmployeeModel> employees)
Description copied from interface:B2BRegistrationServiceGets the contact email address of the specified list of employees- Specified by:
getEmailAddressesOfEmployeesin interfaceB2BRegistrationService- Parameters:
employees- List of employees to get email address from- Returns:
- List of email addresses. It is possible that the list is empty since employees are not required to have an email nor a contact address
-
-