|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexableResourceFactory
Generic indexable resource factory interface.
API to generate indexable resource instances and resolve them given configuration and target objects on which indexable resources apply.
Method Summary | |
---|---|
IndexableResource |
createEmptyIndexableResource()
Returns an empty indexable resource instance. |
IndexableResource |
createIndexableResourceFrom(java.io.Serializable targetResource,
IndexableResourceConf conf,
java.lang.String sid)
Returns an indexable resource instance given a target object needed by the resource along with its configuration. |
ResolvedResource |
createResolvedResourceFor(java.io.Serializable targetResource,
IndexableResourceConf conf,
java.lang.String sid)
Resolves and returns an indexable resource instance. |
ResolvedResources |
createResolvedResourcesFor(java.io.Serializable targetResource,
IndexableResourceConf conf,
java.lang.String sid)
Resolves an indexable resources and returns an aggregated resolved resources instances. |
ResolvedResource |
resolveResourceFor(IndexableResource resource)
Resolves an indexable resource instance. |
ResolvedResource |
resolveResourceFor(java.io.Serializable targetResource,
IndexableResourceConf conf,
java.lang.String sid)
Resolves and returns an indexable resource instance. |
ResolvedResources |
resolveResourcesFor(IndexableResource resource)
Resolves an indexable resources and returns an aggregated resolved resources instances. |
Method Detail |
---|
IndexableResource createEmptyIndexableResource()
Useful for complete computations of indexable resources outside of the factory.
IndexableResource createIndexableResourceFrom(java.io.Serializable targetResource, IndexableResourceConf conf, java.lang.String sid)
For instance it could be a document model or log entry id or still a relation.
conf
- the bound indexable resource configuration.sid
- optional Nuxeo Core session id. (XXX should be removed from
the signature)targetResource
- the target object on which the indexable resource
applies.
ResolvedResource resolveResourceFor(IndexableResource resource) throws IndexingException
Note the indexable resource instance contains the configuration and the target object on which it applies.
resource
- the indexable resource instance.
IndexingException
ResolvedResource resolveResourceFor(java.io.Serializable targetResource, IndexableResourceConf conf, java.lang.String sid) throws IndexingException
targetResource
- the target object on which the indexable resource
applies.conf
- the indexable resource configurationsid
- optional Nuxeo Core session id. (XXX should be removed from
the signature)
IndexingException
ResolvedResource createResolvedResourceFor(java.io.Serializable targetResource, IndexableResourceConf conf, java.lang.String sid) throws IndexingException
targetResource
- the target object on which the indexable resource
applies.conf
- the indexable resource configurationsid
- optional Nuxeo Core session id. (XXX should be removed from
the signature)
IndexingException
ResolvedResources resolveResourcesFor(IndexableResource resource)
The idea here is to simplify the generations of aggregated resources when only one indexable resource is involved.
resource
- an indexable resource instance.
ResolvedResources createResolvedResourcesFor(java.io.Serializable targetResource, IndexableResourceConf conf, java.lang.String sid) throws IndexingException
The idea here is to simplify the generations of aggregated resources when only one indexable resource is involved.
targetResource
- the target object on which the indexable resource
applies.conf
- the indexable resource configurationsid
- optional Nuxeo Core session id. (XXX should be removed from
the signature)
IndexingException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |