Class DefaultTmaB2bCustomerAccountService
java.lang.Object
de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
de.hybris.platform.b2ctelcoservices.customer.DefaultTmaCustomerAccountService
de.hybris.platform.b2btelcoservices.customer.impl.DefaultTmaB2bCustomerAccountService
- All Implemented Interfaces:
TmaB2bCustomerAccountService,de.hybris.platform.commerceservices.customer.CustomerAccountService
public class DefaultTmaB2bCustomerAccountService
extends DefaultTmaCustomerAccountService
implements TmaB2bCustomerAccountService
Default implementation of
TmaB2bCustomerAccountService.- Since:
- 2105
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<PrincipalGroupModel>Returns all the sub-units for the provided unit.getUnits(PrincipalModel user) Returns the units and all its subunits the provided user is part of.getUsersFrom(B2BUnitModel unit) Returns the users part of the provided unit and its subunits.getUsersInSameOrganizationWith(PrincipalModel principal) Returns the lists of users part of the organizations where the given principal is part of.booleanisPrincipalMemberOfOrganizations(String principalId, Set<PrincipalModel> usersInOrganization, Set<PrincipalModel> unitsInOrganization) Checks if the provided principal is a member of the organization.Methods inherited from class de.hybris.platform.b2ctelcoservices.customer.DefaultTmaCustomerAccountService
getAddressForCodeMethods inherited from class de.hybris.platform.commerceservices.customer.impl.DefaultCustomerAccountService
addPaymentInfo, adjustPassword, changePassword, changeUid, checkUidUniqueness, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, deleteAddressEntry, deleteCCPaymentInfo, fillValuesForCustomerInfo, forgottenPassword, generateCustomerId, getAddressBookDeliveryEntries, getAddressBookEntries, getAllAddressEntries, getBaseSiteService, getBaseStoreService, getCommerceCommonI18NService, getCommerceConsentService, getCommonI18NService, getConfigurationService, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getCurrency, getCustomerAccountDao, getCustomerEmailResolutionService, getCustomerNameStrategy, getDefaultAddress, getEventService, getFlexibleSearchService, getGuestOrderForGUID, getI18nService, getMaskedCardNumber, getModelService, getMonthsForOrderExpiry, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getPasswordEncoderService, getPasswordEncoding, getPaymentService, getReturnRequestsByCustomerAndStore, getSecureTokenService, getSessionService, getTimeService, getTitles, getTokenValiditySeconds, getTypeService, getUserService, initializeEvent, internalSaveCustomer, populateAndGetSessionConsentsToRegisteredUser, register, registerCustomer, registerGuestForAnonymousCheckout, saveAddressEntry, setBaseSiteService, setBaseStoreService, setCommerceCommonI18NService, setCommerceConsentService, setCommonI18NService, setConfigurationService, setCustomerAccountDao, setCustomerEmailResolutionService, setCustomerNameStrategy, setDefaultAddressEntry, setDefaultPaymentInfo, setEventService, setFlexibleSearchService, setI18nService, setModelService, setMonthsForOrderExpiry, setPasswordEncoderService, setPasswordEncoding, setPaymentService, setPopulatingConsentsInSessionEnabled, setSecureTokenService, setSessionService, setTimeService, setTokenValiditySeconds, setTypeService, setUserService, unlinkCCPaymentInfo, updatePassword, updateProfileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.customer.CustomerAccountService
changePassword, changeUid, clearDefaultAddressEntry, closeAccount, convertGuestToCustomer, createPaymentSubscription, deleteAddressEntry, deleteCCPaymentInfo, forgottenPassword, getAddressBookDeliveryEntries, getAddressBookEntries, getAddressForCode, getAllAddressEntries, getCreditCardPaymentInfoForCode, getCreditCardPaymentInfos, getDefaultAddress, getGuestOrderForGUID, getOrderDetailsForGUID, getOrderForCode, getOrderForCode, getOrderList, getOrderList, getReturnRequestsByCustomerAndStore, getTitles, register, registerGuestForAnonymousCheckout, saveAddressEntry, setDefaultAddressEntry, setDefaultPaymentInfo, setPopulatingConsentsInSessionEnabled, unlinkCCPaymentInfo, updatePassword, updateProfile
-
Constructor Details
-
DefaultTmaB2bCustomerAccountService
public DefaultTmaB2bCustomerAccountService()
-
-
Method Details
-
getUsersFrom
Description copied from interface:TmaB2bCustomerAccountServiceReturns the users part of the provided unit and its subunits.- Specified by:
getUsersFromin interfaceTmaB2bCustomerAccountService- Parameters:
unit- The business unit- Returns:
- List of users part of the unit
-
getUnits
Description copied from interface:TmaB2bCustomerAccountServiceReturns the units and all its subunits the provided user is part of.- Specified by:
getUnitsin interfaceTmaB2bCustomerAccountService- Parameters:
user- The user- Returns:
- The units and its subunits for the provided principal
-
getUsersInSameOrganizationWith
Description copied from interface:TmaB2bCustomerAccountServiceReturns the lists of users part of the organizations where the given principal is part of.- Specified by:
getUsersInSameOrganizationWithin interfaceTmaB2bCustomerAccountService- Parameters:
principal- the principal- Returns:
- the list of users part of the given principal's organizations
-
isPrincipalMemberOfOrganizations
public boolean isPrincipalMemberOfOrganizations(String principalId, Set<PrincipalModel> usersInOrganization, Set<PrincipalModel> unitsInOrganization) Description copied from interface:TmaB2bCustomerAccountServiceChecks if the provided principal is a member of the organization.- Specified by:
isPrincipalMemberOfOrganizationsin interfaceTmaB2bCustomerAccountService- Parameters:
principalId- The identifier of the principalusersInOrganization- The users in the organizationunitsInOrganization- The units in the organization- Returns:
- True if the principal is member of the organization, otherwise false
-
getAllSubUnits
Returns all the sub-units for the provided unit.- Parameters:
unit- The unit- Returns:
- The sub-units for the provided unit
-