Class IdFactoryLogger
java.lang.Object
org.apache.jackrabbit.spi.commons.logging.AbstractLogger
org.apache.jackrabbit.spi.commons.logging.IdFactoryLogger
- All Implemented Interfaces:
IdFactory
Log wrapper for an
IdFactory.-
Constructor Summary
ConstructorsConstructorDescriptionIdFactoryLogger(IdFactory idFactory, LogWriter writer) Create a new instance for the givenidFactorywhich useswriterfor persisting log messages. -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeId(String uniqueID) Creates a newNodeIdfrom the given unique id.createNodeId(String uniqueID, Path path) Creates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.createNodeId(NodeId parentId, Path path) Creates a newNodeIdfrom the given parent id and the givenPathobject.createPropertyId(NodeId parentId, Name propertyName) Creates a newPropertyIdfrom the given parent id and property name.fromJcrIdentifier(String jcrIdentifier) Create a newNodeIdfrom the given JCR string representation.toJcrIdentifier(NodeId nodeId) Returns the JCR string representation of the givennodeId.
-
Constructor Details
-
IdFactoryLogger
Create a new instance for the givenidFactorywhich useswriterfor persisting log messages.- Parameters:
idFactory-writer-
-
-
Method Details
-
getIdFactory
- Returns:
- the wrapped IdFactory
-
createPropertyId
Description copied from interface:IdFactoryCreates a newPropertyIdfrom the given parent id and property name.- Specified by:
createPropertyIdin interfaceIdFactory- Parameters:
parentId-propertyName-- Returns:
- a new
PropertyId.
-
createNodeId
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given parent id and the givenPathobject.- Specified by:
createNodeIdin interfaceIdFactory- Parameters:
parentId-path-- Returns:
- a new
NodeId.
-
createNodeId
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.- Specified by:
createNodeIdin interfaceIdFactory- Parameters:
uniqueID-path-- Returns:
- a new
NodeId. - See Also:
-
createNodeId
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given unique id.- Specified by:
createNodeIdin interfaceIdFactory- Parameters:
uniqueID-- Returns:
- a new
NodeId. - See Also:
-
toJcrIdentifier
Description copied from interface:IdFactoryReturns the JCR string representation of the givennodeId.- Specified by:
toJcrIdentifierin interfaceIdFactory- Returns:
- a JCR node identifier string.
- See Also:
-
fromJcrIdentifier
Description copied from interface:IdFactoryCreate a newNodeIdfrom the given JCR string representation.- Specified by:
fromJcrIdentifierin interfaceIdFactory- Parameters:
jcrIdentifier-- Returns:
- a new
NodeId. - See Also:
-