public class AddedNodeFact extends AbstractNodeFact implements UpdateableWithNewFacts, ModifiedNodeFact
installedModules, node, operationType, workspace| Constructor and Description |
|---|
AddedNodeFact(AddedNodeFact parentNodeWrapper,
String name,
String type,
org.drools.core.spi.KnowledgeHelper drools) |
AddedNodeFact(AddedNodeFact parentNodeWrapper,
String name,
String type,
org.drools.core.spi.KnowledgeHelper drools,
boolean insert) |
AddedNodeFact(JCRNodeWrapper node) |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(String type,
org.drools.core.spi.KnowledgeHelper drools) |
void |
doUpdate(JCRSessionWrapper s,
List<Updateable> delayedUpdates) |
void |
doUpdate(JCRSessionWrapper s,
List<Updateable> delayedUpdates,
List<Object> newFacts)
Do the update operation in the JCR repository
|
boolean |
equals(Object o) |
AddedNodeFact |
getAncestor(String type) |
String |
getIdentifier()
Returns the UUID of the corresponding node.
|
String |
getName() |
String |
getNodeIdentifier() |
String |
getNodeType() |
long |
getNumberOfChildren() |
String |
getPath()
Returns the corresponding path of the node.
|
List<ChangedPropertyFact> |
getProperties() |
ChangedPropertyFact |
getProperty(String propertyName) |
int |
hashCode() |
void |
removeType(String type,
org.drools.core.spi.KnowledgeHelper drools) |
String |
toString() |
getChildNodes, getContent, getInstalledModules, getLanguage, getMimeType, getNode, getNode, getOperationType, getParent, getSession, getTypes, getWorkspace, recurseOnTypes, recurseOnTypes, recurseOnTypes, setInstalledModules, setOperationTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSession, getWorkspacepublic AddedNodeFact(JCRNodeWrapper node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic AddedNodeFact(AddedNodeFact parentNodeWrapper, String name, String type, org.drools.core.spi.KnowledgeHelper drools) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic AddedNodeFact(AddedNodeFact parentNodeWrapper, String name, String type, org.drools.core.spi.KnowledgeHelper drools, boolean insert) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void doUpdate(JCRSessionWrapper s, List<Updateable> delayedUpdates) throws javax.jcr.RepositoryException
doUpdate in interface Updateablejavax.jcr.RepositoryExceptionpublic void doUpdate(JCRSessionWrapper s, List<Updateable> delayedUpdates, List<Object> newFacts) throws javax.jcr.RepositoryException
UpdateableWithNewFactsdoUpdate in interface UpdateableWithNewFactss - the context nodedelayedUpdates - list of delayed updates that can be fill by the implementation ( for example when the node is locked ), the update need to be performed later.newFacts - list of new facts that need to be insert in the rule engine as a result of the update ( so they can trigger other rules )javax.jcr.RepositoryException - in case of JCR-related errorspublic String getPath() throws javax.jcr.RepositoryException
NodeFactgetPath in interface NodeFactgetPath in class AbstractNodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic String getName() throws javax.jcr.RepositoryException
getName in class AbstractNodeFactjavax.jcr.RepositoryExceptionpublic List<ChangedPropertyFact> getProperties() throws javax.jcr.RepositoryException
getProperties in class AbstractNodeFactjavax.jcr.RepositoryExceptionpublic ChangedPropertyFact getProperty(String propertyName) throws javax.jcr.RepositoryException
getProperty in class AbstractNodeFactjavax.jcr.RepositoryExceptionpublic long getNumberOfChildren()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void addType(String type, org.drools.core.spi.KnowledgeHelper drools) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void removeType(String type, org.drools.core.spi.KnowledgeHelper drools) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic AddedNodeFact getAncestor(String type) throws javax.jcr.RepositoryException
getAncestor in class AbstractNodeFactjavax.jcr.RepositoryExceptionpublic boolean equals(Object o)
equals in class AbstractNodeFactpublic int hashCode()
hashCode in class AbstractNodeFactpublic String getIdentifier() throws javax.jcr.RepositoryException
NodeFactgetIdentifier in interface NodeFactgetIdentifier in class AbstractNodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic String getNodeIdentifier() throws javax.jcr.RepositoryException
getNodeIdentifier in interface ModifiedNodeFactjavax.jcr.RepositoryExceptionpublic String getNodeType() throws javax.jcr.RepositoryException
getNodeType in interface ModifiedNodeFactjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.