Package org.dlese.dpc.index.reader
Class DleseCollectionDocReader
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.DleseCollectionDocReader
- All Implemented Interfaces:
Serializable
A bean for accessing the data stored in a Lucene
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.- Author:
- John Weatherley
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA bean that holds information about a DLESE contributor.classA bean that holds information about a DLESE contributor that is an organization.classA bean that holds information about a DLESE contributor that is a person.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 DleseCollectionDocReader objectDleseCollectionDocReader(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 TypeMethodDescriptionGets the accession date of this collection, or null if this collection is currently not accessioned.Gets the most recent accession status of the collection.Gets the additional metadata for this collection that was indicated inwhen the collection was created, or null.invalid reference
org.dlese.dpc.repository.RepositoryManager.putRecordGets the collection this record is part of, as a string.Gets the collection URL or empty String if none is supplied.Gets the contact contributor bean with that contains methods for accessing contributor information (Not implemented).getCost()Gets the collection's cost.Gets the description of the collection.Gets the format of the records in this collection, for example 'adn'.Gets the full title of the collection from the XML record.String[]Gets the GradeRanges associated with this collection, encoded by the vocab manager if it's available.booleanDetermines whether this collection is currently enabled for viewing.getKey()Gets the collection key used to identify the items in the collection this record refers to.String[]Gets the keywords as an array of Strings.Gets the keywords a comma separated list terminated with a period suitable for display to users.Gets the location of the files for this collection on the server.Gets the number of files for this collection.Gets the number of items indexed for this collection.Gets the number of indexing errors that were found for this collection.Gets part of DRC status [true or false].Gets the String 'DleseCollectionDocReader,' which is the key that describes this reader type.Gets the responsibleParty contributor bean with that contains methods for accessing contributor information.Gets the collection's review process statement.Gets the URL to the collection's review process statement.Gets the url to the collection's scope statement.Gets the short title of the collection directly from the XML record.String[]Gets the subjects associated with this collection, encoded by the vocab manager if it's available.getTitle()Gets the title of the collection, for example 'DLESE Community Collection (DCC)', as indicated by the the vocab manager.booleanGets part of DRC status [true or false].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, getUrl, 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
-
DleseCollectionDocReader
public DleseCollectionDocReader()Constructor for the DleseCollectionDocReader object -
DleseCollectionDocReader
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 'DleseCollectionDocReader,' 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 'DleseCollectionDocReader'.
-
getAdditionalMetadata
Gets the additional metadata for this collection that was indicated inwhen the collection was created, or null.invalid reference
org.dlese.dpc.repository.RepositoryManager.putRecord- Returns:
- The additional metadata as an String (may be an XML String), or null if none.
-
getIsEnabled
public boolean getIsEnabled()Determines whether this collection is currently enabled for viewing.- Returns:
- True if enabled, otherwise false.
-
getTitle
Gets the title of the collection, for example 'DLESE Community Collection (DCC)', as indicated by the the vocab manager. If the vocab manger is not available, returns the same asgetShortTitle().- Overrides:
getTitlein classXMLDocReader- Returns:
- The vocab manager title for this collection
-
getFullTitle
Gets the full title of the collection from the XML record.- Returns:
- The fullTitle value
-
getShortTitle
Gets the short title of the collection directly from the XML record.- Returns:
- The shortTitle value
-
getDescription
Gets the description of the collection.- Overrides:
getDescriptionin classXMLDocReader- Returns:
- The description value
-
getFormatOfRecords
Gets the format of the records in this collection, for example 'adn'.- Returns:
- The format string, for example, adn.
-
getKey
Gets the collection key used to identify the items in the collection this record refers to. For example, dcc or comet. This is NOT the key to the collection this record belogs to.- Returns:
- The Key value
-
getAccessionStatus
Gets the most recent accession status of the collection.- Returns:
- The most recent accession status of the collection.
-
getAccessionDateDate
Gets the accession date of this collection, or null if this collection is currently not accessioned.- Returns:
- The accession date or null if currently not accessioned
-
getPartOfDRC
Gets part of DRC status [true or false].- Returns:
- The String "true" or "false".
-
isPartOfDRC
public boolean isPartOfDRC()Gets part of DRC status [true or false].- Returns:
- True if this collection is part of DRC, false otherwise.
-
getCollectionUrl
Gets the collection URL or empty String if none is supplied.- Returns:
- The url value
-
getScopeUrl
Gets the url to the collection's scope statement.- Returns:
- The scope URL or empty String.
-
getReviewProcessUrl
Gets the URL to the collection's review process statement.- Returns:
- The URL to the collection's review process statement, or empty String if not available.
-
getReviewProcess
Gets the collection's review process statement.- Returns:
- The collection's review process statement, or empty String if not available.
-
getCost
Gets the collection's cost.- Returns:
- The cost of the collection.
-
getCollectionsString
Gets the collection this record is part of, as a string.- Returns:
- The collection.
-
getGradeRanges
Gets the GradeRanges associated with this collection, encoded by the vocab manager if it's available.- Returns:
- The gradeRanges value
-
getSubjects
Gets the subjects associated with this collection, encoded by the vocab manager if it's available.- Returns:
- The subjects value
-
getKeywords
Gets the keywords as an array of Strings. Note that some keywords are actually phrases comprised of multiple words.- Returns:
- The keywords
-
getKeywordsDisplay
Gets the keywords a comma separated list terminated with a period suitable for display to users. For example: ocean, sea, rain.- Returns:
- The keywords displayed suitable for users.
-
getLocationOfFiles
Gets the location of the files for this collection on the server.- Returns:
- The locationOfFiles value
-
getNumFiles
Gets the number of files for this collection.- Returns:
- The numFiles value
-
getNumIndexed
Gets the number of items indexed for this collection.- Returns:
- The numIndexed value
-
getNumIndexingErrors
Gets the number of indexing errors that were found for this collection.- Returns:
- The numIndexingErrors value
-
getContact
Gets the contact contributor bean with that contains methods for accessing contributor information (Not implemented). Note: This is not yet implemented (returns null)!!!- Returns:
- The contact Contributor bean.
-
getResponsibleParty
Gets the responsibleParty contributor bean with that contains methods for accessing contributor information. Note: This is not yet implemented (returns null)!!!- Returns:
- The responsibleParty Contributor bean.
-