Class IdFactoryLogger
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.logging.AbstractLogger
-
- org.apache.jackrabbit.spi.commons.logging.IdFactoryLogger
-
- All Implemented Interfaces:
IdFactory
public class IdFactoryLogger extends AbstractLogger implements IdFactory
Log wrapper for anIdFactory
.
-
-
Constructor Summary
Constructors Constructor Description IdFactoryLogger(IdFactory idFactory, LogWriter writer)
Create a new instance for the givenidFactory
which useswriter
for persisting log messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeId
createNodeId(java.lang.String uniqueID)
Creates a newNodeId
from the given unique id.NodeId
createNodeId(java.lang.String uniqueID, Path path)
Creates a newNodeId
from the given unique id (which identifies an ancestorNode
) and the givenPath
object.NodeId
createNodeId(NodeId parentId, Path path)
Creates a newNodeId
from the given parent id and the givenPath
object.PropertyId
createPropertyId(NodeId parentId, Name propertyName)
Creates a newPropertyId
from the given parent id and property name.NodeId
fromJcrIdentifier(java.lang.String jcrIdentifier)
Create a newNodeId
from the given JCR string representation.IdFactory
getIdFactory()
java.lang.String
toJcrIdentifier(NodeId nodeId)
Returns the JCR string representation of the givennodeId
.
-
-
-
Method Detail
-
getIdFactory
public IdFactory getIdFactory()
- Returns:
- the wrapped IdFactory
-
createPropertyId
public PropertyId createPropertyId(NodeId parentId, Name propertyName)
Description copied from interface:IdFactory
Creates a newPropertyId
from the given parent id and property name.- Specified by:
createPropertyId
in interfaceIdFactory
- Returns:
- a new
PropertyId
.
-
createNodeId
public NodeId createNodeId(NodeId parentId, Path path)
Description copied from interface:IdFactory
Creates a newNodeId
from the given parent id and the givenPath
object.- Specified by:
createNodeId
in interfaceIdFactory
- Returns:
- a new
NodeId
.
-
createNodeId
public NodeId createNodeId(java.lang.String uniqueID, Path path)
Description copied from interface:IdFactory
Creates a newNodeId
from the given unique id (which identifies an ancestorNode
) and the givenPath
object.- Specified by:
createNodeId
in interfaceIdFactory
- Returns:
- a new
NodeId
. - See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.
-
createNodeId
public NodeId createNodeId(java.lang.String uniqueID)
Description copied from interface:IdFactory
Creates a newNodeId
from the given unique id.- Specified by:
createNodeId
in interfaceIdFactory
- Returns:
- a new
NodeId
. - See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.
-
toJcrIdentifier
public java.lang.String toJcrIdentifier(NodeId nodeId)
Description copied from interface:IdFactory
Returns the JCR string representation of the givennodeId
.- Specified by:
toJcrIdentifier
in interfaceIdFactory
- Returns:
- a JCR node identifier string.
- See Also:
IdFactory.fromJcrIdentifier(String)
-
fromJcrIdentifier
public NodeId fromJcrIdentifier(java.lang.String jcrIdentifier)
Description copied from interface:IdFactory
Create a newNodeId
from the given JCR string representation.- Specified by:
fromJcrIdentifier
in interfaceIdFactory
- Returns:
- a new
NodeId
. - See Also:
IdFactory.toJcrIdentifier(NodeId)
-
-