org.activemath.omdocjdom.slumb
Class SlumbFeed
java.lang.Object
org.activemath.omdocjdom.slumb.SlumbFeed
- All Implemented Interfaces:
- SlumbConstants
public class SlumbFeed
- extends Object
- implements SlumbConstants
Class to load (or reload) OMDoc content into LuceneMBase.
| Fields inherited from interface org.activemath.omdocjdom.slumb.SlumbConstants |
COLL_NAMES_book_list, COLL_NAMES_collection_info, COLL_NAMES_collection_info_sole_text, COLL_NAMES_collection_metadata, COLL_NAMES_course_generation_menu, COLL_NAMES_reserved_names, FIELD_attributes, FIELD_colAndRelPath, FIELD_collection, FIELD_columnNumber, FIELD_commonname, FIELD_containedIds, FIELD_dcmetadata, FIELD_elt_absPath, FIELD_elt_relpath, FIELD_file_absPath, FIELD_file_relpath, FIELD_fileNameFromId, FIELD_fmp, FIELD_id, FIELD_importStrings, FIELD_lastModification, FIELD_lineNumber, FIELD_metadata, FIELD_name, FIELD_relSourceId, FIELD_relTargetId, FIELD_textualContent, FIELD_theoryId, FIELD_theoryName, FIELD_type, FIELD_xmlContent, FIELDVALUE_type_fileObject, FIELDVALUE_type_itemObject, FIELDVALUE_type_theoryObject, modifDateFormat |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlumbFeed
public SlumbFeed(List collectionsToUpdate,
SlumbIndex index,
TheoryCollection globalIdMap)
SlumbFeed
public SlumbFeed(List collections,
SlumbIndex index,
TheoryCollection globalIdMap,
List errorAccumulator)
- Tries to honour
AuthorExtendedMBaseRef.reloadWithErrors(java.util.Collection, java.util.List)
run
public void run()
resolveAndCheckRelations
public static List resolveAndCheckRelations(OJElement root,
Theory enclosingTheory,
TheoryCollection colls,
SlumbIndex index,
ErrorReporter errorReporter,
boolean dryRunForGenImports)
- Central method that walks all references inside this element and absolutizes them
based on the availability of ids provided by colls.
- Parameters:
root - the element from which to compute all referencescolls - the place to check whether IDs will exist
(uses TheoryCollection.containsId(org.activemath.omdocjdom.ID)).errorReporter - where to report unresolved references (not used in dry-run)dryRunForGenImports - set to true while running generate-imports
so that only broken relations are returned
- Returns:
- a list of
SlumbRelation or, if dryRun, a list of (partial IDs)