com.konakart.blif
Interface VelocityContextMgrIf

All Known Implementing Classes:
VelocityContextMgr

public interface VelocityContextMgrIf

VelocityContextMgrIf


Field Summary
static int ORDER_CONFIRMATION_EMAIL
          ORDER_CONFIRMATION_EMAIL
static int SEND_NEW_PASSWORD
          SEND_NEW_PASSWORD
static int STOCK_REORDER_EMAIL
          STOCK_REORDER_EMAIL
static int TEMPLATE_MAIL_TO_CUST
          TEMPLATE_MAIL_TO_CUST
static int WELCOME_EMAIL
          WELCOME_EMAIL
 
Method Summary
 void addToContext(org.apache.velocity.VelocityContext context, KKEngIf eng, int contextType, int langId, EmailOptionsIf options, int customInt, java.lang.String customString)
          Put an object into the VelocityContext
 

Field Detail

ORDER_CONFIRMATION_EMAIL

static final int ORDER_CONFIRMATION_EMAIL
ORDER_CONFIRMATION_EMAIL

See Also:
Constant Field Values

TEMPLATE_MAIL_TO_CUST

static final int TEMPLATE_MAIL_TO_CUST
TEMPLATE_MAIL_TO_CUST

See Also:
Constant Field Values

SEND_NEW_PASSWORD

static final int SEND_NEW_PASSWORD
SEND_NEW_PASSWORD

See Also:
Constant Field Values

STOCK_REORDER_EMAIL

static final int STOCK_REORDER_EMAIL
STOCK_REORDER_EMAIL

See Also:
Constant Field Values

WELCOME_EMAIL

static final int WELCOME_EMAIL
WELCOME_EMAIL

See Also:
Constant Field Values
Method Detail

addToContext

void addToContext(org.apache.velocity.VelocityContext context,
                  KKEngIf eng,
                  int contextType,
                  int langId,
                  EmailOptionsIf options,
                  int customInt,
                  java.lang.String customString)
                  throws KKException
Put an object into the VelocityContext

Parameters:
context - The velocity context
eng - engine
contextType - one of:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST
  • VelocityContextMgrIf.SEND_NEW_PASSWORD
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL
  • VelocityContextMgrIf.WELCOME_EMAIL
langId - languageId
options - EmailOptions
customInt - a custom Integer - the meaning depends on the contextType:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL - orderId
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - customerId
  • VelocityContextMgrIf.SEND_NEW_PASSWORD - customerId
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL - productId
  • VelocityContextMgrIf.WELCOME_EMAIL - customerId
customString - a custom String - the meaning depends on the contextType:
  • VelocityContextMgrIf.ORDER_CONFIRMATION_EMAIL - customer's email address
  • VelocityContextMgrIf.TEMPLATE_MAIL_TO_CUST - message
  • VelocityContextMgrIf.SEND_NEW_PASSWORD - customer's email address
  • VelocityContextMgrIf.STOCK_REORDER_EMAIL - sku
  • VelocityContextMgrIf.WELCOME_EMAIL - customer's email address
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.