Deprecated API


Contents
Deprecated Interfaces
org.apache.jackrabbit.api.JackrabbitNodeTypeManager
          Use standard JCR 2.0 API methods defined by NodeTypeManager instead. 
org.apache.jackrabbit.spi.commons.namespace.NamespaceListener
          https://issues.apache.org/jira/browse/JCR-1700 
org.apache.jackrabbit.api.XASession
          An XA-enabled session should directly implement the XAResource interface 
 

Deprecated Classes
org.apache.jackrabbit.spi.commons.namespace.AbstractNamespaceResolver
          https://issues.apache.org/jira/browse/JCR-1700 
org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.db.DatabasePersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.commons.GenericRepositoryFactory
           
org.apache.jackrabbit.core.persistence.mem.InMemPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.rmi.jackrabbit.JackrabbitClientAdapterFactory
          Use the normal ClientAdapterFactory instead 
org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem
          This class should not be used because it is not database vendor specific. Each DatabaseFileSystem now supports getting the connection via JNDI by setting the driver to javax.naming.InitialContext and the URL to the JNDI name.

Database file system that uses JNDI to acquire the database connection. The JNDI location of the DataSource to be used in given as the dataSourceLocation configuration property. See the DbFileSystem for more configuration details.

WARNING: The acquired database connection is kept for the entire lifetime of the file system instance. The configured data source should be prepared for this. 

org.apache.jackrabbit.core.journal.JNDIDatabaseJournal
          This class should not be used because it is not database vendor specific. Each DatabaseJournal now supports getting the connection via JNDI by setting the driver to javax.naming.InitialContext and the URL to the JNDI name.

Database journal that uses JNDI to acquire the database connection. The JNDI location of the DataSource to be used in given as the dataSourceLocation configuration property.

WARNING: The acquired database connection is kept for the entire lifetime of the journal instance. The configured data source should be prepared for this. 

org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.db.MSSqlPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.obj.ObjectPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.spi.commons.query.sql2.Parser
          use Parser instead. 
org.apache.jackrabbit.core.fs.RandomAccessOutputStream
          this class should no longer be used 
org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
org.apache.jackrabbit.core.persistence.xml.XMLPersistenceManager
          Please migrate to a bundle persistence manager (JCR-2802) 
 

Deprecated Fields
org.apache.jackrabbit.core.query.lucene.SearchIndex.DEFAULT_EXTRACTOR_POOL_SIZE
          this value is not used anymore. Instead the default value is calculated as follows: 2 * Runtime.getRuntime().availableProcessors(). 
org.apache.jackrabbit.core.security.AccessManager.READ
            
org.apache.jackrabbit.core.security.AccessManager.REMOVE
            
org.apache.jackrabbit.core.security.AccessManager.WRITE
            
 

