org.apache.jackrabbit.spi.commons
Class AbstractReadableRepositoryService

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.AbstractRepositoryService
      extended by org.apache.jackrabbit.spi.commons.AbstractReadableRepositoryService
All Implemented Interfaces:
RepositoryService

public abstract class AbstractReadableRepositoryService
extends AbstractRepositoryService

AbstractReadableRepositoryService provides an abstract base class where all methods that attempt to write throw an UnsupportedRepositoryOperationException. This class useful for repository service implementation that only provide read access to the underlying content.


Field Summary
protected  Map descriptors
          The repository descriptors.
protected  NamespaceMapping namespaces
          The fixed set of namespaces known to the repository service.
protected  Map nodeTypeDefs
          The fixed set of node type definitions known to the repository service.
protected  QNodeDefinition rootNodeDefinition
          The node definition of the root node.
protected static Set WRITE_ACTIONS
           
protected  List wspNames
          The list of workspaces that this repository service exposes.
 
Constructor Summary
AbstractReadableRepositoryService(Map descriptors, Map namespaces, Reader cnd, List wspNames)
          Creates a new AbstractReadableRepositoryService.
 
Method Summary
 void addVersionLabel(SessionInfo sessionInfo, NodeId versionHistoryId, NodeId versionId, Name label, boolean moveLabel)
           
protected abstract  void checkCredentials(Credentials credentials, String workspaceName)
          Checks if the given credentials are valid.
 NodeId checkin(SessionInfo sessionInfo, NodeId nodeId)
           
 void checkout(SessionInfo sessionInfo, NodeId nodeId)
           
 void checkQueryStatement(SessionInfo sessionInfo, String statement, String language, Map namespaces)
           
protected  void checkSessionInfo(SessionInfo sessionInfo)
          Checks the type of the sessionInfo instance.
 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[] nodeTypeName, boolean noLocal)
           
protected abstract  QNodeDefinition createRootNodeDefinition()
          Create the root node definition.
protected  SessionInfo createSessionInfo(String userId, String workspaceName)
          Creates a session info instance for the given userId and workspaceName.
 Subscription createSubscription(SessionInfo sessionInfo, EventFilter[] filters)
           
 void dispose(SessionInfo sessionInfo)
          This default implementation does nothing.
 void dispose(Subscription subscription)
           
 QueryInfo executeQuery(SessionInfo sessionInfo, String statement, String language, Map namespaces)
           
 EventBundle[] getEvents(Subscription subscription, long timeout)
           
 Iterator getItemInfos(SessionInfo sessionInfo, NodeId nodeId)
          This default implementation returns an iterator over the item infos returned by the call to RepositoryService.getNodeInfo(SessionInfo, NodeId).
 LockInfo getLockInfo(SessionInfo sessionInfo, NodeId nodeId)
           
 String getNamespacePrefix(SessionInfo sessionInfo, String uri)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then return the namespace prefix for the given uri.
 String getNamespaceURI(SessionInfo sessionInfo, String prefix)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the namepsace URI for the given prefix.
 QNodeDefinition getNodeDefinition(SessionInfo sessionInfo, NodeId nodeId)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then lazily initializes rootNodeDefinition if nodeId denotes the root node; otherwise throws a UnsupportedRepositoryOperationException.
 QPropertyDefinition getPropertyDefinition(SessionInfo sessionInfo, PropertyId propertyId)
           
 Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo,
 Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo, Name[] nodetypeNames)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then gathers the QNodeTypeDefinitions with the given nodetypeNames.
 Map getRegisteredNamespaces(SessionInfo sessionInfo)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the prefix to namespace URL mapping that was provided in the constructor of this repository service.
 Map getRepositoryDescriptors()
          This default implementation returns the descriptors that were passed to the constructor of this repository service.
 String[] getSupportedQueryLanguages(SessionInfo sessionInfo)
           
 String[] getWorkspaceNames(SessionInfo sessionInfo)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the workspaces that were passed to the constructor of this repository service.
 SessionInfo impersonate(SessionInfo sessionInfo, Credentials credentials)
          This default implementation returns the session info returned by the call to obtain(Credentials, String) with the workspaceName taken from the passed sessionInfo.
 void importXml(SessionInfo sessionInfo, NodeId parentId, InputStream xmlStream, int uuidBehaviour)
           
 boolean isGranted(SessionInfo sessionInfo, ItemId itemId, String[] actions)
          This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns false if the any of the actions are in WRITE_ACTIONS; otherwise returns true.
 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)
          This default implementation does: calls checkCredentials(Credentials, String) checks if the given workspaceName is in wspNames otherwise throws a NoSuchWorkspaceException. calls createSessionInfo(String, String) with a null userId or the userId from credentials if it is of type SimpleCredentials.
 SessionInfo obtain(SessionInfo sessionInfo, String workspaceName)
          This default implementation returns the session info retuned by the call to createSessionInfo(String, String) with the userId taken from the passed sessionInfo.
 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[] versionIds, 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[] filters)
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.AbstractRepositoryService
getIdFactory, getNameFactory, getPathFactory, getQValueFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jackrabbit.spi.RepositoryService
getChildInfos, getNodeInfo, getPropertyInfo
 

