public abstract class AbstractUgcNodeIndexerExtension extends Object implements UgcNodeIndexerExtension
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ENABLED
The enabled property.
|
Constructor and Description |
---|
AbstractUgcNodeIndexerExtension() |
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.
|
List<UgcCategoryProperty> |
getUgcIndexedCategories(ResourceResolver resolver,
Node node)
Given a node, return a list of Ugc Indexed Categories.
|
abstract List<UgcIndexProperty> |
getUgcIndexProperties(ResourceResolver resolver,
Node node)
Given a node, return a list of UgcIndexProperties.
|
boolean |
isEnabled()
Return true if enabled.
|
boolean |
suppportFacetedSearch()
For Index extensonions that would need faceted search, this method should be overridden to return true
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIncludePaths, getName, getPrimaryTypes
public static final String PROP_ENABLED
public boolean checkPrimaryType(NodeType primaryType)
checkPrimaryType
in interface UgcNodeIndexerExtension
primaryType
- the node type to check.public boolean checkResourceType(String resourceType)
checkResourceType
in interface UgcNodeIndexerExtension
resourceType
- the resource type to check.public boolean checkResource(Resource resource)
checkResource
in interface UgcNodeIndexerExtension
resource
- the resource to check.public boolean checkNode(Node node)
checkNode
in interface UgcNodeIndexerExtension
node
- the node to check.public boolean checkEventModifiesIndex(Event event)
checkEventModifiesIndex
in interface UgcNodeIndexerExtension
event
- Event to check.public boolean isEnabled()
isEnabled
in interface UgcNodeIndexerExtension
public boolean suppportFacetedSearch()
suppportFacetedSearch
in interface UgcNodeIndexerExtension
public List<UgcIndexProperty> getAllUgcIndexProperties(ResourceResolver resolver, Node node) throws RepositoryException
getAllUgcIndexProperties
in interface UgcNodeIndexerExtension
resolver
- the ResourceResolver.node
- the node being indexed.RepositoryException
- thrown if there are issues with repository.public abstract List<UgcIndexProperty> getUgcIndexProperties(ResourceResolver resolver, Node node) throws RepositoryException
resolver
- the ResourceResolver.node
- the node being indexed.RepositoryException
- thrown if there are issues with repository.public List<UgcCategoryProperty> getUgcIndexedCategories(ResourceResolver resolver, Node node) throws RepositoryException
getUgcIndexedCategories
in interface UgcNodeIndexerExtension
resolver
- the ResourceResolver.node
- the node being indexed.RepositoryException
- thrown if there are issues with repository."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"