/** * Utility method to set a KKCookie when we have the customerUuid * * @param customerUuid * @param attrId * @param attrValue * @param kkAppEng * @throws KKException */ protected void setKKCookie( String customerUuid, String attrId, String attrValue, KKAppEng kkAppEng) throws KKException { if (customerUuid != null) { KKCookieIf kkCookie = new KKCookie(); kkCookie.setCustomerUuid(customerUuid); kkCookie.setAttributeId(attrId); kkCookie.setAttributeValue(attrValue); kkAppEng.getEng().setCookie(kkCookie); } }
/** * Utility method to set a KKCookie when we have the customerUuid * * @param customerUuid customer uuid * @param attrId the id of the attribute * @param attrValue the value to save * @param kkAppEng the konakart engine * @throws org.hippoecm.hst.core.component.HstComponentException . */ private void setKKCookie(String customerUuid, String attrId, String attrValue, KKAppEng kkAppEng) throws HstComponentException { KKCookieIf kkCookie = new KKCookie(); kkCookie.setCustomerUuid(customerUuid); kkCookie.setAttributeId(attrId); kkCookie.setAttributeValue(attrValue); try { kkAppEng.getEng().setCookie(kkCookie); } catch (KKException e) { throw new HstComponentException(e); } }