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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
AbstractLogger.Callable, AbstractLogger.SafeCallable
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
writer
-
-
Constructor Summary
Constructors Constructor Description IdFactoryLogger(IdFactory idFactory, LogWriter writer)Create a new instance for the givenidFactorywhich useswriterfor persisting log messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeIdcreateNodeId(String uniqueID)Creates a newNodeIdfrom the given unique id.NodeIdcreateNodeId(String uniqueID, Path path)Creates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.NodeIdcreateNodeId(NodeId parentId, Path path)Creates a newNodeIdfrom the given parent id and the givenPathobject.PropertyIdcreatePropertyId(NodeId parentId, Name propertyName)Creates a newPropertyIdfrom the given parent id and property name.NodeIdfromJcrIdentifier(String jcrIdentifier)Create a newNodeIdfrom the given JCR string representation.IdFactorygetIdFactory()StringtoJcrIdentifier(NodeId nodeId)Returns the JCR string representation of the givennodeId.-
Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
execute, execute
-
-
-
-
Method Detail
-
getIdFactory
public IdFactory getIdFactory()
- Returns:
- the wrapped IdFactory
-
createPropertyId
public PropertyId createPropertyId(NodeId parentId, Name propertyName)
Description copied from interface:IdFactoryCreates a newPropertyIdfrom the given parent id and property name.- Specified by:
createPropertyIdin interfaceIdFactory- Returns:
- a new
PropertyId.
-
createNodeId
public NodeId createNodeId(NodeId parentId, Path path)
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given parent id and the givenPathobject.- Specified by:
createNodeIdin interfaceIdFactory- Returns:
- a new
NodeId.
-
createNodeId
public NodeId createNodeId(String uniqueID, Path path)
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.- Specified by:
createNodeIdin interfaceIdFactory- Returns:
- a new
NodeId. - See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.
-
createNodeId
public NodeId createNodeId(String uniqueID)
Description copied from interface:IdFactoryCreates a newNodeIdfrom the given unique id.- Specified by:
createNodeIdin interfaceIdFactory- Returns:
- a new
NodeId. - See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.
-
toJcrIdentifier
public String toJcrIdentifier(NodeId nodeId)
Description copied from interface:IdFactoryReturns the JCR string representation of the givennodeId.- Specified by:
toJcrIdentifierin interfaceIdFactory- Returns:
- a JCR node identifier string.
- See Also:
IdFactory.fromJcrIdentifier(String)
-
fromJcrIdentifier
public NodeId fromJcrIdentifier(String jcrIdentifier)
Description copied from interface:IdFactoryCreate a newNodeIdfrom the given JCR string representation.- Specified by:
fromJcrIdentifierin interfaceIdFactory- Returns:
- a new
NodeId. - See Also:
IdFactory.toJcrIdentifier(NodeId)
-
-