public String getResellerId(HstRequest request) { final Mount mount = request.getRequestContext().getResolvedMount().getMount(); final WebsiteInfo info = mount.getChannelInfo(); boolean isReseller = isReSeller(request); if (!isReseller) return null; return info.getResellerId(); }
public boolean isReSeller(HstRequest request) { final Mount mount = request.getRequestContext().getResolvedMount().getMount(); final WebsiteInfo info = mount.getChannelInfo(); if (info == null) { log.warn( "No channel info available for mount '{}'. No logo will be shown", mount.getMountPath()); return false; } String isReseller = info.isReseller(); String resellerId = info.getResellerId(); if (info.isReseller() != null && Boolean.valueOf(info.isReseller()) && info.getResellerId() != null && !"".equals(info.getResellerId())) { return true; } return false; }