public class DleseCollectionDocReader extends XMLDocReader
Document
that was
indexed from a DLESE collection-level metadata record. The index writer that is responsible for creating
this type of Lucene Document
is a DleseCollectionFileIndexingWriter
.DleseCollectionFileIndexingWriter
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
DleseCollectionDocReader.Contributor
A bean that holds information about a DLESE contributor.
|
class |
DleseCollectionDocReader.OrganizationContributor
A bean that holds information about a DLESE contributor that is an organization.
|
class |
DleseCollectionDocReader.PersonContributor
A bean that holds information about a DLESE contributor that is a person.
|
XMLDocReader.VocabUiLabelsCollection
metadataVocab, recordDataService, repositoryManager
Constructor and Description |
---|
DleseCollectionDocReader()
Constructor for the DleseCollectionDocReader object
|
DleseCollectionDocReader(org.apache.lucene.document.Document doc,
SimpleLuceneIndex index)
Constructor that may be used programatically to wrap a reader around a Lucene
Document created by a DleseCollectionFileIndexingWriter . |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccessionDateDate()
Gets the accession date of this collection, or null if this collection is currently not accessioned.
|
java.lang.String |
getAccessionStatus()
Gets the most recent accession status of the collection.
|
java.lang.String |
getAdditionalMetadata()
Gets the additional metadata for this collection that was indicated in
org.dlese.dpc.repository.RepositoryManager.putRecord when the collection was created, or null. |
java.lang.String |
getCollectionsString()
Gets the collection this record is part of, as a string.
|
java.lang.String |
getCollectionUrl()
Gets the collection URL or empty String if none is supplied.
|
DleseCollectionDocReader.Contributor |
getContact()
Gets the contact contributor bean with that contains methods for accessing contributor information (Not
implemented).
|
java.lang.String |
getCost()
Gets the collection's cost.
|
java.lang.String |
getDescription()
Gets the description of the collection.
|
java.lang.String |
getFormatOfRecords()
Gets the format of the records in this collection, for example 'adn'.
|
java.lang.String |
getFullTitle()
Gets the full title of the collection from the XML record.
|
java.lang.String[] |
getGradeRanges()
Gets the GradeRanges associated with this collection, encoded by the vocab manager if it's available.
|
boolean |
getIsEnabled()
Determines whether this collection is currently enabled for viewing.
|
java.lang.String |
getKey()
Gets the collection key used to identify the items in the collection this record refers to.
|
java.lang.String[] |
getKeywords()
Gets the keywords as an array of Strings.
|
java.lang.String |
getKeywordsDisplay()
Gets the keywords a comma separated list terminated with a period suitable for display to users.
|
java.lang.String |
getLocationOfFiles()
Gets the location of the files for this collection on the server.
|
java.lang.String |
getNumFiles()
Gets the number of files for this collection.
|
java.lang.String |
getNumIndexed()
Gets the number of items indexed for this collection.
|
java.lang.String |
getNumIndexingErrors()
Gets the number of indexing errors that were found for this collection.
|
java.lang.String |
getPartOfDRC()
Gets part of DRC status [true or false].
|
java.lang.String |
getReaderType()
Gets the String 'DleseCollectionDocReader,' which is the key that describes this reader type.
|
DleseCollectionDocReader.Contributor |
getResponsibleParty()
Gets the responsibleParty contributor bean with that contains methods for accessing contributor
information.
|
java.lang.String |
getReviewProcess()
Gets the collection's review process statement.
|
java.lang.String |
getReviewProcessUrl()
Gets the URL to the collection's review process statement.
|
java.lang.String |
getScopeUrl()
Gets the url to the collection's scope statement.
|
java.lang.String |
getShortTitle()
Gets the short title of the collection directly from the XML record.
|
java.lang.String[] |
getSubjects()
Gets the subjects associated with this collection, encoded by the vocab manager if it's available.
|
java.lang.String |
getTitle()
Gets the title of the collection, for example 'DLESE Community Collection (DCC)', as indicated by the the
vocab manager.
|
boolean |
isPartOfDRC()
Gets part of DRC status [true or false].
|
getAllIds, getAnnoCollectionKeys, getAnnoFormats, getAnnoPathways, getAnnoRatings, getAnnoStatus, getAnnotationResultDocs, getAnnoTypes, getAssignedByIdRelatedRecordsMap, getAssignedByUrlRelatedRecordsMap, getAssignedRelatedIdsOfType, getAssignedRelatedUrlsOfType, getAssignedRelationshipByIdTypes, getAssignedRelationshipByUrlTypes, getAssignedRelationshipsForItemsMap, getAssociatedIds, getAudioAnnosInProgress, getAvailableFormats, getAverageAnnoRating, getAverageAnnoRatingFloat, getCanDissiminateFormat, getCollection, getCollectionKey, getCollectionKeys, getCollectionLabel, getCollections, getCompletedAdvice, getCompletedAnnoCollectionKeys, getCompletedAnnos, getCompletedAnnosOfType, getCompletedAnnotation, getCompletedAverageScores, getCompletedBias, getCompletedChallengingSituations, getCompletedChange, getCompletedComment, getCompletedEditorSummaries, getCompletedEducationalStandard, getCompletedExample, getCompletedExplanation, getCompletedQuestion, getCompletedReviews, getCompletedSeeAlso, getCompletedTeachingTips, getDocsource, getFieldId, getGraphicalAnnosInProgress, getHasAssignedRelations, getHasCompletedAnno, getHasInProgressAnno, getHasRelations, getId, getIdEncoded, getIdsOfRecordsWithAssignedRelationships, getIndexedContent, getInProgressAnnosOfFormat, getIsMyCollectionDisabled, getIsMyCollectionEnabled, getMetadataPrefix, getMetadataVocab, getMetadataVocabAudience, getMetadataVocabLanguage, getMultiDoc, getMyCollectionDoc, getMyCollectionsRecordId, getNativeFormat, getNsdlDublinCoreXml, getNumAnnoRatings, getNumAnnoRatingsInt, getNumAudioAnnosInProgress, getNumCompletedAnnos, getNumGraphicalAnnosInProgress, getNumInProgressAnnos, getNumTextAnnosInProgress, getNumVideoAnnosInProgress, getOaiDatestamp, getOaiDublinCoreXml, getOaiLastModifiedString, getOaiSets, getRelatedIdsOfType, getRelatedRecordsMap, getRelationshipTypes, getRequestedXml, getRequestedXmlFormat, getSet, getSets, getSetString, getTextAnnosInProgress, getUiLabelFromVocabId, getUiLabelFromVocabName, getUiLabelsFromVocabIds, getUrl, getValidationReport, getValueId, getVideoAnnosInProgress, getW3CXmlDoc, getWhatsNewDate, getWhatsNewDateDate, getWhatsNewType, getXml, getXmlDoc, getXmlFormat, getXmlLocalized, getXmlStripped, hasAnnotations, hasCompletedAnno, hasCompletedAnnoOfType, hasInProgressAnno, hasInProgressAnnoOfFormat, init, isValid, prtln, prtlnErr, setMetadataVocabAudience, setMetadataVocabLanguage, setRequestedXmlFormat
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, setDebug
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
public DleseCollectionDocReader()
public DleseCollectionDocReader(org.apache.lucene.document.Document doc, SimpleLuceneIndex index)
Document
created by a DleseCollectionFileIndexingWriter
.doc
- A Lucene Document
created by a DleseCollectionFileIndexingWriter
.index
- The index being usedpublic java.lang.String getReaderType()
getReaderType
in class XMLDocReader
public java.lang.String getAdditionalMetadata()
org.dlese.dpc.repository.RepositoryManager.putRecord
when the collection was created, or null.public boolean getIsEnabled()
public java.lang.String getTitle()
getShortTitle()
.getTitle
in class XMLDocReader
public java.lang.String getFullTitle()
public java.lang.String getShortTitle()
public java.lang.String getDescription()
getDescription
in class XMLDocReader
public java.lang.String getFormatOfRecords()
public java.lang.String getKey()
public java.lang.String getAccessionStatus()
public java.util.Date getAccessionDateDate()
public java.lang.String getPartOfDRC()
public boolean isPartOfDRC()
public java.lang.String getCollectionUrl()
public java.lang.String getScopeUrl()
public java.lang.String getReviewProcessUrl()
public java.lang.String getReviewProcess()
public java.lang.String getCost()
public java.lang.String getCollectionsString()
public java.lang.String[] getGradeRanges()
public java.lang.String[] getSubjects()
public java.lang.String[] getKeywords()
public java.lang.String getKeywordsDisplay()
public java.lang.String getLocationOfFiles()
public java.lang.String getNumFiles()
public java.lang.String getNumIndexed()
public java.lang.String getNumIndexingErrors()
public DleseCollectionDocReader.Contributor getContact()
public DleseCollectionDocReader.Contributor getResponsibleParty()