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

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

public class RepositoryServiceLogger
extends AbstractLogger
implements RepositoryService

Log wrapper for a RepositoryService.


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
RepositoryServiceLogger(RepositoryService service, LogWriter writer)
          Create a new instance for the given service which uses writer for persisting log messages.
 
Method Summary
 void addVersionLabel(SessionInfo sessionInfo, NodeId versionHistoryId, NodeId versionId, Name label, boolean moveLabel)
           
 NodeId checkin(SessionInfo sessionInfo, NodeId nodeId)
           
 void checkout(SessionInfo sessionInfo, NodeId nodeId)
           
 void checkQueryStatement(SessionInfo sessionInfo, String statement, String language, Map namespaces)
           
 void clone(SessionInfo sessionInfo, String srcWorkspaceName, NodeId srcNodeId, NodeId destParentNodeId, Name destName, boolean removeExisting)
           
 void copy(SessionInfo sessionInfo, String srcWorkspaceName, NodeId srcNodeId, NodeId destParentNodeId, Name destName)
           
 Batch createBatch(SessionInfo sessionInfo, ItemId itemId)
           
 EventFilter createEventFilter(SessionInfo sessionInfo, int eventTypes, Path absPath, boolean isDeep, String[] uuid, Name[] qnodeTypeName, boolean noLocal)
           
 Subscription createSubscription(SessionInfo sessionInfo, EventFilter[] filters)
           
 void dispose(SessionInfo sessionInfo)
           
 void dispose(Subscription subscription)
           
 QueryInfo executeQuery(SessionInfo sessionInfo, String statement, String language, Map namespaces)
           
 Iterator getChildInfos(SessionInfo sessionInfo, NodeId parentId)
           
 EventBundle[] getEvents(Subscription subscription, long timeout)
           
 IdFactory getIdFactory()
           
 Iterator getItemInfos(SessionInfo sessionInfo, NodeId nodeId)
           
 LockInfo getLockInfo(SessionInfo sessionInfo, NodeId nodeId)
           
 NameFactory getNameFactory()
           
 String getNamespacePrefix(SessionInfo sessionInfo, String uri)
           
 String getNamespaceURI(SessionInfo sessionInfo, String prefix)
           
 QNodeDefinition getNodeDefinition(SessionInfo sessionInfo, NodeId nodeId)
           
 NodeInfo getNodeInfo(SessionInfo sessionInfo, NodeId nodeId)
           
 PathFactory getPathFactory()
           
 QPropertyDefinition getPropertyDefinition(SessionInfo sessionInfo, PropertyId propertyId)
           
 PropertyInfo getPropertyInfo(SessionInfo sessionInfo, PropertyId propertyId)
           
 Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo)
           
 Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo, Name[] nodetypeNames)
           
 QValueFactory getQValueFactory()
           
 Map getRegisteredNamespaces(SessionInfo sessionInfo)
           
 Map getRepositoryDescriptors()
           
 RepositoryService getRepositoryService()
           
 String[] getSupportedQueryLanguages(SessionInfo sessionInfo)
           
 String[] getWorkspaceNames(SessionInfo sessionInfo)
           
 SessionInfo impersonate(SessionInfo sessionInfo, Credentials credentials)
           
 void importXml(SessionInfo sessionInfo, NodeId parentId, InputStream xmlStream, int uuidBehaviour)
           
 boolean isGranted(SessionInfo sessionInfo, ItemId itemId, String[] actions)
           
 LockInfo lock(SessionInfo sessionInfo, NodeId nodeId, boolean deep, boolean sessionScoped)
           
 LockInfo lock(SessionInfo sessionInfo, NodeId nodeId, boolean deep, boolean sessionScoped, long timeoutHint, String ownerHint)
           
 Iterator merge(SessionInfo sessionInfo, NodeId nodeId, String srcWorkspaceName, boolean bestEffort)
           
 void move(SessionInfo sessionInfo, NodeId srcNodeId, NodeId destParentNodeId, Name destName)
           
 SessionInfo obtain(Credentials credentials, String workspaceName)
           
 SessionInfo obtain(SessionInfo sessionInfo, String workspaceName)
           
 void refreshLock(SessionInfo sessionInfo, NodeId nodeId)
           
 void registerNamespace(SessionInfo sessionInfo, String prefix, String uri)
           
 void removeVersion(SessionInfo sessionInfo, NodeId versionHistoryId, NodeId versionId)
           
 void removeVersionLabel(SessionInfo sessionInfo, NodeId versionHistoryId, NodeId versionId, Name label)
           
 void resolveMergeConflict(SessionInfo sessionInfo, NodeId nodeId, NodeId[] mergeFailedIds, NodeId[] predecessorIds)
           
 void restore(SessionInfo sessionInfo, NodeId[] nodeIds, boolean removeExisting)
           
 void restore(SessionInfo sessionInfo, NodeId nodeId, NodeId versionId, boolean removeExisting)
           
 void submit(Batch batch)
           
 void unlock(SessionInfo sessionInfo, NodeId nodeId)
           
 void unregisterNamespace(SessionInfo sessionInfo, String uri)
           
 void update(SessionInfo sessionInfo, NodeId nodeId, String srcWorkspaceName)
           
 void updateEventFilters(Subscription subscription, EventFilter[] eventFilters)
           
 
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

