com.arsdigita.cms
Class DataQueryExistsListener

java.lang.Object
  extended bycom.arsdigita.cms.DataQueryExistsListener
All Implemented Interfaces:
EventListener, com.arsdigita.bebop.event.FormValidationListener

public abstract class DataQueryExistsListener
extends Object
implements com.arsdigita.bebop.event.FormValidationListener

Verifies that a specified data query has no results. This is useful for making sure emails are unique in the database.

Users of this class must override the method getDataQuery(com.arsdigita.bebop.event.FormSectionEvent) which specifies the data query to check.

Version:
$Revision: #7 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Uday Mathur (umathur@arsdigita.com), Michael Pih (pihman@arsdigita.com)

Field Summary
protected  String m_errorMsg
           
static String versionId
           
 
Constructor Summary
DataQueryExistsListener(String msg)
           
 
Method Summary
abstract  com.arsdigita.persistence.DataQuery getDataQuery(com.arsdigita.bebop.event.FormSectionEvent event)
           
 void validate(com.arsdigita.bebop.event.FormSectionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

m_errorMsg

protected String m_errorMsg
Constructor Detail

DataQueryExistsListener

public DataQueryExistsListener(String msg)
Parameters:
msg - An error message
Method Detail

getDataQuery

public abstract com.arsdigita.persistence.DataQuery getDataQuery(com.arsdigita.bebop.event.FormSectionEvent event)

validate

public void validate(com.arsdigita.bebop.event.FormSectionEvent event)
              throws com.arsdigita.bebop.FormProcessException
Specified by:
validate in interface com.arsdigita.bebop.event.FormValidationListener
Throws:
com.arsdigita.bebop.FormProcessException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC