# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  org.modeshape.jcr.api.SecurityContext Configure each repository to use a custom AuthenthicationProvider implementation

- Deprecated Classes
  Class and Description
  org.modeshape.common.util.MimeTypeUtil Use a MIME type detection framework, such as Tika
  org.modeshape.jcr.api.SecurityContextCredentials Configure each repository to use a custom AuthenthicationProvider implementation

- Deprecated Fields
  Field and Description
  org.infinispan.schematic.document.Bson.BinaryType.BINARY Use `Bson.BinaryType.GENERAL` instead
  org.modeshape.jcr.RepositoryConfiguration.FieldName.CACHE_TRANSACTION_MANAGER_LOOKUP The transaction manager lookup class should be specified in the Infinispan cache configuration (or in a custom Environment subclass for default caches)
  org.modeshape.jcr.RepositoryConfiguration.FieldName.INDEXING_MODE_SYSTEM_CONTENT use REBUILD_ON_STARTUP document
  org.modeshape.jcr.ModeShapeLexicon.IS_DEEP
  org.modeshape.jcr.ModeShapeLexicon.LOCKED_KEY
  org.modeshape.jcr.RepositoryConfiguration.FieldName.REBUILD_UPON_STARTUP use REBUILD_ON_STARTUP document
  org.modeshape.jcr.RepositoryConfiguration.FieldName.REMOVE_DERIVED_CONTENT_WITH_ORIGINAL
  org.modeshape.jcr.RepositoryConfiguration.Default.REMOVE_DERIVED_CONTENT_WITH_ORIGINAL
  org.modeshape.jcr.ModeShapeLexicon.SESSION_SCOPE
  org.modeshape.sequencer.xsd.XsdSequencer.MimeTypeConstants.XSD
  org.modeshape.sequencer.xsd.XsdSequencer.MimeTypeConstants.XSD_XML

- Deprecated Methods
  Method and Description
  org.modeshape.jcr.LocalEnvironment.createContainer(GlobalConfiguration, Configuration) use `LocalEnvironment.createContainer(GlobalConfigurationBuilder, ConfigurationBuilder)` instead
  org.modeshape.jcr.LocalEnvironment.createDefaultConfiguration() see `LocalEnvironment.createDefaultConfigurationBuilder()`
  org.modeshape.jcr.LocalEnvironment.createGlobalConfiguration() see `LocalEnvironment.createGlobalConfigurationBuilder()`
  org.modeshape.jcr.JcrSession.getNodeByUUID(String)
  org.modeshape.jcr.api.RepositoryFactory.getRepository(String) since 3.4, this method should not be used. Code using it should change to use `RepositoriesContainer` instead
  org.modeshape.jcr.JcrRepositoryFactory.getRepository(String)
  org.modeshape.jcr.api.RepositoryFactory.getRepositoryNames() since 3.4, this method should not be used. Code using it should change to use `RepositoriesContainer` instead
  org.modeshape.jcr.JcrRepositoryFactory.getRepositoryNames()
  org.modeshape.jcr.cache.MutableCachedNode.removedChildren() use `MutableCachedNode.NodeChanges.removedChildren()`
  org.modeshape.jcr.RepositoryConfiguration.Sequencing.removeDerivedContentWithOriginal() because it was never used
  org.modeshape.common.collection.UnmodifiableProperties.save(OutputStream, String) This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via the `store(OutputStream out, String comments)` method or the `storeToXML(OutputStream os, String comment)` method.
  org.modeshape.jcr.api.RepositoryFactory.shutdown() since 3.4, this method should not be used. Code using it should change to use `RepositoriesContainer` instead
  org.modeshape.jcr.JcrRepositoryFactory.shutdown()
  org.modeshape.jcr.api.RepositoryFactory.shutdown(long, TimeUnit) since 3.4, this method should not be used. Code using it should change to use `RepositoriesContainer` instead
  org.modeshape.jcr.JcrRepositoryFactory.shutdown(long, TimeUnit)
  org.infinispan.schematic.internal.io.BsonDataOutput.writeBytes(String) The semantics of `writeBytes(String s)` are considered dangerous. Please use `BsonDataOutput.writeUTF(String s)`, `BsonDataOutput.writeChars(String s)` or another write method instead.

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.