public class SuggestResourceHelper extends SuggestHelper
dcsStatus, dcsStatusNote, recordTemplate, schemaHelper
Constructor and Description |
---|
SuggestResourceHelper(java.io.File recordTemplate,
SchemaHelper schemaHelper)
SuggestResourceHelper Constructor.
|
Modifier and Type | Method and Description |
---|---|
UrlValidator |
getUrlValidator() |
java.lang.String |
getXmlFormat()
Gets the native framework of the suggestionRecords produced by this
Suggestor.
|
ResourceRecord |
newRecord()
Creates a new
ResourceRecord instance by reading from the
recordTemplate. |
java.lang.String |
putRecordToDCS(SuggestionRecord rec)
Insert a suggested record into the DCS specified by Suggestor's
configuration.
|
java.lang.String |
putRecordToDCS(SuggestionRecord rec,
ValidatorResults validatorResults)
Insert a suggested record into the DCS specified by client configuration.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the SuggestResourceHelper object
|
void |
setUrlValidator(UrlValidator validator) |
getDateStamp, getDestCollection, getEmailFrom, getEmailTo, getMailServer, getRepositoryServiceClient, getSchemaHelper, getViewBaseUrl, prtlnErr, setDcsStatus, setDcsStatusNote, setDestCollection, setEmailFrom, setEmailTo, setMailServer, setRepositoryServiceClient
public SuggestResourceHelper(java.io.File recordTemplate, SchemaHelper schemaHelper)
org.dlese.dpc.suggest.SuggestResourceHelper
).repositoryDir
- directory holding default record and records directorypublic java.lang.String getXmlFormat()
SuggestHelper
getXmlFormat
in class SuggestHelper
public UrlValidator getUrlValidator()
public void setUrlValidator(UrlValidator validator)
public ResourceRecord newRecord() throws java.lang.Exception
ResourceRecord
instance by reading from the
recordTemplate. We don't call readRecord (file) because we don't want the
id to be set for the new recordnewRecord
in class SuggestHelper
java.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String putRecordToDCS(SuggestionRecord rec) throws java.lang.Exception
SuggestHelper
putRecordToDCS
in class SuggestHelper
rec
- NOT YET DOCUMENTEDjava.lang.Exception
- Description of the Exceptionpublic java.lang.String putRecordToDCS(SuggestionRecord rec, ValidatorResults validatorResults) throws java.lang.Exception
sm
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic static void setDebug(boolean db)
db
- The new debug value