Is there any scenario where the B2B customer can be anonymous as well in Hybris?
The method:
public CustomerModel getAnonymousUser() {
return (CustomerModel)this.getSessionService().executeInLocalView(new SessionExecutionBody() {
public Object execute() {
DefaultUserService.this.searchRestrictionService.disableSearchRestrictions();
return DefaultUserService.this.getUserForUID(UserConstants.ANONYMOUS_CUSTOMER_UID, CustomerModel.class);
}
});
}
in DefaultUserService.java
suggests that the anonymous user will be of type Customer
.
Is there any scenario where it can be of type B2BCustomer
?