Package org.dlese.dpc.index.reader
Class NewsOppsDocReader
java.lang.Object
org.dlese.dpc.index.reader.DocReader
org.dlese.dpc.index.reader.FileIndexingServiceDocReader
org.dlese.dpc.index.reader.XMLDocReader
org.dlese.dpc.index.reader.NewsOppsDocReader
- All Implemented Interfaces:
Serializable
A bean for accessing the data stored in a Lucene
Document that was
indexed from a DLESE news and opportunities metadata record. The index writer that is responsible for
creating this type of Lucene Document is a NewsOppsFileIndexingWriter.- Author:
- John Weatherley
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dlese.dpc.index.reader.XMLDocReader
XMLDocReader.VocabUiLabelsCollection -
Field Summary
Fields inherited from class org.dlese.dpc.index.reader.XMLDocReader
metadataVocab, recordDataService, repositoryManager -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the NewsOppsDocReader objectNewsOppsDocReader(org.apache.lucene.document.Document doc, SimpleLuceneIndex index) Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aDleseCollectionFileIndexingWriter. -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the announcements attribute of the NewsOppsDocReader objectGets the announcement Url.Gets the applyByDate attribute of the NewsOppsDocReader objectGets the archiveDate attribute of the NewsOppsDocReader objectString[]Gets the audiences attribute of the NewsOppsDocReader objectString[]Gets an array of city state strings for display.Gets the description of the new-opps item.String[]Gets the diversities attribute of the NewsOppsDocReader objectGets the dueDate attribute of the NewsOppsDocReader objectGets the eventStartDate attribute of the NewsOppsDocReader objectGets the eventStopDate attribute of the NewsOppsDocReader objectString[]Gets the keywords attribute of the NewsOppsDocReader objectString[]Gets the locations, which are two character state or country codes, for example 'CO'.Gets the postDate attribute of the NewsOppsDocReader objectGets the String 'NewsOppsDocReader,' which is the key that describes this reader type.Gets the recordCreationtDate attribute of the NewsOppsDocReader objectString[]Gets the sponsors attribute of the NewsOppsDocReader objectgetTitle()Gets the title of the new-opps item.String[]Gets the topics attribute of the NewsOppsDocReader objectgetUrl()The primary URL, which for news opps is the same asgetAnnouncementUrl().Methods inherited from class org.dlese.dpc.index.reader.XMLDocReader
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, getValidationReport, getValueId, getVideoAnnosInProgress, getW3CXmlDoc, getWhatsNewDate, getWhatsNewDateDate, getWhatsNewType, getXml, getXmlDoc, getXmlFormat, getXmlLocalized, getXmlStripped, hasAnnotations, hasCompletedAnno, hasCompletedAnnoOfType, hasInProgressAnno, hasInProgressAnnoOfFormat, init, isValid, prtln, prtlnErr, setMetadataVocabAudience, setMetadataVocabLanguage, setRequestedXmlFormatMethods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, setDebugMethods inherited from class org.dlese.dpc.index.reader.DocReader
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
-
Constructor Details
-
NewsOppsDocReader
public NewsOppsDocReader()Constructor for the NewsOppsDocReader object -
NewsOppsDocReader
Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aDleseCollectionFileIndexingWriter.- Parameters:
doc- A LuceneDocumentcreated by aDleseCollectionFileIndexingWriter.index- The index being used
-
-
Method Details
-
getReaderType
Gets the String 'NewsOppsDocReader,' which is the key that describes this reader type. This may be used in (Struts) beans to determine which type of reader is available for a given search result and thus what data is available for display in the UI. The reader type determines which getter methods are available.- Overrides:
getReaderTypein classXMLDocReader- Returns:
- The String 'NewsOppsDocReader'.
-
getTitle
Gets the title of the new-opps item.- Overrides:
getTitlein classXMLDocReader- Returns:
- The title
-
getDescription
Gets the description of the new-opps item.- Overrides:
getDescriptionin classXMLDocReader- Returns:
- The description
-
getAnnouncementUrl
Gets the announcement Url. Same asgetUrl().- Returns:
- The announcementUrl value
-
getUrl
The primary URL, which for news opps is the same asgetAnnouncementUrl().- Overrides:
getUrlin classXMLDocReader- Returns:
- Same as
getAnnouncementUrl()
-
getAnnouncements
Gets the announcements attribute of the NewsOppsDocReader object- Returns:
- The announcements value
-
getTopics
Gets the topics attribute of the NewsOppsDocReader object- Returns:
- The topics value
-
getKeywords
Gets the keywords attribute of the NewsOppsDocReader object- Returns:
- The keywords value
-
getAudiences
Gets the audiences attribute of the NewsOppsDocReader object- Returns:
- The audiences value
-
getDiversities
Gets the diversities attribute of the NewsOppsDocReader object- Returns:
- The diversities value
-
getLocations
Gets the locations, which are two character state or country codes, for example 'CO'.- Returns:
- The locations value
-
getCityStates
Gets an array of city state strings for display. These are comprised of a city, if provided, followed by a comma followed by the state abbreviation. For example 'Boulder, CO'.- Returns:
- An array of city-state strings, for example 'Boulder, CO'
-
getSponsors
Gets the sponsors attribute of the NewsOppsDocReader object- Returns:
- The sponsors value
-
getEventStartDate
Gets the eventStartDate attribute of the NewsOppsDocReader object- Returns:
- The eventStartDate value
-
getEventStopDate
Gets the eventStopDate attribute of the NewsOppsDocReader object- Returns:
- The eventStopDate value
-
getArchiveDate
Gets the archiveDate attribute of the NewsOppsDocReader object- Returns:
- The archiveDate value
-
getPostDate
Gets the postDate attribute of the NewsOppsDocReader object- Returns:
- The postDate value
-
getRecordCreationtDate
Gets the recordCreationtDate attribute of the NewsOppsDocReader object- Returns:
- The recordCreationtDate value
-
getDueDate
Gets the dueDate attribute of the NewsOppsDocReader object- Returns:
- The dueDate value
-
getApplyByDate
Gets the applyByDate attribute of the NewsOppsDocReader object- Returns:
- The applyByDate value
-