Field Detail

WRITE_ACTIONS

protected static final Set WRITE_ACTIONS

descriptors

protected final Map descriptors
The repository descriptors.


namespaces

protected final NamespaceMapping namespaces
The fixed set of namespaces known to the repository service.


nodeTypeDefs

protected final Map nodeTypeDefs
The fixed set of node type definitions known to the repository service.


rootNodeDefinition

protected QNodeDefinition rootNodeDefinition
The node definition of the root node.


wspNames

protected final List wspNames
The list of workspaces that this repository service exposes.

Constructor Detail

AbstractReadableRepositoryService

public AbstractReadableRepositoryService(Map descriptors,
                                         Map namespaces,
                                         Reader cnd,
                                         List wspNames)
                                  throws RepositoryException,
                                         ParseException
Creates a new AbstractReadableRepositoryService.

Parameters:
descriptors - the repository descriptors. Maps descriptor keys to descriptor values.
namespaces - the namespaces. Maps namespace prefixes to namespace URIs.
cnd - a reader on the compact node type definition.
wspNames - a list of workspace names.
Throws:
RepositoryException - if the namespace mappings are invalid.
ParseException - if an error occurs while parsing the CND.
Method Detail

createRootNodeDefinition

protected abstract QNodeDefinition createRootNodeDefinition()
                                                     throws RepositoryException
Create the root node definition.

Returns:
the root node definition for a workspace.
Throws:
RepositoryException - if an error occurs.

checkCredentials

protected abstract void checkCredentials(Credentials credentials,
                                         String workspaceName)
                                  throws LoginException
Checks if the given credentials are valid.

Parameters:
credentials - the credentials to check.
workspaceName - the workspace to access.
Throws:
LoginException - if the credentials are invalid.

checkSessionInfo

protected void checkSessionInfo(SessionInfo sessionInfo)
                         throws RepositoryException
Checks the type of the sessionInfo instance. This default implementation checks if sessionInfo is of type SessionInfoImpl, otherwise throws a RepositoryException.

Parameters:
sessionInfo - the session info to check.
Throws:
RepositoryException - if the given sessionInfo is not of the required type for this repository service implementation.

createSessionInfo

protected SessionInfo createSessionInfo(String userId,
                                        String workspaceName)
Creates a session info instance for the given userId and workspaceName. This default implementation creates a SessionInfoImpl instance and sets the userId and workspaceName.

Parameters:
userId - the userId.
workspaceName - the name of the workspace to access.
Returns:
a session info instance for the given userId and workspaceName.

obtain

public SessionInfo obtain(Credentials credentials,
                          String workspaceName)
                   throws LoginException,
                          NoSuchWorkspaceException,
                          RepositoryException
This default implementation does:

Parameters:
credentials - the credentials for the login.
workspaceName - the name of the workspace to log in.
Returns:
the session info.
Throws:
LoginException - if the credentials are invalid.
NoSuchWorkspaceException - if workspaceName is unknown.
RepositoryException - if another error occurs.

obtain

public SessionInfo obtain(SessionInfo sessionInfo,
                          String workspaceName)
                   throws LoginException,
                          NoSuchWorkspaceException,
                          RepositoryException
