Deprecated API


Contents
Deprecated Interfaces
info.magnolia.cms.security.auth.callback.ClientCallback
          since 4.0 - this was never used 
info.magnolia.cms.util.FactoryUtil.InstanceFactory
          since 4.3 - use ComponentFactory 
info.magnolia.cms.link.LinkResolver
          since 4.0 use LinkHelper instead 
info.magnolia.context.MgnlContext.SystemContextOperation
          since 4.2 - use the Op interface, which can return values, or extend VoidOp. 
info.magnolia.cms.link.PathToLinkTransformer
          since 4.0 use LinkTransformer instead. 
 

Deprecated Classes
info.magnolia.cms.link.AbsolutePathTransformer
          since 4.0 use AbsolutePathTransformer instead 
info.magnolia.cms.util.AbstractContentComparator
          since 4.2 - now irrelevant since using generics, implement Comparator instead of extending this. 
info.magnolia.module.delta.AddUserToRoleTask
          since 4.3.7, use AddRoleToUserTask. 
info.magnolia.cms.filters.BackwardCompatibilityFilter
          since 4.3 
info.magnolia.cms.util.ClassUtil
          since 4.3 - see specific methods for replacements. 
info.magnolia.cms.link.CompleteUrlPathTransformer
          since 4.0 use CompleteUrlPathTransformer instead 
info.magnolia.cms.core.ie.DataTransporter
          since 4.0, use DataTransporter 
info.magnolia.voting.voters.DontDispatchOnForwardAttributeVoter
          since 4.4, use WebContainerResources instead 
info.magnolia.cms.security.DummyUser
          since 4.3.6 - usage needs to be reviewed - see MAGNOLIA-3269 
info.magnolia.cms.link.EditorLinkTransformer
          since 4.0 use EditorLinkTransformer instead 
info.magnolia.cms.util.FactoryUtil
          since 4.3 - use Components.getComponentProvider(). 
info.magnolia.cms.util.FactoryUtil.ObservedObjectFactory
          since 4.3 - use ObservedComponentFactory 
info.magnolia.cms.link.LinkHelper
          since 4.0 use instead 
info.magnolia.cms.link.LinkResolver.Factory
          since 4.0 
info.magnolia.cms.link.LinkResolverImpl
          since 4.0 use LinkUtil instead 
info.magnolia.cms.util.LinkUtil
          use LinkUtil instead 
info.magnolia.cms.link.RelativePathTransformer
          since 4.0 use RelativePathTransformer instead 
info.magnolia.cms.util.RequestFormUtil
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. To access uploaded documents, use MultipartForm. 
info.magnolia.cms.beans.config.ShutdownManager
          since 4.0: usage removed. Providers are now shutdown by the ConfigLoader. Modules should handle their own lifecycles since 3.5. 
info.magnolia.cms.i18n.TemplateMessagesUtil
          officially since 4.0 - informally since 3.0 
info.magnolia.cms.link.UUIDLink
          since 4.0 use Link instead 
info.magnolia.voting.Voting.Factory
          since 4.4, use one of the constants 
 

Deprecated Exceptions
info.magnolia.cms.link.UUIDLinkException
          since 4.0 use LinkException instead 
 

Deprecated Fields
info.magnolia.context.WebContext.ATTRIBUTE_REQUEST_CHARACTER_ENCODING
          use AggregationState 
info.magnolia.context.WebContext.ATTRIBUTE_REQUEST_URI
          use AggregationState 
info.magnolia.voting.voters.DontDispatchOnForwardAttributeVoter.DONT_DISPATCH_ON_FORWARD_ATTRIBUTE
          since 4.4, should not be used anymore, replaced by the WebContainerResourcesImpl.WEB_CONTAINER_RESOURCE_MARKER_ATTRIBUTE. 
info.magnolia.objectfactory.ObservedComponentFactory.interf
          since 4.3 - this should be private - use ObservedComponentFactory.getComponentType() instead. (rename to "type" once made private) 
info.magnolia.cms.filters.InterceptFilter.MGNL_PREVIEW_ATTRIBUTE
          added in 4.0 for backward compatibility but should not be public. 
info.magnolia.cms.core.ItemType.NT_CONTENT
          use ItemType.CONTENT 
info.magnolia.cms.core.ItemType.NT_CONTENTNODE
          use ItemType.CONTENTNODE 
