|
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
public abstract class SuggestHelper
Provides functionality to help Suggestor clients collection suggestions and write them to DCS instances.
| Field Summary | |
|---|---|
protected String |
dcsStatus
DcsStatus given to SuggestionRecords |
protected String |
dcsStatusNote
dcsStatusNote given to SuggestionRecords |
protected File |
recordTemplate
XML File from which suggestionRecords are created |
protected SchemaHelper |
schemaHelper
Helper providing schema-related functionalities for the framework of the suggestions |
| Constructor Summary | |
|---|---|
SuggestHelper(File recordTemplate,
SchemaHelper schemaHelper)
SuggestHelper Constructor |
|
| Method Summary | |
|---|---|
protected static String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
String |
getDestCollection()
Gets the destCollection attribute of the SuggestHelper object |
String |
getEmailFrom()
Gets the emailFrom attribute of the SuggestHelper object |
String[] |
getEmailTo()
Gets the emailTo attribute of the SuggestHelper object |
String |
getMailServer()
Gets the mailServer attribute of the SuggestHelper object |
WebServiceClient |
getRepositoryServiceClient()
Gets the repositoryServiceClient attribute of the SuggestHelper object, used to place suggestions in a DCS instance. |
SchemaHelper |
getSchemaHelper()
Gets the schemaHelper attribute of the SuggestHelper object |
String |
getViewBaseUrl()
Gets the baseUrl of the DCS instance in which suggestions are put. |
abstract String |
getXmlFormat()
Gets the native framework of the suggestionRecords produced by this Suggestor. |
abstract SuggestionRecord |
newRecord()
Creates a new ResourceRecord instance from the recordTemplate
file. |
protected static void |
prtlnErr(String s)
Output a line of text to error out, with datestamp. |
abstract String |
putRecordToDCS(SuggestionRecord rec)
Insert a suggested record into the DCS specified by Suggestor's configuration. |
void |
setDcsStatus(String status)
The dcsStatus that is given to suggested records. |
void |
setDcsStatusNote(String statusNote)
The dcsStatusNote that is given to suggested records. |
static void |
setDebug(boolean db)
Sets the debug attribute of the SuggestHelper object |
void |
setDestCollection(String collection)
The collection of the DCS in which suggestions are placed. |
void |
setEmailFrom(String address)
Sets the emailFrom attribute of the SuggestHelper object |
void |
setEmailTo(String[] addresses)
Sets the emailTo attribute of the SuggestHelper object |
void |
setMailServer(String mailServer)
Sets the mailServer attribute of the SuggestHelper object |
void |
setRepositoryServiceClient(WebServiceClient wsc)
The repositoryServiceClient is used to place suggestions in a DCS instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SchemaHelper schemaHelper
protected File recordTemplate
protected String dcsStatus
protected String dcsStatusNote
| Constructor Detail |
|---|
public SuggestHelper(File recordTemplate,
SchemaHelper schemaHelper)
recordTemplate - template used to create new SuggestRecord instancesschemaHelper - schemaHelper instance for this SuggestHelper's
native framework| Method Detail |
|---|
public abstract String getXmlFormat()
public SchemaHelper getSchemaHelper()
public void setDcsStatus(String status)
status - The new dcsStatus valuepublic void setDcsStatusNote(String statusNote)
statusNote - The new dcsStatusNote valuepublic void setDestCollection(String collection)
collection - The new destCollection valuepublic String getDestCollection()
public WebServiceClient getRepositoryServiceClient()
public void setRepositoryServiceClient(WebServiceClient wsc)
wsc - The new repositoryServiceClient valuepublic void setMailServer(String mailServer)
mailServer - The new mailServer valuepublic String getMailServer()
public void setEmailTo(String[] addresses)
addresses - The new emailTo valuepublic String[] getEmailTo()
public void setEmailFrom(String address)
address - The new emailFrom valuepublic String getEmailFrom()
public abstract SuggestionRecord newRecord()
throws Exception
ResourceRecord instance from the recordTemplate
file.
Exception - NOT YET DOCUMENTED
public abstract String putRecordToDCS(SuggestionRecord rec)
throws Exception
rec - NOT YET DOCUMENTED
Exception - Description of the Exceptionpublic String getViewBaseUrl()
public static void setDebug(boolean db)
db - The new debug valueprotected static String getDateStamp()
protected static final void prtlnErr(String s)
s - The text that will be output to error out.
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||