org.nuxeo.ecm.core.search.api.client.indexing.resources.document.impl
Class AbstractNXCoreIndexableResource
java.lang.Object
org.nuxeo.ecm.core.search.api.client.indexing.resources.AbstractIndexableResource
org.nuxeo.ecm.core.search.api.client.indexing.resources.document.impl.AbstractNXCoreIndexableResource
- All Implemented Interfaces:
- Serializable, NXCoreIndexableResource, IndexableResource
- Direct Known Subclasses:
- DocumentIndexableResourceImpl, RelationIndexableResourceImpl
public abstract class AbstractNXCoreIndexableResource
- extends AbstractIndexableResource
- implements NXCoreIndexableResource
Abstract Nuxeo Core indexable resource implementation.
Indexable resource that wish to communicate with Nuxeo Core can extend this
class.
- Author:
- Julien Anguenot
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
coreSession
protected CoreSession coreSession
docRepositoryName
protected final String docRepositoryName
sid
protected final String sid
AbstractNXCoreIndexableResource
protected AbstractNXCoreIndexableResource()
AbstractNXCoreIndexableResource
protected AbstractNXCoreIndexableResource(String name,
IndexableResourceConf configuration)
AbstractNXCoreIndexableResource
protected AbstractNXCoreIndexableResource(String name,
IndexableResourceConf configuration,
String sid,
String docRepositoryName)
getCoreSession
public CoreSession getCoreSession()
throws IndexingException
- Description copied from interface:
NXCoreIndexableResource
- Returns a Nuxeo core session.
This is the implementation job to either authenticate or reuse a new
existing session. Check implementation for details.
- Specified by:
getCoreSession in interface NXCoreIndexableResource
- Returns:
- a initialized
CoreSession instance.
- Throws:
IndexingException
closeCoreSession
public void closeCoreSession()
throws IndexingException
- Close the core session only if it was not managed externally, i.e.
managedSessionId was not explicitly provided to the resource constructor
- Specified by:
closeCoreSession in interface NXCoreIndexableResource
- Throws:
IndexingException
getDocRepositoryName
public String getDocRepositoryName()
- Description copied from interface:
NXCoreIndexableResource
- Returns the repository identifier where the document is stored.
- Specified by:
getDocRepositoryName in interface NXCoreIndexableResource
- Returns:
- the repository identifier
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.