public abstract class AbstractCATHelperPlugin extends java.lang.Object implements CATHelperPlugin
Constructor and Description |
---|
AbstractCATHelperPlugin() |
Modifier and Type | Method and Description |
---|---|
protected CATServiceHelper |
getCatHelper()
Gets the catHelper attribute of the AbstractCATHelperPlugin object
|
abstract java.lang.String |
getDerivedCATEndGrade()
Gets the gradeRangeOptionValue corresponding to the highest selected
gradeRange in the current instance document.
|
abstract java.lang.String |
getDerivedCATStartGrade()
Gets the startGradeContraintOptionValue corresponsing to the lowest
gradeRange selected in the current record.
|
abstract java.lang.String |
getDescriptionPath()
Gets the descriptionPath attribute of the AbstractCATHelperPlugin object
|
abstract java.util.List |
getGradeRangeOptions()
Gets the gradeRangeOptions attribute of the AbstractCATHelperPlugin object
|
abstract java.lang.String |
getGradeRangePath()
Gets the gradeRangePath attribute of the SuggestionServiceHelper object
|
abstract java.lang.String |
getKeywordPath()
Gets the keywordPath attribute of the SuggestionServiceHelper object
|
java.util.List |
getOptionalCatUIFields()
Gets the fields besides url, description and graderanges that a particular
framework wants to control via the CAT UI.
|
java.lang.String |
getRecordDescription()
Gets the value of the description field of the current metadata record,
concatenating multiple description field values in the case where the
description field is repeating.
|
java.lang.String[] |
getRecordGradeRanges()
Returns the gradeRange vocab values currently selected in the record
|
java.lang.String[] |
getRecordKeywords()
Gets the keyword values currently defined in the record.
|
java.lang.String[] |
getRecordSubjects()
Gets the recordSubjects from the current instance doc using the subjectPath
defined in the concrete plugin instance.
|
java.lang.String[] |
getRecordSubjects(java.util.List subjectPaths)
Gets the recordSubjects from the current instance doc using the supplied
subjectPaths.
|
abstract int |
getSelectedCATEndGrade(java.lang.String[] gradeConstraints)
Compute a end Grade value based on currently selected CAT grade Level
controls
|
abstract int |
getSelectedCATStartGrade(java.lang.String[] gradeConstraints)
Compute a startGrade value based on currently selected CAT grade Level
controls
|
abstract java.lang.String |
getSubjectPath()
Gets the subjectPath attribute of the AbstractCATHelperPlugin object
|
void |
init(CATServiceHelper helper)
NOT YET DOCUMENTED
|
protected java.lang.String |
normalizeSubjectValue(java.lang.String value)
Hook to preprocess subject values before submitting them to the CAT API
|
static void |
prtlnErr(java.lang.String s)
NOT YET DOCUMENTED
|
protected CATServiceHelper getCatHelper()
public void init(CATServiceHelper helper)
init
in interface CATHelperPlugin
helper
- NOT YET DOCUMENTEDpublic java.util.List getOptionalCatUIFields()
getOptionalCatUIFields
in interface CATHelperPlugin
public java.lang.String[] getRecordSubjects(java.util.List subjectPaths)
subjectPaths
- a list of xpaths containing subject valuesprotected java.lang.String normalizeSubjectValue(java.lang.String value)
value
- NOT YET DOCUMENTEDpublic java.lang.String[] getRecordSubjects()
getRecordSubjects
in interface CATHelperPlugin
public java.lang.String getRecordDescription()
getRecordDescription
in interface CATHelperPlugin
public java.lang.String[] getRecordKeywords()
getRecordKeywords
in interface CATHelperPlugin
public java.lang.String[] getRecordGradeRanges()
getRecordGradeRanges
in interface CATHelperPlugin
public abstract java.lang.String getDerivedCATStartGrade()
getDerivedCATStartGrade
in interface CATHelperPlugin
public abstract java.lang.String getDerivedCATEndGrade()
NOTE: this requires converting from possible gradeRange metadata values to the values supplied for gradeRangeOptions.
getDerivedCATEndGrade
in interface CATHelperPlugin
public abstract java.lang.String getGradeRangePath()
public abstract java.lang.String getKeywordPath()
public abstract java.lang.String getDescriptionPath()
public abstract java.lang.String getSubjectPath()
public abstract int getSelectedCATStartGrade(java.lang.String[] gradeConstraints)
getSelectedCATStartGrade
in interface CATHelperPlugin
public abstract int getSelectedCATEndGrade(java.lang.String[] gradeConstraints)
getSelectedCATEndGrade
in interface CATHelperPlugin
public abstract java.util.List getGradeRangeOptions()
getGradeRangeOptions
in interface CATHelperPlugin
public static void prtlnErr(java.lang.String s)
s
- NOT YET DOCUMENTED