org.alfresco.jcr.repository
Class RepositoryImpl

java.lang.Object
  extended by org.alfresco.jcr.repository.RepositoryImpl
All Implemented Interfaces:
javax.jcr.Repository

public class RepositoryImpl
extends java.lang.Object
implements javax.jcr.Repository

Alfresco implementation of a JCR Repository


Field Summary
 
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
RepositoryImpl()
           
 
Method Summary
 void deregisterSession()
          De-register current active session
 java.lang.String getDescriptor(java.lang.String key)
           
 java.lang.String[] getDescriptorKeys()
           
 ImporterComponent getImporterComponent()
          Get the importer component
 NamespaceRegistryImpl getNamespaceRegistry()
          Get the Namespace Registry
 ServiceRegistry getServiceRegistry()
          Get the service registry
 void init()
          Initialisation
 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)
           
 void setDefaultWorkspace(java.lang.String defaultWorkspace)
          Sets the Default Workspace
 void setImporterComponent(ImporterComponent importerComponent)
          Set the Importer Component
 void setServiceRegistry(ServiceRegistry serviceRegistry)
          Set the service registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryImpl

public RepositoryImpl()
Method Detail

setServiceRegistry

public void setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry

Parameters:
serviceRegistry -

setImporterComponent

public void setImporterComponent(ImporterComponent importerComponent)
Set the Importer Component

Parameters:
importerComponent -

setDefaultWorkspace

public void setDefaultWorkspace(java.lang.String defaultWorkspace)
Sets the Default Workspace

Parameters:
defaultWorkspace - default workspace

init

public void init()
Initialisation


getServiceRegistry

public ServiceRegistry getServiceRegistry()
Get the service registry

Returns:
the service registry

getImporterComponent

public ImporterComponent getImporterComponent()
Get the importer component

Returns:
the importer component

getNamespaceRegistry

public NamespaceRegistryImpl getNamespaceRegistry()
Get the Namespace Registry


getDescriptorKeys

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

getDescriptor

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

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

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

deregisterSession

public void deregisterSession()
De-register current active session



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.