Deprecated Methods
org.apache.jackrabbit.webdav.property.PropContainer.addContent(Object)
          Use {@link #addContent(PropEntry) instead. 
org.apache.jackrabbit.spi.commons.query.OrderQueryNode.addOrderSpec(Name, boolean)
          use OrderQueryNode.addOrderSpec(Path , boolean) instead. 
org.apache.jackrabbit.core.query.lucene.NodeIndexer.addStringValue(Document, String, Object)
          Use addStringValue(Document, String, Object, boolean) instead. 
org.apache.jackrabbit.core.query.lucene.NodeIndexer.addStringValue(Document, String, Object, boolean, boolean, float)
          use NodeIndexer.addStringValue(Document, String, Object, boolean, boolean, float, boolean) instead. 
org.apache.jackrabbit.core.NodeImpl.cancelMerge(Version)
           
org.apache.jackrabbit.core.NodeImpl.checkin()
           
org.apache.jackrabbit.core.NodeImpl.checkin(Calendar)
           
org.apache.jackrabbit.core.NodeImpl.checkLock()
            
org.apache.jackrabbit.core.NodeImpl.checkout()
           
org.apache.jackrabbit.core.security.AccessManager.checkPermission(ItemId, int)
            
org.apache.jackrabbit.jcr2spi.nodetype.EffectiveNodeType.checkRemoveItemConstraints(Name)
          Use EffectiveNodeType.hasRemoveNodeConstraint(Name) and EffectiveNodeType.hasRemovePropertyConstraint(Name) respectively. 
org.apache.jackrabbit.core.query.lucene.NodeIndexer.createFulltextField(String)
          use NodeIndexer.createFulltextField(String, boolean, boolean) instead. 
org.apache.jackrabbit.core.data.GarbageCollector.deleteUnused()
          use sweep(). 
org.apache.jackrabbit.core.NodeImpl.doneMerge(Version)
           
org.apache.jackrabbit.core.config.RepositoryConfig.getAccessManagerConfig()
          Use SecurityConfig.getAccessManagerConfig() instead. 
org.apache.jackrabbit.core.config.RepositoryConfig.getAppName()
          Use SecurityConfig.getAppName() instead. 
org.apache.jackrabbit.core.NodeImpl.getBaseVersion()
           
org.apache.jackrabbit.spi.commons.query.sql.SimpleCharStream.getColumn()
            
org.apache.jackrabbit.spi.commons.query.xpath.SimpleCharStream.getColumn()
            
org.apache.jackrabbit.core.ItemManager.getItem(Path)
          As of JSR 283, a Path doesn't anymore uniquely identify an Item, therefore ItemManager.getNode(Path) and ItemManager.getProperty(Path) should be used instead. 
org.apache.jackrabbit.spi.commons.query.sql.SimpleCharStream.getLine()
            
org.apache.jackrabbit.spi.commons.query.xpath.SimpleCharStream.getLine()
            
org.apache.jackrabbit.core.config.RepositoryConfig.getLoginModuleConfig()
          Use SecurityConfig.getLoginModuleConfig() instead. 
org.apache.jackrabbit.core.data.db.DbDataStore.getMaxConnections()
            
org.apache.jackrabbit.core.data.GarbageCollector.getPersistenceManagerScan()
          use isPersistenceManagerScan(). 
org.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec.getProperty()
          use OrderQueryNode.OrderSpec.getPropertyPath() instead. 
org.apache.jackrabbit.spi.commons.query.TextsearchQueryNode.getPropertyName()
          Use TextsearchQueryNode.getRelativePath() instead. 
org.apache.jackrabbit.webdav.xml.DomUtil.getQualifiedName(String, Namespace)
          As of 2.0. Please use DomUtil.getExpandedName(String, Namespace) instead. This method was named according to usage of 'qualified name' in JSR 170 that conflicts with the terminology used in XMLNS. As of JCR 2.0 the String consisting of "{" + namespace uri + "}" + localName is called Expanded Name. 
org.apache.jackrabbit.spi.NodeInfo.getReferences()
          Use RepositoryService.getReferences(SessionInfo, NodeId, Name, boolean) instead. 
org.apache.jackrabbit.core.journal.DatabaseJournal.getSchema()
          This method is deprecated; DatabaseJournal.getDatabaseType() should be used instead. 
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.getSchema()
          This method is deprecated; getDatabaseType should be used instead. 
org.apache.jackrabbit.core.query.lucene.SearchIndex.getTextFilterClasses()
            
org.apache.jackrabbit.core.cluster.LockRecord.getUserId()
          User LockRecord.getOwner() instead. 
org.apache.jackrabbit.core.NodeImpl.getVersionHistory()
           
org.apache.jackrabbit.core.virtual.VirtualItemStateProvider.getVirtualRootId()
          use VirtualItemStateProvider.getVirtualRootIds() instead. 
org.apache.jackrabbit.core.security.AccessManager.isGranted(ItemId, int)
            
org.apache.jackrabbit.core.ItemManager.itemExists(Path)
          As of JSR 283, a Path doesn't anymore uniquely identify an Item, therefore ItemManager.nodeExists(Path) and ItemManager.propertyExists(Path) should be used instead. 
org.apache.jackrabbit.core.NodeImpl.merge(String, boolean)
           
org.apache.jackrabbit.core.query.pdf.PDFParser.parse(InputStream, ContentHandler, Metadata)
          This method will be removed in Apache Tika 1.0. 
org.apache.jackrabbit.core.NodeImpl.renameChildNode(Name, int, NodeId, Name)
          use #renameChildNode(NodeId, Name, boolean) 
org.apache.jackrabbit.core.HierarchyManager.resolvePath(Path)
          As of JSR 283, a Path doesn't anymore uniquely identify an Item, therefore HierarchyManager.resolveNodePath(Path) and HierarchyManager.resolvePropertyPath(Path) should be used instead. 
org.apache.jackrabbit.core.NodeImpl.restore(String, boolean)
           
org.apache.jackrabbit.core.WorkspaceImpl.restore(Version[], boolean)
           
org.apache.jackrabbit.core.NodeImpl.restore(Version, boolean)
           
org.apache.jackrabbit.core.NodeImpl.restore(Version, String, boolean)
           
org.apache.jackrabbit.core.NodeImpl.restoreByLabel(String, boolean)
           
org.apache.jackrabbit.core.data.GarbageCollector.scan()
          use mark(). 
org.apache.jackrabbit.core.query.AbstractQueryHandler.setIdleTime(String)
          This parameter is not supported any more. Please use 'maxIdleTime' in the repository configuration. 
org.apache.jackrabbit.core.data.db.DbDataStore.setMaxConnections(int)
            
org.apache.jackrabbit.spi.commons.query.TextsearchQueryNode.setPropertyName(Name)
          Use TextsearchQueryNode.setRelativePath(Path) instead. 
org.apache.jackrabbit.core.data.GarbageCollector.setScanEventListener(ScanEventListener)
          use setMarkEventListener(). 
org.apache.jackrabbit.core.journal.DatabaseJournal.setSchema(String)
          This method is deprecated; DatabaseJournal.getDatabaseType() should be used instead. 
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager.setSchema(String)
          This method is deprecated; setDatabaseType should be used instead. 
org.apache.jackrabbit.core.query.lucene.SearchIndex.setTextFilterClasses(String)
            
 

Deprecated Constructors
org.apache.jackrabbit.spi.commons.EventImpl(int, Path, ItemId, NodeId, Name, Name[], String)
            
org.apache.jackrabbit.spi.commons.ItemInfoImpl(NodeId, Name, Path, boolean)
          Use ItemInfoImpl.ItemInfoImpl(Path, boolean) instead. The parentId is not used any more and the corresponding getter has been removed. 
org.apache.jackrabbit.spi.commons.LockInfoImpl(String, String, boolean, boolean, NodeId)
          Use LockInfoImpl.LockInfoImpl(String, String, boolean, boolean, long, boolean, NodeId) instaed. 
org.apache.jackrabbit.spi.commons.NodeInfoImpl(NodeId, Name, Path, NodeId, int, Name, Name[], Iterator, Iterator, Iterator)
          Use NodeInfoImpl.NodeInfoImpl(Path, NodeId, int, Name, Name[], Iterator, Iterator, Iterator) instead. The parentId is not used any more. 
org.apache.jackrabbit.spi.commons.query.OrderQueryNode.OrderSpec(Name, boolean)
          use OrderSpec#OrderSpec(Path, boolean) instead. 
org.apache.jackrabbit.spi.commons.PropertyInfoImpl(NodeId, Name, Path, PropertyId, int, boolean, QValue[])
          Use PropertyInfoImpl.PropertyInfoImpl(Path, PropertyId, int, boolean, QValue[]) instead. The parentId is not used any more. 
org.apache.jackrabbit.core.util.RepositoryLock(String)
          This constructor is deprecated; use the default constructor and RepositoryLock.init(String) instead. 
 



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