public class SolrContentStore extends Object implements org.alfresco.repo.content.ContentStore
SolrContentUrlBuilder.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SolrContentStore(String solrHome)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String contentUrl) |
boolean |
exists(String contentUrl) |
org.alfresco.service.cmr.repository.ContentReader |
getReader(String contentUrl) |
String |
getRootLocation() |
long |
getSpaceFree() |
long |
getSpaceTotal() |
org.alfresco.service.cmr.repository.ContentWriter |
getWriter(org.alfresco.repo.content.ContentContext context) |
boolean |
isContentUrlSupported(String contentUrl) |
boolean |
isWriteSupported() |
void |
removeDocFromContentStore(NodeMetaData nodeMetaData)
Removes
SolrInputDocument from Alfresco solr content store. |
org.apache.solr.common.SolrInputDocument |
retrieveDocFromSolrContentStore(String tenant,
long dbId)
Retrieve document from SolrContentStore.
|
void |
storeDocOnSolrContentStore(NodeMetaData nodeMetaData,
org.apache.solr.common.SolrInputDocument doc)
Store
SolrInputDocument in to Alfresco solr content store. |
void |
storeDocOnSolrContentStore(String tenant,
long dbId,
org.apache.solr.common.SolrInputDocument doc)
Stores a
SolrInputDocument into Alfresco solr content store. |
public SolrContentStore(String solrHome)
solrHome - public org.apache.solr.common.SolrInputDocument retrieveDocFromSolrContentStore(String tenant, long dbId) throws IOException
tenant - identifierdbId - identifierSolrInputDocument searched documentIOException - if errorpublic boolean isContentUrlSupported(String contentUrl)
isContentUrlSupported in interface org.alfresco.repo.content.ContentStorepublic boolean isWriteSupported()
isWriteSupported in interface org.alfresco.repo.content.ContentStorepublic long getSpaceFree()
getSpaceFree in interface org.alfresco.repo.content.ContentStorepublic long getSpaceTotal()
getSpaceTotal in interface org.alfresco.repo.content.ContentStorepublic String getRootLocation()
getRootLocation in interface org.alfresco.repo.content.ContentStorepublic boolean exists(String contentUrl)
exists in interface org.alfresco.repo.content.ContentStorepublic org.alfresco.service.cmr.repository.ContentReader getReader(String contentUrl)
getReader in interface org.alfresco.repo.content.ContentStorepublic org.alfresco.service.cmr.repository.ContentWriter getWriter(org.alfresco.repo.content.ContentContext context)
getWriter in interface org.alfresco.repo.content.ContentStorepublic boolean delete(String contentUrl)
delete in interface org.alfresco.repo.content.ContentStorepublic void storeDocOnSolrContentStore(String tenant, long dbId, org.apache.solr.common.SolrInputDocument doc) throws IOException
SolrInputDocument into Alfresco solr content store.tenant - dbId - doc - IOExceptionpublic void storeDocOnSolrContentStore(NodeMetaData nodeMetaData, org.apache.solr.common.SolrInputDocument doc) throws IOException
SolrInputDocument in to Alfresco solr content store.nodeMetaData - identifierdoc - to storeIOException - if errorpublic void removeDocFromContentStore(NodeMetaData nodeMetaData)
SolrInputDocument from Alfresco solr content store.nodeMetaData - Copyright © 2005–2020 Alfresco Software. All rights reserved.