Package org.dlese.dpc.suggest.comment
Class SuggestCommentHelper
java.lang.Object
org.dlese.dpc.suggest.SuggestHelper
org.dlese.dpc.suggest.comment.SuggestCommentHelper
Provides services for SuggestComment Client.
- Author:
- Jonathan Ostwald
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WebServiceClientNOT YET DOCUMENTEDprotected StringNOT YET DOCUMENTEDFields inherited from class org.dlese.dpc.suggest.SuggestHelper
dcsStatus, dcsStatusNote, recordTemplate, schemaHelper -
Constructor Summary
ConstructorsConstructorDescriptionSuggestCommentHelper(File recordTemplate, SchemaHelper schemaHelper) SuggestCommentHelper Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the itemRecordProps attribute of the SuggestCommentHelper objectGets the searchServiceClient attribute of the SuggestCommentHelper objectGets the xmlFormat attribute of the SuggestCommentHelper objectCreates a newinstance by reading from the recordTemplate.invalid reference
ResourceRecordInsert a suggested record into the DCS specified by client configuration.static voidsetDebug(boolean db) Sets the debug attribute of the SuggestCommentHelper objectvoidSets the searchServiceClient attribute of the SuggestCommentHelper objectMethods inherited from class org.dlese.dpc.suggest.SuggestHelper
getDateStamp, getDestCollection, getEmailFrom, getEmailTo, getMailServer, getRepositoryServiceClient, getSchemaHelper, getViewBaseUrl, prtlnErr, setDcsStatus, setDcsStatusNote, setDestCollection, setEmailFrom, setEmailTo, setMailServer, setRepositoryServiceClient
-
Field Details
-
searchServiceUrl
NOT YET DOCUMENTED -
searchServiceClient
NOT YET DOCUMENTED
-
-
Constructor Details
-
SuggestCommentHelper
SuggestCommentHelper Constructor. The repositoryDir param points to a directory that contains a default record (used for making new records), and a records directory (where suggested urls are stored). This stuff is all hard coded for now, but properties can be used to supply defaults (see).invalid reference
org.dlese.dpc.suggest.SuggestCommentHelper- Parameters:
recordTemplate- NOT YET DOCUMENTEDschemaHelper- NOT YET DOCUMENTED
-
-
Method Details
-
getXmlFormat
Gets the xmlFormat attribute of the SuggestCommentHelper object- Specified by:
getXmlFormatin classSuggestHelper- Returns:
- The xmlFormat value
-
newRecord
Creates a newinstance by reading from the recordTemplate. We don't call readRecord (file) because we don't want the id to be set for the new recordinvalid reference
ResourceRecord- Specified by:
newRecordin classSuggestHelper- Returns:
- Description of the Return Value
- Throws:
Exception- NOT YET DOCUMENTED
-
getItemRecordProps
Gets the itemRecordProps attribute of the SuggestCommentHelper object- Parameters:
id- NOT YET DOCUMENTED- Returns:
- The itemRecordProps value
- Throws:
Exception- NOT YET DOCUMENTED
-
putRecordToDCS
Insert a suggested record into the DCS specified by client configuration.- Specified by:
putRecordToDCSin classSuggestHelper- Parameters:
rec- NOT YET DOCUMENTED- Returns:
- ID of record in destination DCS
- Throws:
Exception- Description of the Exception
-
getSearchServiceClient
Gets the searchServiceClient attribute of the SuggestCommentHelper object- Returns:
- The searchServiceClient value
-
setSearchServiceClient
Sets the searchServiceClient attribute of the SuggestCommentHelper object- Parameters:
wsc- The new searchServiceClient value
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the SuggestCommentHelper object- Parameters:
db- The new debug value
-