RepositoryServiceLogger

public RepositoryServiceLogger(RepositoryService service,
                               LogWriter writer)
Create a new instance for the given service which uses writer for persisting log messages.

Parameters:
service -
writer -
Method Detail

getRepositoryService

public RepositoryService getRepositoryService()
Returns:
the wrapped RepositoryService

getNameFactory

public NameFactory getNameFactory()
                           throws RepositoryException
Specified by:
getNameFactory in interface RepositoryService
Throws:
RepositoryException

getPathFactory

public PathFactory getPathFactory()
                           throws RepositoryException
Specified by:
getPathFactory in interface RepositoryService
Throws:
RepositoryException

getIdFactory

public IdFactory getIdFactory()
                       throws RepositoryException
Specified by:
getIdFactory in interface RepositoryService
Throws:
RepositoryException

getQValueFactory

public QValueFactory getQValueFactory()
                               throws RepositoryException
Specified by:
getQValueFactory in interface RepositoryService
Throws:
RepositoryException

getRepositoryDescriptors

public Map getRepositoryDescriptors()
                             throws RepositoryException
Specified by:
getRepositoryDescriptors in interface RepositoryService
Throws:
RepositoryException

obtain

public SessionInfo obtain(Credentials credentials,
                          String workspaceName)
                   throws RepositoryException
Specified by:
obtain in interface RepositoryService
Throws:
RepositoryException

obtain

public SessionInfo obtain(SessionInfo sessionInfo,
                          String workspaceName)
                   throws RepositoryException
Specified by:
obtain in interface RepositoryService
Throws:
RepositoryException

impersonate

public SessionInfo impersonate(SessionInfo sessionInfo,
                               Credentials credentials)
                        throws RepositoryException
Specified by:
impersonate in interface RepositoryService
Throws:
RepositoryException

dispose

public void dispose(SessionInfo sessionInfo)
             throws RepositoryException
Specified by:
dispose in interface RepositoryService
Throws:
RepositoryException

getWorkspaceNames

public String[] getWorkspaceNames(SessionInfo sessionInfo)
                           throws RepositoryException
Specified by:
getWorkspaceNames in interface RepositoryService
Throws:
RepositoryException

isGranted

public boolean isGranted(SessionInfo sessionInfo,
                         ItemId itemId,
                         String[] actions)
                  throws RepositoryException
Specified by:
isGranted in interface RepositoryService
Throws:
RepositoryException

getNodeDefinition

public QNodeDefinition getNodeDefinition(SessionInfo sessionInfo,
                                         NodeId nodeId)
                                  throws RepositoryException
Specified by:
getNodeDefinition in interface RepositoryService
Throws:
RepositoryException

getPropertyDefinition

public QPropertyDefinition getPropertyDefinition(SessionInfo sessionInfo,
                                                 PropertyId propertyId)
                                          throws RepositoryException
Specified by:
getPropertyDefinition in interface RepositoryService
Throws:
RepositoryException

getNodeInfo

public NodeInfo getNodeInfo(SessionInfo sessionInfo,
                            NodeId nodeId)
                     throws RepositoryException
Specified by:
getNodeInfo in interface RepositoryService
Throws:
RepositoryException

getItemInfos

public Iterator getItemInfos(SessionInfo sessionInfo,
                             NodeId nodeId)
                      throws RepositoryException
Specified by:
getItemInfos in interface RepositoryService
Throws:
RepositoryException

getChildInfos

public Iterator getChildInfos(SessionInfo sessionInfo,
                              NodeId parentId)
                       throws RepositoryException
Specified by:
getChildInfos in interface RepositoryService
Throws:
RepositoryException

