|
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.suggest.SuggestHelper
org.dlese.dpc.suggest.resource.SuggestResourceHelper
public class SuggestResourceHelper
SuggestUrlManger - provides services for suggestor Client.
| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.suggest.SuggestHelper |
|---|
dcsStatus, dcsStatusNote, recordTemplate, schemaHelper |
| Constructor Summary | |
|---|---|
SuggestResourceHelper(File recordTemplate,
SchemaHelper schemaHelper)
SuggestResourceHelper Constructor. |
|
| Method Summary | |
|---|---|
UrlValidator |
getUrlValidator()
|
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. |
String |
putRecordToDCS(SuggestionRecord rec)
Insert a suggested record into the DCS specified by Suggestor's configuration. |
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)
|
| Methods inherited from class org.dlese.dpc.suggest.SuggestHelper |
|---|
getDateStamp, getDestCollection, getEmailFrom, getEmailTo, getMailServer, getRepositoryServiceClient, getSchemaHelper, getViewBaseUrl, prtlnErr, setDcsStatus, setDcsStatusNote, setDestCollection, setEmailFrom, setEmailTo, setMailServer, setRepositoryServiceClient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuggestResourceHelper(File recordTemplate,
SchemaHelper schemaHelper)
org.dlese.dpc.suggest.SuggestResourceHelper).
repositoryDir - directory holding default record and records directory| Method Detail |
|---|
public String getXmlFormat()
SuggestHelper
getXmlFormat in class SuggestHelperpublic UrlValidator getUrlValidator()
public void setUrlValidator(UrlValidator validator)
public ResourceRecord newRecord()
throws 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 record
newRecord in class SuggestHelperException - NOT YET DOCUMENTED
public String putRecordToDCS(SuggestionRecord rec)
throws Exception
SuggestHelper
putRecordToDCS in class SuggestHelperrec - NOT YET DOCUMENTED
Exception - Description of the Exception
public String putRecordToDCS(SuggestionRecord rec,
ValidatorResults validatorResults)
throws Exception
sm - Description of the Parameter
Exception - Description of the Exceptionpublic static void setDebug(boolean db)
db - The new debug value
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||