info.magnolia.objectfactory.ObservedComponentFactory.observedObject
          since 4.3 - this should be private - use ObservedComponentFactory.getObservedObject() instead. 
 

Deprecated Methods
info.magnolia.cms.beans.runtime.MultipartForm.addParameter(String, Object)
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.beans.runtime.MultipartForm.addparameterValues(String, String[])
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.util.WebXmlUtil.areFilterDispatchersConfiguredProperly(String, List, List)
          since 3.6.4, use checkFilterDispatchersConfiguration() 
info.magnolia.cms.util.ClassUtil.classForName(String)
          since 4.3 - use Classes.getClassFactory(). 
info.magnolia.cms.util.FactoryUtil.clear()
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.clear() 
info.magnolia.cms.link.LinkHelper.convertAbsolutePathToUUID(String)
          use LinkFactory.parseLink(String).getUUID() instead 
info.magnolia.cms.util.LinkUtil.convertUUIDsToAbsoluteLinks(String, boolean)
          use info.magnolia.link.LinkUtil#convertToAbsoluteLinks(String, boolean) instead 
info.magnolia.cms.util.LinkUtil.convertUUIDsToBrowserLinks(String, String)
          use LinkUtil.convertLinksFromUUIDPattern(String, LinkTransformer) instead using BrowserLinkTransformer 
info.magnolia.cms.util.LinkUtil.convertUUIDsToEditorLinks(String)
          use info.magnolia.link.LinkUtil#convertToEditorLinks(String, String) instead 
info.magnolia.cms.util.LinkUtil.convertUUIDsToLinks(String, LinkTransformer)
          use LinkUtil.convertLinksFromUUIDPattern(String, LinkTransformer) instead 
info.magnolia.cms.util.LinkUtil.convertUUIDsToRelativeLinks(String, String)
          use info.magnolia.link.LinkUtil#convertToRelativeLinks(String, String) instead 
info.magnolia.cms.core.Content.createNodeData(String)
          since 4.3, as JCR only supports set or remove operations for properties we recommend to use Content.setNodeData(String, Object) instead. 
info.magnolia.cms.core.Content.createNodeData(String, int)
          since 4.3, as JCR only supports set or remove operations for properties we recommend to use Content.setNodeData(String, Object) instead. 
info.magnolia.cms.core.AbstractContent.createNodeData(String, int)
            
info.magnolia.cms.core.Content.createNodeData(String, Object)
          since 4.3, as JCR only supports set or remove operations for properties we recommend to use Content.setNodeData(String, Object) instead. 
info.magnolia.cms.core.AbstractContent.createNodeData(String, Object)
            
info.magnolia.cms.core.Content.createNodeData(String, Value)
          since 4.3, as JCR only supports set or remove operations for properties we recommend to use Content.setNodeData(String, Value) instead. 
info.magnolia.cms.core.Content.createNodeData(String, Value[])
          since 4.3, as JCR only supports set or remove operations for properties we recommend to use Content.setNodeData(String, Value[]) instead. 
info.magnolia.cms.core.AbstractContent.createNodeData(String, Value[])
            
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.SystemContextOperation)
          since 4.2 - use the Op interface, which can return values, or extend VoidOp. 
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.SystemContextOperation, boolean)
          since 4.2 - use the Op interface, which can return values, or extend VoidOp. 
info.magnolia.cms.i18n.MessagesUtil.generateJavaScript(Messages)
          since 4.0, use generateJavaScript(Writer out, Messages messages) instead. 
info.magnolia.cms.core.ContentHandler.getAccessManager()
          since 4.0 - use getHierarchyManager instead 
info.magnolia.cms.core.Content.getAccessManager()
          since 4.0 - use getHierarchyManager instead 
info.magnolia.cms.core.search.QueryResultImpl.getAccessManager()
            
info.magnolia.cms.core.version.ContentVersion.getAccessManager()
          use getHierarchyManager instead 
info.magnolia.cms.core.Content.getChildByName(String)
          since 4.3, either use Content.getContent(String) or Content.getChildren(String) 
info.magnolia.cms.core.AbstractContent.getChildByName(String)
            
info.magnolia.cms.util.ContentWrapper.getChildByName(String)
          since 4.3, either use ContentWrapper.getContent(String) or AbstractContent.getChildren(String) 
info.magnolia.cms.util.ConfigUtil.getConfigFile(String)
          since 4.0 - use getTokenizedConfigFile 
