public class FileIndexerAction extends Object implements org.exoplatform.services.jcr.impl.ext.action.AdvancedAction
| Constructor and Description |
|---|
FileIndexerAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyIndexingOperationOnNodes(org.exoplatform.services.jcr.impl.core.NodeImpl node,
Consumer<org.exoplatform.services.jcr.impl.core.NodeImpl> indexingOperation,
Predicate<org.exoplatform.services.jcr.impl.core.NodeImpl> filter)
Apply the given indexing operation (index|reindex|unindex) on all children of a node, only for nt:file nodes
|
boolean |
execute(org.apache.commons.chain.Context context) |
protected javax.jcr.Node |
getNodeByPath(String path) |
void |
onError(Exception e,
org.apache.commons.chain.Context context) |
public boolean execute(org.apache.commons.chain.Context context)
throws Exception
execute in interface org.apache.commons.chain.CommandExceptionpublic void onError(Exception e, org.apache.commons.chain.Context context) throws org.exoplatform.services.jcr.impl.ext.action.AdvancedActionException
onError in interface org.exoplatform.services.jcr.impl.ext.action.AdvancedActionorg.exoplatform.services.jcr.impl.ext.action.AdvancedActionExceptionprotected javax.jcr.Node getNodeByPath(String path)
protected void applyIndexingOperationOnNodes(org.exoplatform.services.jcr.impl.core.NodeImpl node,
Consumer<org.exoplatform.services.jcr.impl.core.NodeImpl> indexingOperation,
Predicate<org.exoplatform.services.jcr.impl.core.NodeImpl> filter)
node - The root node to operate onfilter - skip process node if filter return trueindexingOperation - Indexing operation (index|reindex|unindex) to apply on the nodesCopyright © 2003–2019 eXo Platform SAS. All rights reserved.