public class SuggestCommentHelper extends SuggestHelper
Modifier and Type | Field and Description |
---|---|
protected WebServiceClient |
searchServiceClient
NOT YET DOCUMENTED
|
protected java.lang.String |
searchServiceUrl
NOT YET DOCUMENTED
|
dcsStatus, dcsStatusNote, recordTemplate, schemaHelper
Constructor and Description |
---|
SuggestCommentHelper(java.io.File recordTemplate,
SchemaHelper schemaHelper)
SuggestCommentHelper Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getItemRecordProps(java.lang.String id)
Gets the itemRecordProps attribute of the SuggestCommentHelper object
|
WebServiceClient |
getSearchServiceClient()
Gets the searchServiceClient attribute of the SuggestCommentHelper object
|
java.lang.String |
getXmlFormat()
Gets the xmlFormat attribute of the SuggestCommentHelper object
|
CommentRecord |
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 client configuration.
|
static void |
setDebug(boolean db)
Sets the debug attribute of the SuggestCommentHelper object
|
void |
setSearchServiceClient(WebServiceClient wsc)
Sets the searchServiceClient attribute of the SuggestCommentHelper object
|
getDateStamp, getDestCollection, getEmailFrom, getEmailTo, getMailServer, getRepositoryServiceClient, getSchemaHelper, getViewBaseUrl, prtlnErr, setDcsStatus, setDcsStatusNote, setDestCollection, setEmailFrom, setEmailTo, setMailServer, setRepositoryServiceClient
protected java.lang.String searchServiceUrl
protected WebServiceClient searchServiceClient
public SuggestCommentHelper(java.io.File recordTemplate, SchemaHelper schemaHelper)
org.dlese.dpc.suggest.SuggestCommentHelper
).recordTemplate
- NOT YET DOCUMENTEDschemaHelper
- NOT YET DOCUMENTEDpublic java.lang.String getXmlFormat()
getXmlFormat
in class SuggestHelper
public CommentRecord 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.util.Map getItemRecordProps(java.lang.String id) throws java.lang.Exception
id
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String putRecordToDCS(SuggestionRecord rec) throws java.lang.Exception
putRecordToDCS
in class SuggestHelper
rec
- NOT YET DOCUMENTEDjava.lang.Exception
- Description of the Exceptionpublic WebServiceClient getSearchServiceClient()
public void setSearchServiceClient(WebServiceClient wsc)
wsc
- The new searchServiceClient valuepublic static void setDebug(boolean db)
db
- The new debug value