Node Find operations:

getNodeById

Searches a node by unique identifier. Only returns the node if userId has access to it, throws NoAccessException otherwise.

// userId is the current user ID
node = contentManager.getNodeById(nodeId, userId);

getNodeByPath

Searches a node by path that userId has access;

// userId is the current user ID
node = contentManager.getNodeByPath(fullPath, userId);

getNodesByDescription

Searches nodes by description that userId has access.

// userId is the current user ID
List nodeList = contentManager.getNodesByDescription(description, userId);

getNodesByName

Searches nodes by name that userId has access. Returns a list because different nodes can have the same name but different parent nodes.

// userId is the current user ID
List nodeList = contentManager.getNodesByName(name, userId);

getNodesByParentNode

Searches nodes by parent node that userId has access. Gets the parentNodeId child nodes.

// userId is the current user ID
List nodeList = contentManager.getNodesByParentNode(parentNodeId, userId);

getRootNodes

Searches root nodes that userId has access.

// userId is the current user ID
List nodes = contentManager.getRootNodes(userId);

Back to CMS User Guide.