info.magnolia.cms.exchange.ActivationManager.getConfigPath()
          There's no real need to expose this as such a location is an implementation detail. 
info.magnolia.cms.util.HierarchyManagerWrapper.getDelegate()
          since 4.3 use getWrappedHierarchyManager() instead 
info.magnolia.cms.util.FactoryUtil.getImplementation(Class)
          since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#getImplementation(Class) 
info.magnolia.freemarker.FreemarkerConfig.getInstance()
          since 4.3 should not be needed - components using this can keep their instance 
info.magnolia.cms.core.Path.getNodePath(String)
          since 4.0 - untested and unused 
info.magnolia.cms.core.Path.getNodePath(String, String)
          since 4.0 - untested and unused 
info.magnolia.objectfactory.ObservedComponentFactory.getObservedObject()
          since 4.3 - DefaultComponentProvider.newInstance(Class) returns a proxy of the observed object instead of this factory, so this method shouldn't be needed publicly. 
info.magnolia.cms.core.HierarchyManager.getPage(String, String)
          since 4.0 - only used by taglibs - should go/move. 
info.magnolia.cms.core.DefaultHierarchyManager.getPage(String, String)
          since 4.0 - only used by taglibs - should go/move. 
info.magnolia.cms.util.HierarchyManagerWrapper.getPage(String, String)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.beans.runtime.MultipartForm.getParameter(String)
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.beans.runtime.MultipartForm.getParameterNames()
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.beans.runtime.MultipartForm.getParameters()
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.beans.runtime.MultipartForm.getParameterValues(String)
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.core.Path.getParentPath(String)
          since 4.0 - untested and unused 
info.magnolia.cms.core.MetaData.getProperties()
          since 4.0 - not used. 
info.magnolia.cms.core.SystemProperty.getPropertyList()
          since 3.0 - use getProperties() instead 
info.magnolia.cms.util.FactoryUtil.getSingleton(Class)
          since 4.3 - use Components.getSingleton(Class) 
info.magnolia.module.ModuleVersionHandler.getStartupDelta(InstallContext)
          It seems irrelevant to have startup tasks in a VersionHandler. These should probably be moved to ModuleLifecycle. 
info.magnolia.jackrabbit.ProviderImpl.getUnderlineRepository()
          typo - use get #getUnderlyingRepository() - since 4.0 
info.magnolia.repository.Provider.getUnderlineRepository()
          typo - use get #getUnderlyingRepository() - since 4.0 
info.magnolia.module.AbstractModuleVersionHandler.getUpdate(InstallContext)
          since 4.2, renamed to getDefaultUpdate(InstallContext installContext) 
info.magnolia.freemarker.models.MagnoliaObjectWrapper.handleCalendar(Calendar)
          since 4.3 use CalendarModel instead. 
info.magnolia.cms.core.MetaData.hasProperty(String)
          since 4.0 - not used 
info.magnolia.importexport.DataTransporter.importProperties(Properties, String)
          since 4.0 - use the PropertiesImportExport class instead. 
info.magnolia.cms.security.ContentSecurityFilter.isAuthorized(AccessManager)
          since 4.3 when overriding this method, override isAllowed() instead 
info.magnolia.cms.core.HierarchyManager.isNodeType(String, ItemType)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.core.DefaultHierarchyManager.isNodeType(String, ItemType)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.util.HierarchyManagerWrapper.isNodeType(String, ItemType)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.core.HierarchyManager.isNodeType(String, String)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.core.DefaultHierarchyManager.isNodeType(String, String)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.util.HierarchyManagerWrapper.isNodeType(String, String)
          since 4.0 - use getContent().isNodeType() instead. 
info.magnolia.cms.core.HierarchyManager.isPage(String)
          since 4.0 - use getContent().isNodeType() instead. 
info.magnolia.cms.core.DefaultHierarchyManager.isPage(String)
          since 4.0 - use getContent().isNodeType() instead. (not used currently) 
info.magnolia.cms.util.HierarchyManagerWrapper.isPage(String)
          since 4.0 - use getContent().isNodeType() instead. 
info.magnolia.cms.util.ClassUtil.isSubClass(Class, Class)
          since 4.3, use parentClass.isAssignableFrom(subClass) 
info.magnolia.cms.util.LinkUtil.makeRelativePath(String, String)
          use LinkUtil.makePathRelative(String, String) instead 
