org.apache.sling.commons.testing.jcr
Class RepositoryUtil.RepositoryWrapper

java.lang.Object
  extended by org.apache.sling.commons.testing.jcr.RepositoryUtil.RepositoryWrapper
All Implemented Interfaces:
javax.jcr.Repository, org.apache.sling.jcr.api.SlingRepository
Enclosing class:
RepositoryUtil

public static final class RepositoryUtil.RepositoryWrapper
extends java.lang.Object
implements org.apache.sling.jcr.api.SlingRepository


Field Summary
protected  javax.jcr.Repository wrapped
           
 
Fields inherited from interface javax.jcr.Repository
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
 
Constructor Summary
RepositoryUtil.RepositoryWrapper(javax.jcr.Repository r)
           
 
Method Summary
 java.lang.String getDefaultWorkspace()
           
 java.lang.String getDescriptor(java.lang.String key)
           
 java.lang.String[] getDescriptorKeys()
           
 javax.jcr.Session login()
           
 javax.jcr.Session login(javax.jcr.Credentials credentials)
           
 javax.jcr.Session login(javax.jcr.Credentials credentials, java.lang.String workspaceName)
           
 javax.jcr.Session login(java.lang.String workspaceName)
           
 javax.jcr.Session loginAdministrative(java.lang.String workspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrapped

protected final javax.jcr.Repository wrapped
Constructor Detail

RepositoryUtil.RepositoryWrapper

public RepositoryUtil.RepositoryWrapper(javax.jcr.Repository r)
Method Detail

getDescriptor

public java.lang.String getDescriptor(java.lang.String key)
Specified by:
getDescriptor in interface javax.jcr.Repository

getDescriptorKeys

public java.lang.String[] getDescriptorKeys()
Specified by:
getDescriptorKeys in interface javax.jcr.Repository

login

public javax.jcr.Session login()
                        throws javax.jcr.LoginException,
                               javax.jcr.RepositoryException
Specified by:
login in interface javax.jcr.Repository
Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException

login

public javax.jcr.Session login(javax.jcr.Credentials credentials,
                               java.lang.String workspaceName)
                        throws javax.jcr.LoginException,
                               javax.jcr.NoSuchWorkspaceException,
                               javax.jcr.RepositoryException
Specified by:
login in interface javax.jcr.Repository
Throws:
javax.jcr.LoginException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException

login

public javax.jcr.Session login(javax.jcr.Credentials credentials)
                        throws javax.jcr.LoginException,
                               javax.jcr.RepositoryException
Specified by:
login in interface javax.jcr.Repository
Throws:
javax.jcr.LoginException
javax.jcr.RepositoryException

login

public javax.jcr.Session login(java.lang.String workspaceName)
                        throws javax.jcr.LoginException,
                               javax.jcr.NoSuchWorkspaceException,
                               javax.jcr.RepositoryException
Specified by:
login in interface javax.jcr.Repository
Throws:
javax.jcr.LoginException
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException

getDefaultWorkspace

public java.lang.String getDefaultWorkspace()
Specified by:
getDefaultWorkspace in interface org.apache.sling.jcr.api.SlingRepository

loginAdministrative

public javax.jcr.Session loginAdministrative(java.lang.String workspace)
                                      throws javax.jcr.RepositoryException
Specified by:
loginAdministrative in interface org.apache.sling.jcr.api.SlingRepository
Throws:
javax.jcr.RepositoryException


Copyright © 2007-2009. All Rights Reserved.