org.apache.jackrabbit.spi.commons.logging
Class IdFactoryLogger

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.logging.AbstractLogger
      extended by org.apache.jackrabbit.spi.commons.logging.IdFactoryLogger
All Implemented Interfaces:
IdFactory

public class IdFactoryLogger
extends AbstractLogger
implements IdFactory

Log wrapper for an IdFactory.


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
IdFactoryLogger(IdFactory idFactory, LogWriter writer)
          Create a new instance for the given idFactory which uses writer for persisting log messages.
 
Method Summary
 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.
 
Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
execute, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdFactoryLogger

public IdFactoryLogger(IdFactory idFactory,
                       LogWriter writer)
Create a new instance for the given idFactory which uses writer for persisting log messages.

Parameters:
idFactory -
writer -
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 new PropertyId from the given parent id and property name.

Specified by:
createPropertyId in interface IdFactory
Returns:
a new PropertyId.

createNodeId

public NodeId createNodeId(NodeId parentId,
                           Path path)
Description copied from interface: IdFactory
Creates a new NodeId from the given parent id and the given Path object.

Specified by:
createNodeId in interface IdFactory
Returns:
a new NodeId.

createNodeId

public NodeId createNodeId(String uniqueID,
                           Path path)
Description copied from interface: IdFactory
Creates a new NodeId from the given unique id (which identifies an ancestor Node) and the given Path object.

Specified by:
createNodeId in interface IdFactory
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: IdFactory
Creates a new NodeId from the given unique id.

Specified by:
createNodeId in interface IdFactory
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: IdFactory
Returns the JCR string representation of the given nodeId.

Specified by:
toJcrIdentifier in interface IdFactory
Returns:
a JCR node identifier string.
See Also:
IdFactory.fromJcrIdentifier(String)

fromJcrIdentifier

public NodeId fromJcrIdentifier(String jcrIdentifier)
Description copied from interface: IdFactory
Create a new NodeId from the given JCR string representation.

Specified by:
fromJcrIdentifier in interface IdFactory
Returns:
a new NodeId.
See Also:
IdFactory.toJcrIdentifier(NodeId)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.