This default implementation returns the session info retuned by the call to createSessionInfo(String, String) with the userId taken from the passed sessionInfo.

Throws:
LoginException
NoSuchWorkspaceException
RepositoryException

impersonate

public SessionInfo impersonate(SessionInfo sessionInfo,
                               Credentials credentials)
                        throws LoginException,
                               RepositoryException
This default implementation returns the session info returned by the call to obtain(Credentials, String) with the workspaceName taken from the passed sessionInfo.

Throws:
LoginException
RepositoryException

dispose

public void dispose(SessionInfo sessionInfo)
             throws RepositoryException
This default implementation does nothing.

Throws:
RepositoryException

getItemInfos

public Iterator getItemInfos(SessionInfo sessionInfo,
                             NodeId nodeId)
                      throws ItemNotFoundException,
                             RepositoryException
This default implementation returns an iterator over the item infos returned by the call to RepositoryService.getNodeInfo(SessionInfo, NodeId).

Throws:
ItemNotFoundException
RepositoryException

getRepositoryDescriptors

public Map getRepositoryDescriptors()
                             throws RepositoryException
This default implementation returns the descriptors that were passed to the constructor of this repository service.

Throws:
RepositoryException

getWorkspaceNames

public String[] getWorkspaceNames(SessionInfo sessionInfo)
                           throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the workspaces that were passed to the constructor of this repository service.

Throws:
RepositoryException

isGranted

public boolean isGranted(SessionInfo sessionInfo,
                         ItemId itemId,
                         String[] actions)
                  throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns false if the any of the actions are in WRITE_ACTIONS; otherwise returns true.

Throws:
RepositoryException

getQNodeTypeDefinitions

public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo)
                                 throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo,

Throws:
RepositoryException

getQNodeTypeDefinitions

public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo,
                                        Name[] nodetypeNames)
                                 throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then gathers the QNodeTypeDefinitions with the given nodetypeNames. If one of the nodetypeNames is not a valid node type definition then a RepositoryException is thrown.

Throws:
RepositoryException

getNodeDefinition

public QNodeDefinition getNodeDefinition(SessionInfo sessionInfo,
                                         NodeId nodeId)
                                  throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then lazily initializes rootNodeDefinition if nodeId denotes the root node; otherwise throws a UnsupportedRepositoryOperationException.

Throws:
RepositoryException

getPropertyDefinition

public QPropertyDefinition getPropertyDefinition(SessionInfo sessionInfo,
                                                 PropertyId propertyId)
                                          throws RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

getRegisteredNamespaces

public Map getRegisteredNamespaces(SessionInfo sessionInfo)
                            throws RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the prefix to namespace URL mapping that was provided in the constructor of this repository service.

Throws:
RepositoryException

getNamespaceURI

public String getNamespaceURI(SessionInfo sessionInfo,
                              String prefix)
                       throws NamespaceException,
                              RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then returns the namepsace URI for the given prefix.

Throws:
NamespaceException
RepositoryException

getNamespacePrefix

public String getNamespacePrefix(SessionInfo sessionInfo,
                                 String uri)
                          throws NamespaceException,
                                 RepositoryException
This default implementation first calls checkSessionInfo(SessionInfo) with the sessionInfo, then return the namespace prefix for the given uri.

Throws:
NamespaceException
RepositoryException

createBatch

public Batch createBatch(SessionInfo sessionInfo,
                         ItemId itemId)
                  throws RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

submit

public void submit(Batch batch)
            throws PathNotFoundException,
                   ItemNotFoundException,
                   NoSuchNodeTypeException,
                   ValueFormatException,
                   VersionException,
                   LockException,
                   ConstraintViolationException,
                   AccessDeniedException,
                   UnsupportedRepositoryOperationException,
                   RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
PathNotFoundException
ItemNotFoundException
NoSuchNodeTypeException
ValueFormatException
VersionException
LockException
ConstraintViolationException
AccessDeniedException
RepositoryException

importXml

public void importXml(SessionInfo sessionInfo,
                      NodeId parentId,
                      InputStream xmlStream,
                      int uuidBehaviour)
               throws ItemExistsException,
                      PathNotFoundException,
                      VersionException,
                      ConstraintViolationException,
                      LockException,
                      AccessDeniedException,
                      UnsupportedRepositoryOperationException,
                      RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
