public interface IdFactory
IdFactory
defines methods to construct new ItemId
s.
This factory is intended to build ItemId
s from the parameters
passed to the various create methods and should not make an attempt to
apply additional logic such as e.g. roundtrips to the server or resolution of
Path
s. Similarly the SPI implementation namely the
RepositoryService
must be able to deal with the various formats of
an ItemId
, since a caller may not (yet) be aware of the uniqueID
part of an ItemId.Modifier and Type | Method and Description |
---|---|
NodeId |
createNodeId(NodeId parentId,
Path path)
Creates a new
NodeId from the given parent id and
the given Path object. |
NodeId |
createNodeId(String uniqueID)
Creates a new
NodeId from the given unique id. |
NodeId |
createNodeId(String uniqueID,
Path path)
Creates a new
NodeId from the given unique id (which identifies
an ancestor Node ) and the given Path object. |
PropertyId |
createPropertyId(NodeId parentId,
Name propertyName)
Creates a new
PropertyId from the given parent id and
property name. |
NodeId |
fromJcrIdentifier(String jcrIdentifier)
Create a new
NodeId from the given JCR string representation. |
String |
toJcrIdentifier(NodeId nodeId)
Returns the JCR string representation of the given
nodeId . |
PropertyId createPropertyId(NodeId parentId, Name propertyName)
PropertyId
from the given parent id and
property name.parentId
- propertyName
- PropertyId
.NodeId createNodeId(NodeId parentId, Path path)
NodeId
from the given parent id and
the given Path
object.parentId
- path
- NodeId
.NodeId createNodeId(String uniqueID, Path path)
NodeId
from the given unique id (which identifies
an ancestor Node
) and the given Path
object.uniqueID
- path
- NodeId
.ItemId for a description of the uniqueID defined by the SPI
item identifiers.
NodeId createNodeId(String uniqueID)
NodeId
from the given unique id.uniqueID
- NodeId
.ItemId for a description of the uniqueID defined by the SPI
item identifiers.
String toJcrIdentifier(NodeId nodeId)
nodeId
.fromJcrIdentifier(String)
NodeId fromJcrIdentifier(String jcrIdentifier)
NodeId
from the given JCR string representation.jcrIdentifier
- NodeId
.toJcrIdentifier(NodeId)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.