info.magnolia.cms.util.FactoryUtil.newInstance(Class)
          since 4.3 - use info.magnolia.objectfactory.Components#getComponentProvider()#newInstance(Class) 
info.magnolia.cms.util.ClassUtil.newInstance(String)
          since 4.3 - use Classes.getClassFactory(). Shortcut for ClassUtil.classForName(className).newInstance() 
info.magnolia.cms.util.FactoryUtil.newInstanceWithoutDiscovery(String)
          since 4.3 - use Classes.getClassFactory() 
info.magnolia.cms.util.FactoryUtil.newInstanceWithoutDiscovery(String, Object[])
          since 4.3 - use Classes 
info.magnolia.cms.beans.runtime.MultipartForm.removeParameter(String)
          since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped. 
info.magnolia.cms.util.ConfigUtil.replaceTokens(InputStream)
          since 4.0 - use getTokenizedConfigFile 
info.magnolia.freemarker.FreemarkerHelper.resetObjectWrapper()
          not needed anymore since 4.3 
info.magnolia.cms.core.ContentHandler.setAccessManager(AccessManager)
          use setHierarchyManager instead 
info.magnolia.cms.util.FactoryUtil.setDefaultImplementation(Class, Class)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, Class) 
info.magnolia.cms.util.FactoryUtil.setDefaultImplementation(Class, String)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setDefaultImplementation(Class, String) 
info.magnolia.cms.i18n.DefaultMessagesManager.setDefaultLocale(String)
          since 4.0 - not used and should not be. Use setLocale() on the SystemContext instead. --note: do not remove the method, make it private. applicationLocale field is still needed. --and/or remove duplication with SystemContext.locale 
info.magnolia.cms.beans.runtime.Document.setExtention(String)
          since 4.1.1 typo in method name - use setExtension instead 
info.magnolia.cms.util.FactoryUtil.setImplementation(Class, Class)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see info.magnolia.objectfactory.DefaultComponentProvider#setImplementation(Class, Class) 
info.magnolia.cms.util.FactoryUtil.setImplementation(Class, String)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setImplementation(Class, String) 
info.magnolia.cms.util.FactoryUtil.setInstance(Class, Object)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstance(Class, Object) 
info.magnolia.cms.util.FactoryUtil.setInstanceFactory(Class, FactoryUtil.InstanceFactory)
          since 4.3 - For tests, use info.magnolia.test.ComponentsTestUtil, otherwise see DefaultComponentProvider.setInstanceFactory(Class, info.magnolia.objectfactory.ComponentFactory) 
info.magnolia.context.SystemContext.setLocale(Locale)
          since 4.0 - this method should not be exposed on SystemContext. 
info.magnolia.context.AbstractSystemContext.setLocale(Locale)
          since 4.0 - this shouldn't be exposed in the SystemContext interface. Prevent calls by throwing an UnsupportedOperationException. 
info.magnolia.cms.security.auth.Entity.setName(String)
          not used - use addProperty(Entity.NAME) 
info.magnolia.cms.core.MetaData.setTemplateType(String)
          since 4.0 - not used - template type is determined by template definition 
info.magnolia.cms.util.ContentWrapper.setWrappedContent(Content)
          since 4.3 - use ContentWrapper.ContentWrapper(info.magnolia.cms.core.Content) instead. 
info.magnolia.cms.util.ConfigUtil.string2DOM(String)
          since 4.0 - not used 
info.magnolia.cms.util.ConfigUtil.string2JDOM(String, Map)
          since 4.0 - not used 
info.magnolia.importexport.PropertiesImportExport.toProperties(HierarchyManager)
          since 4.3 This method is deprecated, it returns results in a format that does not match the format that the import method uses (doesn't include @uuid or @type properties) It is kept here to support existing test and applications that might break as a result of these changes (i.e. unit tests that are expecting a specific number of properties returned, etc) For new applications use the contentToProperties methods instead. 
info.magnolia.cms.security.MgnlUserManager.userInstance(Content)
          since 4.3.1 - use MgnlUserManager.newUserInstance(info.magnolia.cms.core.Content) 
 

Deprecated Constructors
info.magnolia.cms.util.ContentWrapper()
          since 4.3 - use ContentWrapper.ContentWrapper(info.magnolia.cms.core.Content) instead. 
info.magnolia.commands.DelegateCommand(String)
          not used 
info.magnolia.importexport.filters.MetadataUuidFilter(XMLReader)
            
 



Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.