public class IdFactoryLogger extends AbstractLogger implements IdFactory
IdFactory
.AbstractLogger.Callable, AbstractLogger.SafeCallable
writer
Constructor and Description |
---|
IdFactoryLogger(IdFactory idFactory,
LogWriter writer)
Create a new instance for the given
idFactory which uses
writer for persisting log messages. |
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. |
IdFactory |
getIdFactory() |
String |
toJcrIdentifier(NodeId nodeId)
Returns the JCR string representation of the given
nodeId . |
execute, execute
public IdFactory getIdFactory()
public PropertyId createPropertyId(NodeId parentId, Name propertyName)
IdFactory
PropertyId
from the given parent id and
property name.createPropertyId
in interface IdFactory
PropertyId
.public NodeId createNodeId(NodeId parentId, Path path)
IdFactory
NodeId
from the given parent id and
the given Path
object.createNodeId
in interface IdFactory
NodeId
.public NodeId createNodeId(String uniqueID, Path path)
IdFactory
NodeId
from the given unique id (which identifies
an ancestor Node
) and the given Path
object.createNodeId
in interface IdFactory
NodeId
.ItemId for a description of the uniqueID defined by the SPI
item identifiers.
public NodeId createNodeId(String uniqueID)
IdFactory
NodeId
from the given unique id.createNodeId
in interface IdFactory
NodeId
.ItemId for a description of the uniqueID defined by the SPI
item identifiers.
public String toJcrIdentifier(NodeId nodeId)
IdFactory
nodeId
.toJcrIdentifier
in interface IdFactory
IdFactory.fromJcrIdentifier(String)
public NodeId fromJcrIdentifier(String jcrIdentifier)
IdFactory
NodeId
from the given JCR string representation.fromJcrIdentifier
in interface IdFactory
NodeId
.IdFactory.toJcrIdentifier(NodeId)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.