AccessDeniedException
RepositoryException

move

public void move(SessionInfo sessionInfo,
                 NodeId srcNodeId,
                 NodeId destParentNodeId,
                 Name destName)
          throws ItemExistsException,
                 PathNotFoundException,
                 VersionException,
                 ConstraintViolationException,
                 LockException,
                 AccessDeniedException,
                 UnsupportedRepositoryOperationException,
                 RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
AccessDeniedException
RepositoryException

copy

public void copy(SessionInfo sessionInfo,
                 String srcWorkspaceName,
                 NodeId srcNodeId,
                 NodeId destParentNodeId,
                 Name destName)
          throws NoSuchWorkspaceException,
                 ConstraintViolationException,
                 VersionException,
                 AccessDeniedException,
                 PathNotFoundException,
                 ItemExistsException,
                 LockException,
                 UnsupportedRepositoryOperationException,
                 RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

update

public void update(SessionInfo sessionInfo,
                   NodeId nodeId,
                   String srcWorkspaceName)
            throws NoSuchWorkspaceException,
                   AccessDeniedException,
                   LockException,
                   InvalidItemStateException,
                   RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException

clone

public void clone(SessionInfo sessionInfo,
                  String srcWorkspaceName,
                  NodeId srcNodeId,
                  NodeId destParentNodeId,
                  Name destName,
                  boolean removeExisting)
           throws NoSuchWorkspaceException,
                  ConstraintViolationException,
                  VersionException,
                  AccessDeniedException,
                  PathNotFoundException,
                  ItemExistsException,
                  LockException,
                  UnsupportedRepositoryOperationException,
                  RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
ConstraintViolationException
VersionException
AccessDeniedException
PathNotFoundException
ItemExistsException
LockException
RepositoryException

lock

public LockInfo lock(SessionInfo sessionInfo,
                     NodeId nodeId,
                     boolean deep,
                     boolean sessionScoped)
              throws UnsupportedRepositoryOperationException,
                     LockException,
                     AccessDeniedException,
                     RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException

lock

public LockInfo lock(SessionInfo sessionInfo,
                     NodeId nodeId,
                     boolean deep,
                     boolean sessionScoped,
                     long timeoutHint,
                     String ownerHint)
              throws UnsupportedRepositoryOperationException,
                     LockException,
                     AccessDeniedException,
                     RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException

getLockInfo

public LockInfo getLockInfo(SessionInfo sessionInfo,
                            NodeId nodeId)
                     throws AccessDeniedException,
                            RepositoryException
Returns:
null.
Throws:
AccessDeniedException
RepositoryException

refreshLock

public void refreshLock(SessionInfo sessionInfo,
                        NodeId nodeId)
                 throws UnsupportedRepositoryOperationException,
                        LockException,
                        AccessDeniedException,
                        RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException

unlock

public void unlock(SessionInfo sessionInfo,
                   NodeId nodeId)
            throws UnsupportedRepositoryOperationException,
                   LockException,
                   AccessDeniedException,
                   RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
LockException
AccessDeniedException
RepositoryException

checkin

public NodeId checkin(SessionInfo sessionInfo,
                      NodeId nodeId)
               throws VersionException,
                      UnsupportedRepositoryOperationException,
                      InvalidItemStateException,
                      LockException,
                      RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
VersionException
InvalidItemStateException
LockException
RepositoryException

checkout

public void checkout(SessionInfo sessionInfo,
                     NodeId nodeId)
              throws UnsupportedRepositoryOperationException,
                     LockException,
                     RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
LockException
RepositoryException

removeVersion

public void removeVersion(SessionInfo sessionInfo,
                          NodeId versionHistoryId,
                          NodeId versionId)
                   throws ReferentialIntegrityException,
                          AccessDeniedException,
                          UnsupportedRepositoryOperationException,
                          VersionException,
                          RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
ReferentialIntegrityException
AccessDeniedException
VersionException
RepositoryException

restore

