|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.input.UniqueValueChecker
public class UniqueValueChecker
Checks for duplicate values in the same record as a "reference" record at a specified path.
Used to enforce SchemaPaths that are configured in the framework configuration as "uniqueValue" paths.
| Constructor Summary | |
|---|---|
UniqueValueChecker(ServletContext servletContext)
Constructor for the UniqueValueChecker object, requiring ServletContext. |
|
| Method Summary | |
|---|---|
static String |
getDateString()
Gets a formated date string for current time. |
List |
getDupValues(String referenceValue,
XMLDocReader referenceDocReader,
String xpath)
Returns a list of RecordIds in a that contain a value equal to provided referenceValue at the provided xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniqueValueChecker(ServletContext servletContext)
throws Exception
servletContext -
Exception - if required helper objects cannot be found in the
servlet context initialized.| Method Detail |
|---|
public List getDupValues(String referenceValue,
XMLDocReader referenceDocReader,
String xpath)
NOTE: This check is only performed if the framework configuration defines a schemaPath with valueType of "uniqueValue".
referenceValue - The value for which we try to find dupsreferenceDocReader - docReader for the record containing
referenceValuexpath - xpath at which value is found
public static String getDateString()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||