public class PromotionTemplateValidator extends GenericService implements TemplateValidator
Determines if the promotions template is valid for the ui by ensuring all
place holders in the
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PromotionTemplateValidator() |
Modifier and Type | Method and Description |
---|---|
atg.repository.editingtemplate.PlaceholderReplacementService |
getPlaceholderReplacementService()
Gets the PlaceholderReplacementService
|
void |
setPlaceholderReplacementService(atg.repository.editingtemplate.PlaceholderReplacementService pPlaceholderReplacementService)
Sets the PlaceholderReplacementService
|
boolean |
validate(org.w3c.dom.Document pDocument)
Performs basic validation on a template ensuring that place holders from
the promotion templates
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setPlaceholderReplacementService(atg.repository.editingtemplate.PlaceholderReplacementService pPlaceholderReplacementService)
public atg.repository.editingtemplate.PlaceholderReplacementService getPlaceholderReplacementService()
public boolean validate(org.w3c.dom.Document pDocument)
Performs basic validation on a template ensuring that place holders from
the promotion templates
validate
in interface TemplateValidator
pDocument
- A DOM Document representation of a promotions template