Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.audit.search.resources.indexing
Class AuditIndexableResourceFactory

java.lang.Object
  extended by org.nuxeo.ecm.core.search.api.client.indexing.resources.AbstractIndexableResourceFactory
      extended by org.nuxeo.ecm.platform.audit.search.resources.indexing.AuditIndexableResourceFactory
All Implemented Interfaces:
java.io.Serializable, IndexableResourceFactory

public class AuditIndexableResourceFactory
extends AbstractIndexableResourceFactory

Audit indexable resource factory.

Author:
Julien Anguenot
See Also:
Serialized Form

Constructor Summary
AuditIndexableResourceFactory()
           
 
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 resolveResourceFor(IndexableResource resource)
          Resolves an indexable resource instance.
 ResolvedResources resolveResourcesFor(IndexableResource resource)
          Resolves an indexable resources and returns an aggregated resolved resources instances.
 
Methods inherited from class org.nuxeo.ecm.core.search.api.client.indexing.resources.AbstractIndexableResourceFactory
createResolvedResourceFor, createResolvedResourcesFor, resolveResourceFor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditIndexableResourceFactory

public AuditIndexableResourceFactory()
Method Detail

createEmptyIndexableResource

public IndexableResource createEmptyIndexableResource()
Description copied from interface: IndexableResourceFactory
Returns an empty indexable resource instance.

Useful for complete computations of indexable resources outside of the factory.

Returns:
an empty indexable resource instance.

createIndexableResourceFrom

public IndexableResource createIndexableResourceFrom(java.io.Serializable targetResource,
                                                     IndexableResourceConf conf,
                                                     java.lang.String sid)
Description copied from interface: IndexableResourceFactory
Returns an indexable resource instance given a target object needed by the resource along with its configuration.

For instance it could be a document model or log entry id or still a relation.

Parameters:
targetResource - the target object on which the indexable resource applies.
conf - the bound indexable resource configuration.
sid - optional Nuxeo Core session id. (XXX should be removed from the signature)
Returns:
an indexable resource instance.

resolveResourceFor

public ResolvedResource resolveResourceFor(IndexableResource resource)
                                    throws IndexingException
Description copied from interface: IndexableResourceFactory
Resolves an indexable resource instance.

Note the indexable resource instance contains the configuration and the target object on which it applies.

Parameters:
resource - the indexable resource instance.
Returns:
a resolved indexable resource instance.
Throws:
IndexingException

resolveResourcesFor

public ResolvedResources resolveResourcesFor(IndexableResource resource)
Description copied from interface: IndexableResourceFactory
Resolves an indexable resources and returns an aggregated resolved resources instances.

The idea here is to simplify the generations of aggregated resources when only one indexable resource is involved.

Parameters:
resource - an indexable resource instance.
Returns:
a resolved indexable resource instance.

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.