public interface UgcNodeIndexerExtension
Modifier and Type | Method and Description |
---|---|
boolean |
checkEventModifiesIndex(Event event)
Check the event and return true if it indicates data has been modified that affects the index.
|
boolean |
checkNode(Node node)
Check the node and return true if the node belongs in this index.
|
boolean |
checkPrimaryType(NodeType primaryType)
Check the primary type and return true if the node belongs in this index.
|
boolean |
checkResource(Resource resource)
Check the resource and return true if the node belongs in this index.
|
boolean |
checkResourceType(String resourceType)
Check the resource type and return true if the node belongs in this index.
|
List<UgcIndexProperty> |
getAllUgcIndexProperties(ResourceResolver resolver,
Node node)
Given a node, return a list of UgcIndexProperties.
|
String |
getIncludePaths()
Return the include paths that should be observed for events to trigger indexing.
|
String |
getName()
Return the name of the index.
|
String[] |
getPrimaryTypes()
Return the node types that should be observed for events to trigger indexing.
|
List<UgcCategoryProperty> |
getUgcIndexedCategories(ResourceResolver resolver,
Node node)
Given a node, return a list of Ugc Indexed Categories.
|
boolean |
isEnabled()
Is this indexer extension enabled?
|
boolean |
suppportFacetedSearch()
For Index extensonions that would need faceted search, this method should be overridden to return true.
|
boolean checkPrimaryType(NodeType primaryType)
primaryType
- the node type to check.boolean checkResourceType(String resourceType)
resourceType
- the resource type to check.boolean checkResource(Resource resource)
resource
- the resource to check.boolean checkNode(Node node)
node
- the node to check.boolean checkEventModifiesIndex(Event event)
event
- Event to check.List<UgcIndexProperty> getAllUgcIndexProperties(ResourceResolver resolver, Node node) throws RepositoryException
resolver
- the ResourceResolver.node
- the node being indexed.RepositoryException
- thrown if there are issues with repository.List<UgcCategoryProperty> getUgcIndexedCategories(ResourceResolver resolver, Node node) throws RepositoryException
resolver
- the ResourceResolver.node
- the node being indexed.RepositoryException
- thrown if there are issues with repository.String getName()
String[] getPrimaryTypes()
String getIncludePaths()
boolean suppportFacetedSearch()
boolean isEnabled()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"