getPropertyInfo

public PropertyInfo getPropertyInfo(SessionInfo sessionInfo,
                                    PropertyId propertyId)
                             throws RepositoryException
Specified by:
getPropertyInfo in interface RepositoryService
Throws:
RepositoryException

createBatch

public Batch createBatch(SessionInfo sessionInfo,
                         ItemId itemId)
                  throws RepositoryException
Specified by:
createBatch in interface RepositoryService
Throws:
RepositoryException

submit

public void submit(Batch batch)
            throws RepositoryException
Specified by:
submit in interface RepositoryService
Throws:
RepositoryException

importXml

public void importXml(SessionInfo sessionInfo,
                      NodeId parentId,
                      InputStream xmlStream,
                      int uuidBehaviour)
               throws RepositoryException
Specified by:
importXml in interface RepositoryService
Throws:
RepositoryException

move

public void move(SessionInfo sessionInfo,
                 NodeId srcNodeId,
                 NodeId destParentNodeId,
                 Name destName)
          throws RepositoryException
Specified by:
move in interface RepositoryService
Throws:
RepositoryException

copy

public void copy(SessionInfo sessionInfo,
                 String srcWorkspaceName,
                 NodeId srcNodeId,
                 NodeId destParentNodeId,
                 Name destName)
          throws RepositoryException
Specified by:
copy in interface RepositoryService
Throws:
RepositoryException

update

public void update(SessionInfo sessionInfo,
                   NodeId nodeId,
                   String srcWorkspaceName)
            throws RepositoryException
Specified by:
update in interface RepositoryService
Throws:
RepositoryException

clone

public void clone(SessionInfo sessionInfo,
                  String srcWorkspaceName,
                  NodeId srcNodeId,
                  NodeId destParentNodeId,
                  Name destName,
                  boolean removeExisting)
           throws RepositoryException
Specified by:
clone in interface RepositoryService
Throws:
RepositoryException

getLockInfo

public LockInfo getLockInfo(SessionInfo sessionInfo,
                            NodeId nodeId)
                     throws RepositoryException
Specified by:
getLockInfo in interface RepositoryService
Throws:
RepositoryException

lock

public LockInfo lock(SessionInfo sessionInfo,
                     NodeId nodeId,
                     boolean deep,
                     boolean sessionScoped)
              throws RepositoryException
Specified by:
lock in interface RepositoryService
Throws:
RepositoryException

lock

public LockInfo lock(SessionInfo sessionInfo,
                     NodeId nodeId,
                     boolean deep,
                     boolean sessionScoped,
                     long timeoutHint,
                     String ownerHint)
              throws RepositoryException
Specified by:
lock in interface RepositoryService
Throws:
RepositoryException

refreshLock

public void refreshLock(SessionInfo sessionInfo,
                        NodeId nodeId)
                 throws RepositoryException
Specified by:
refreshLock in interface RepositoryService
Throws:
RepositoryException

unlock

public void unlock(SessionInfo sessionInfo,
                   NodeId nodeId)
            throws RepositoryException
Specified by:
unlock in interface RepositoryService
Throws:
RepositoryException

checkin

public NodeId checkin(SessionInfo sessionInfo,
                      NodeId nodeId)
               throws RepositoryException
Specified by:
checkin in interface RepositoryService
Throws:
RepositoryException

checkout

public void checkout(SessionInfo sessionInfo,
                     NodeId nodeId)
              throws RepositoryException
Specified by:
checkout in interface RepositoryService
Throws:
RepositoryException

removeVersion

public void removeVersion(SessionInfo sessionInfo,
                          NodeId versionHistoryId,
                          NodeId versionId)
                   throws RepositoryException
Specified by:
removeVersion in interface RepositoryService
Throws:
RepositoryException

restore

public void restore(SessionInfo sessionInfo,
                    NodeId nodeId,
                    NodeId versionId,
                    boolean removeExisting)
             throws RepositoryException
Specified by:
restore in interface RepositoryService
Throws:
RepositoryException

restore

public void restore(SessionInfo sessionInfo,
                    NodeId[] nodeIds,
                    boolean removeExisting)
             throws RepositoryException
Specified by:
restore in interface RepositoryService
Throws:
RepositoryException

merge

public Iterator merge(SessionInfo sessionInfo,
                      NodeId nodeId,
                      String srcWorkspaceName,
                      boolean bestEffort)
               throws RepositoryException
Specified by:
merge in interface RepositoryService
Throws:
RepositoryException

