@Service(value="documentService") public class IndexingDocumentService extends java.lang.Object implements DelegatingByTypeDocumentService
| Constructor and Description |
|---|
IndexingDocumentService(DelegatingByTypeDocumentService defaultDelegatingByTypeDocumentService,
DocumentIndexer documentIndexer,
DocumentMapper documentMapper,
DocumentsCache documentsCache) |
| Modifier and Type | Method and Description |
|---|---|
Document |
copy(int docId) |
Document |
createNewDocument(Meta.DocumentType type,
java.lang.Integer parentDocId) |
void |
deleteByDocId(java.lang.Integer docIdToDelete) |
Document |
get(int docId) |
org.apache.solr.common.SolrInputDocument |
index(int docId) |
boolean |
publishDocument(int docId,
int userId) |
Document |
save(Document saveMe)
Saves document to DB.
|
public IndexingDocumentService(DelegatingByTypeDocumentService defaultDelegatingByTypeDocumentService, DocumentIndexer documentIndexer, DocumentMapper documentMapper, DocumentsCache documentsCache)
public Document get(int docId) throws DocumentNotExistException
get in interface BasicDocumentService<Document>DocumentNotExistExceptionpublic boolean publishDocument(int docId,
int userId)
publishDocument in interface BasicDocumentService<Document>public org.apache.solr.common.SolrInputDocument index(int docId)
index in interface BasicDocumentService<Document>public Document copy(int docId)
copy in interface BasicDocumentService<Document>public void deleteByDocId(java.lang.Integer docIdToDelete)
deleteByDocId in interface DeleterByDocumentIdpublic Document save(Document saveMe)
DocumentSaversave in interface DocumentSaver<Document>saveMe - document to be savedpublic Document createNewDocument(Meta.DocumentType type, java.lang.Integer parentDocId)
createNewDocument in interface TypedDocumentCreatingService<Document>