atg.commerce.promotion.template
Class PromotionTemplateValidator
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.promotion.template.PromotionTemplateValidator
- All Implemented Interfaces:
- TemplateValidator, NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener
public class PromotionTemplateValidator
- extends GenericService
- implements TemplateValidator
Determines if the promotions template is valid for the ui by ensuring all
place holders in the section have corresponding place
holders in the section.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
Method Summary |
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 section have corresponding place
holders in the , if the exists in the
template. |
Methods inherited from class atg.nucleus.GenericService |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, 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, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
PromotionTemplateValidator
public PromotionTemplateValidator()
setPlaceholderReplacementService
public void setPlaceholderReplacementService(atg.repository.editingtemplate.PlaceholderReplacementService pPlaceholderReplacementService)
- Sets the PlaceholderReplacementService
getPlaceholderReplacementService
public atg.repository.editingtemplate.PlaceholderReplacementService getPlaceholderReplacementService()
- Gets the PlaceholderReplacementService
validate
public boolean validate(org.w3c.dom.Document pDocument)
Performs basic validation on a template ensuring that place holders from
the promotion templates section have corresponding place
holders in the , if the exists in the
template. A template without a section will automatically
pass this basic validation.
- Specified by:
validate
in interface TemplateValidator
- Parameters:
pDocument
- A DOM Document representation of a promotions template
- Returns:
- a boolean indicating whether or not the template is a valid
promotions template