public abstract class AbstractNodeFact extends Object implements NodeFact
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
installedModules |
protected JCRNodeWrapper |
node |
protected String |
operationType |
protected String |
workspace |
| Constructor and Description |
|---|
AbstractNodeFact(JCRNodeWrapper node) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AddedNodeFact |
getAncestor(String type) |
List<AddedNodeFact> |
getChildNodes() |
AddedNodeFact |
getContent() |
String |
getIdentifier()
Returns the UUID of the corresponding node.
|
List<String> |
getInstalledModules()
returns the list of current installed modules on this site.
|
String |
getLanguage()
Returns the current language.
|
String |
getMimeType() |
String |
getName() |
JCRNodeWrapper |
getNode() |
AddedNodeFact |
getNode(String relPath) |
String |
getOperationType()
Returns the current JCR operation type.
|
AddedNodeFact |
getParent()
Returns the parent node fact.
|
String |
getPath()
Returns the corresponding path of the node.
|
List<ChangedPropertyFact> |
getProperties() |
ChangedPropertyFact |
getProperty(String propertyName) |
JCRSessionWrapper |
getSession()
Returns the session that execute the rule
|
List<String> |
getTypes() |
String |
getWorkspace()
Returns the current JCR workspace name.
|
int |
hashCode() |
protected static List<String> |
recurseOnTypes(List<String> nodeTypeNames) |
protected static void |
recurseOnTypes(List<String> res,
javax.jcr.nodetype.NodeType... nt) |
protected static List<String> |
recurseOnTypes(javax.jcr.nodetype.NodeType primaryNodeType,
javax.jcr.nodetype.NodeType... mixins) |
void |
setInstalledModules(List<String> installedModules) |
void |
setOperationType(String operationType) |
protected JCRNodeWrapper node
protected String workspace
protected String operationType
public AbstractNodeFact(JCRNodeWrapper node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected static void recurseOnTypes(List<String> res, javax.jcr.nodetype.NodeType... nt)
protected static List<String> recurseOnTypes(javax.jcr.nodetype.NodeType primaryNodeType, javax.jcr.nodetype.NodeType... mixins)
public String getIdentifier() throws javax.jcr.RepositoryException
NodeFactgetIdentifier in interface NodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic AddedNodeFact getParent() throws javax.jcr.RepositoryException
NodeFactpublic String getPath() throws javax.jcr.RepositoryException
NodeFactpublic String getName() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic String getWorkspace() throws javax.jcr.RepositoryException
NodeFactgetWorkspace in interface NodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic String getLanguage() throws javax.jcr.RepositoryException
NodeFactgetLanguage in interface NodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic JCRSessionWrapper getSession() throws javax.jcr.RepositoryException
NodeFactgetSession in interface NodeFactjavax.jcr.RepositoryException - in case of JCR-related errorspublic String getOperationType()
getOperationType in interface NodeFactjavax.jcr.RepositoryException - in case of a repository access errorpublic void setOperationType(String operationType)
setOperationType in interface NodeFactpublic List<String> getInstalledModules()
public AddedNodeFact getContent() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic String getMimeType() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic List<AddedNodeFact> getChildNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic List<ChangedPropertyFact> getProperties() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic ChangedPropertyFact getProperty(String propertyName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic List<String> getTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic AddedNodeFact getAncestor(String type) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNode()
public AddedNodeFact getNode(String relPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.