resolveMergeConflict

public void resolveMergeConflict(SessionInfo sessionInfo,
                                 NodeId nodeId,
                                 NodeId[] mergeFailedIds,
                                 NodeId[] predecessorIds)
                          throws RepositoryException
Specified by:
resolveMergeConflict in interface RepositoryService
Throws:
RepositoryException

addVersionLabel

public void addVersionLabel(SessionInfo sessionInfo,
                            NodeId versionHistoryId,
                            NodeId versionId,
                            Name label,
                            boolean moveLabel)
                     throws RepositoryException
Specified by:
addVersionLabel in interface RepositoryService
Throws:
RepositoryException

removeVersionLabel

public void removeVersionLabel(SessionInfo sessionInfo,
                               NodeId versionHistoryId,
                               NodeId versionId,
                               Name label)
                        throws RepositoryException
Specified by:
removeVersionLabel in interface RepositoryService
Throws:
RepositoryException

getSupportedQueryLanguages

public String[] getSupportedQueryLanguages(SessionInfo sessionInfo)
                                    throws RepositoryException
Specified by:
getSupportedQueryLanguages in interface RepositoryService
Throws:
RepositoryException

checkQueryStatement

public void checkQueryStatement(SessionInfo sessionInfo,
                                String statement,
                                String language,
                                Map namespaces)
                         throws RepositoryException
Specified by:
checkQueryStatement in interface RepositoryService
Throws:
RepositoryException

executeQuery

public QueryInfo executeQuery(SessionInfo sessionInfo,
                              String statement,
                              String language,
                              Map namespaces)
                       throws RepositoryException
Specified by:
executeQuery in interface RepositoryService
Throws:
RepositoryException

createEventFilter

public EventFilter createEventFilter(SessionInfo sessionInfo,
                                     int eventTypes,
                                     Path absPath,
                                     boolean isDeep,
                                     String[] uuid,
                                     Name[] qnodeTypeName,
                                     boolean noLocal)
                              throws RepositoryException
Specified by:
createEventFilter in interface RepositoryService
Throws:
RepositoryException

createSubscription

public Subscription createSubscription(SessionInfo sessionInfo,
                                       EventFilter[] filters)
                                throws RepositoryException
Specified by:
createSubscription in interface RepositoryService
Throws:
RepositoryException

getEvents

public EventBundle[] getEvents(Subscription subscription,
                               long timeout)
                        throws RepositoryException,
                               InterruptedException
Specified by:
getEvents in interface RepositoryService
Throws:
RepositoryException
InterruptedException

updateEventFilters

public void updateEventFilters(Subscription subscription,
                               EventFilter[] eventFilters)
                        throws RepositoryException
Specified by:
updateEventFilters in interface RepositoryService
Throws:
RepositoryException

dispose

public void dispose(Subscription subscription)
             throws RepositoryException
Specified by:
dispose in interface RepositoryService
Throws:
RepositoryException

getRegisteredNamespaces

public Map getRegisteredNamespaces(SessionInfo sessionInfo)
                            throws RepositoryException
Specified by:
getRegisteredNamespaces in interface RepositoryService
Throws:
RepositoryException

getNamespaceURI

public String getNamespaceURI(SessionInfo sessionInfo,
                              String prefix)
                       throws RepositoryException
Specified by:
getNamespaceURI in interface RepositoryService
Throws:
RepositoryException

getNamespacePrefix

public String getNamespacePrefix(SessionInfo sessionInfo,
                                 String uri)
                          throws RepositoryException
Specified by:
getNamespacePrefix in interface RepositoryService
Throws:
RepositoryException

registerNamespace

public void registerNamespace(SessionInfo sessionInfo,
                              String prefix,
                              String uri)
                       throws RepositoryException
Specified by:
registerNamespace in interface RepositoryService
Throws:
RepositoryException

unregisterNamespace

public void unregisterNamespace(SessionInfo sessionInfo,
                                String uri)
                         throws RepositoryException
Specified by:
unregisterNamespace in interface RepositoryService
Throws:
RepositoryException

getQNodeTypeDefinitions

public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo)
                                 throws RepositoryException
Specified by:
getQNodeTypeDefinitions in interface RepositoryService
Throws:
RepositoryException

getQNodeTypeDefinitions

public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo,
                                        Name[] nodetypeNames)
                                 throws RepositoryException
Specified by:
getQNodeTypeDefinitions in interface RepositoryService
Throws:
RepositoryException


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