public void restore(SessionInfo sessionInfo,
                    NodeId nodeId,
                    NodeId versionId,
                    boolean removeExisting)
             throws VersionException,
                    PathNotFoundException,
                    ItemExistsException,
                    UnsupportedRepositoryOperationException,
                    LockException,
                    InvalidItemStateException,
                    RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
VersionException
PathNotFoundException
ItemExistsException
LockException
InvalidItemStateException
RepositoryException

restore

public void restore(SessionInfo sessionInfo,
                    NodeId[] versionIds,
                    boolean removeExisting)
             throws ItemExistsException,
                    UnsupportedRepositoryOperationException,
                    VersionException,
                    LockException,
                    InvalidItemStateException,
                    RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
ItemExistsException
VersionException
LockException
InvalidItemStateException
RepositoryException

merge

public Iterator merge(SessionInfo sessionInfo,
                      NodeId nodeId,
                      String srcWorkspaceName,
                      boolean bestEffort)
               throws NoSuchWorkspaceException,
                      AccessDeniedException,
                      MergeException,
                      LockException,
                      InvalidItemStateException,
                      RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NoSuchWorkspaceException
AccessDeniedException
MergeException
LockException
InvalidItemStateException
RepositoryException

resolveMergeConflict

public void resolveMergeConflict(SessionInfo sessionInfo,
                                 NodeId nodeId,
                                 NodeId[] mergeFailedIds,
                                 NodeId[] predecessorIds)
                          throws VersionException,
                                 InvalidItemStateException,
                                 UnsupportedRepositoryOperationException,
                                 RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
VersionException
InvalidItemStateException
RepositoryException

addVersionLabel

public void addVersionLabel(SessionInfo sessionInfo,
                            NodeId versionHistoryId,
                            NodeId versionId,
                            Name label,
                            boolean moveLabel)
                     throws VersionException,
                            RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
VersionException
RepositoryException

removeVersionLabel

public void removeVersionLabel(SessionInfo sessionInfo,
                               NodeId versionHistoryId,
                               NodeId versionId,
                               Name label)
                        throws VersionException,
                               RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
VersionException
RepositoryException

createEventFilter

public EventFilter createEventFilter(SessionInfo sessionInfo,
                                     int eventTypes,
                                     Path absPath,
                                     boolean isDeep,
                                     String[] uuid,
                                     Name[] nodeTypeName,
                                     boolean noLocal)
                              throws UnsupportedRepositoryOperationException,
                                     RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

createSubscription

public Subscription createSubscription(SessionInfo sessionInfo,
                                       EventFilter[] filters)
                                throws UnsupportedRepositoryOperationException,
                                       RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

updateEventFilters

public void updateEventFilters(Subscription subscription,
                               EventFilter[] filters)
                        throws RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

getEvents

public EventBundle[] getEvents(Subscription subscription,
                               long timeout)
                        throws RepositoryException,
                               InterruptedException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException
InterruptedException

dispose

public void dispose(Subscription subscription)
             throws RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
RepositoryException

registerNamespace

public void registerNamespace(SessionInfo sessionInfo,
                              String prefix,
                              String uri)
                       throws NamespaceException,
                              UnsupportedRepositoryOperationException,
                              AccessDeniedException,
                              RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NamespaceException
AccessDeniedException
RepositoryException

unregisterNamespace

public void unregisterNamespace(SessionInfo sessionInfo,
                                String uri)
                         throws NamespaceException,
                                UnsupportedRepositoryOperationException,
                                AccessDeniedException,
                                RepositoryException
Throws:
UnsupportedRepositoryOperationException - always.
NamespaceException
AccessDeniedException
RepositoryException

getSupportedQueryLanguages

public String[] getSupportedQueryLanguages(SessionInfo sessionInfo)
                                    throws RepositoryException
Throws:
RepositoryException

checkQueryStatement

public void checkQueryStatement(SessionInfo sessionInfo,
                                String statement,
                                String language,
                                Map namespaces)
                         throws InvalidQueryException,
                                RepositoryException
Throws:
InvalidQueryException
RepositoryException

executeQuery

public QueryInfo executeQuery(SessionInfo sessionInfo,
                              String statement,
                              String language,
                              Map namespaces)
                       throws RepositoryException
Throws:
RepositoryException


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