Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionUse the
ResourceProviderUse theResourceProviderUse theResourceProviderUse theModifiableValueMapinstead.Use theResourceProviderUse theResourceProviderUse theResourceProviderThe SlingScriptResolver interface is intended to be implemented and also used by project specific code. To keep the API as clean as possible this interface was deprecatedPlease useContextPathStrategyMultiplexerinstead.Please useConfigurationPersistenceStrategy2instead.The dynamic class loader provider is not supported anymore and any service implementing this is not considered for dynamic class loading anymore!useAuthenticationHandlerinsteaduseAuthenticationSupportinsteadUse the request progress tracker instead.Please useErrorHandlerinstead.Use theSlingSettingsServiceTheRequestLocaleResolvershould be used instead.Per session namespace mapping is not supported anymore.UseInjectAnnotationProcessor2insteadUseStaticInjectAnnotationProcessorFactorypreferably or in case of a dependency to the adaptableInjectAnnotationProcessorFactory2as of 2.0.8 (Bundle version 2.2.0) and replaced byPostOperation.
-
Deprecated ClassesClassDescriptionUse the
SlingAdaptableinsteaduse org.apache.sling.servlets.post.HtmlResponse instead.UseValueMapUtil.merge(ValueMap...)instead. Note that it does not support the parametermerge = false. However, this could easily be achieved with another decorator that restricts the set of allowed keys.since Bundle 1.0.8;AuthenticationHandlerimplementations should extendDefaultAuthenticationFeedbackHandlerdirectly and use the utility methods in theAuthUtilclass.Useorg.osgi.util.converter.ConvertersandServiceUtilinsteadUseorg.osgi.util.converter.ConvertersinsteadUseRequestUtilUseResponseUtilNo longer supportedUseAbstractInjectAnnotationProcessor2insteadUseEnsureNodesinstead.UseEnsureAclPrincipalBasedinstead with stricter semanticsconstants are available inRuntimeCallstarting with version 1.2.0 of theorg.apache.sling.scripting.sightly.compiler.expression.nodesAPI.This class has been moved toObjectModel.since version 2.1.0 of the API; seeJavaEscapeHelperfor a replacement.(SLING-6722): this class mixes Sling and JCR APIs which is not optimal as nowadays we favor the Sling APIs. There's no intention to remove it however, if you're using JCR APIs anyways in your project it's fine to use it. Theres no public replacement for it as I write this.as of 2.0.8 (Bundle version 2.2.0) and replaced byAbstractPostOperation.
-
Deprecated ExceptionsExceptionsDescriptionsee
AuthenticatorSession pooling has been removed and thus this exception is not used any more.
-
Deprecated FieldsFieldDescriptionThis flag is not supported anymore when implementing the SPI based
org.apache.sling.spi.resource.provider.ResourceProviderUse a service listener listening for service removed events fororg.apache.sling.adapter.Adaption.Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption.Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption.Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption.Register aResourceChangeListenerinsteadRegister aResourceChangeListenerinsteadRegister aResourceChangeListenerinsteadUse"service.ranking"(org.osgi.framework.Constants.SERVICE_RANKING) insteadUseEngineConstants.SLING_FILTER_SCOPEinsteadas of bundle version 2.1no longer used. UseSystemUserManagerPathsservice instead.no longer used. UseSystemUserManagerPathsservice instead.no longer used. UseSystemUserManagerPathsservice instead.no longer used. UseSystemUserManagerPathsservice instead.no longer used. UseSystemUserManagerPathsservice instead.since 3.0.12, To be removed when the exported package version goes to 4.0since 3.0.12, To be removed when the exported package version goes to 4.0since 3.0.12, To be removed when the exported package version goes to 4.0 useJsonConvert.KEY_ORDERinsteadUseSightlyLexer.VOCABULARYinstead.UseSightlyParser.VOCABULARYinstead.
-
Deprecated MethodsMethodDescriptionAs there is no guarantee that this information is contained in the change event, this should not be used anymore.As there is no guarantee that this information is contained in the change event, this should not be used anymore.As there is no guarantee that this information is contained in the change event, this should not be used anymore.since 2.3.0 (and JCR Resource 2.1.0), this method will not be invoked.since 2.2.0 (and JCR Resource 2.1.0), this method will not be invoked.as of 2.4 (bundle version 2.5.0) because of inherent security issues. Implementations may implement this method at their discretion but must support the new service based resource provider generation in the
ResourceProviderFactory.getResourceProvider(Map)method honoring theResourceProviderFactory.SERVICE_BUNDLEandResourceResolverFactory.SUBSERVICEproperties.as of 2.0.4, useResourceResolver.resolve(HttpServletRequest, String)instead.as of 2.4 (bundle version 2.5.0) because of inherent security issues. Services requiring specific permissions should use theResourceResolverFactory.getServiceResourceResolver(Map)instead.since 2.1.0, useResource.getName()insteadsince 2.1.0, useResource.getParent()insteadsince 2.1.0, useResource.listChildren()insteadThis method is deprecated since version 2.1 and will be removed. It should never be called by clients.since Bundle 1.0.8, useAuthUtil.getAttributeOrParameter(HttpServletRequest, String, String)since Bundle 1.0.8, useAuthUtil.getLoginResource(HttpServletRequest, String)This method has been introduced after Bundle release 1.0.6 but has been replaced withAuthUtil.isRedirectValid(HttpServletRequest, String). Use the latter method.since Bundle 1.0.8, useAuthUtil.isValidateRequest(HttpServletRequest)since Bundle 1.0.8, useAuthUtil.sendInvalid(HttpServletRequest, HttpServletResponse)since Bundle 1.0.8, useAuthUtil.sendRedirect(HttpServletRequest, HttpServletResponse, String, Map)since Bundle 1.0.8, useAuthUtil.sendValid(HttpServletResponse)since Bundle 1.0.8, useAuthUtil.setLoginResourceAttribute(HttpServletRequest, String)Please useConfigurationPersistenceStrategyMultiplexerinstead.since 2.0.4, useOsgiUtil.toDouble(Object, double)insteadUseRankedServices.getList()insteadUseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.schedule(Object, ScheduleOptions)instead.UseScheduler.unschedule(String)instead.Since version 1.1.1 always returns -1 as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)Since version 3.4.0 should no longer be called, as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)Since version 3.4.0 always returns -1 as threads are no longer retired but instead the thread locals are cleaned up (SLING-6261)A async task should returntrueforInstallTask.isAsynchronousTask()and be add withInstallationContext.addTaskToCurrentCycle(InstallTask)useAbstractAuthorizablePostServlet.collectContentMap(Map)instead since 2.2.18useAbstractPostServlet.createPostResponse(SlingHttpServletRequest)instead.as of 2.2 (bundle version 2.2.0) because of inherent security issues. Services requiring specific permissions should use theSlingRepository.loginService(String, String)instead.No longer supportedNo longer supportedNo longer supportedNo longer supporteduseAbstractAccessPostServlet.createPostResponse(SlingHttpServletRequest)insteaduseJsonConvert.addRestrictions(JsonObjectBuilder, String, Set)insteaduseJsonConvert.addTo(JsonObjectBuilder, String, Object)insteaduseJsonConvert#addTo(javax.json.JsonArrayBuilder, Object)insteaddon't use this as it assumes that all the privileges have the same restrictions which may not be truedon't use this as it assumes that all the privileges have the same restrictions which may not be trueUseChildResource.injectionStrategy()instead.UseOSGiService.injectionStrategy()instead.UseRequestAttribute.injectionStrategy()instead.UseResourcePath.injectionStrategy()instead.UseScriptVariable.injectionStrategy()instead.UseSelf.injectionStrategy()insteadUseSlingObject.injectionStrategy()insteadUseValueMapValue.injectionStrategy()insteadUseModelFactory.isModelClass(Class)instead!Use {linkMergeUtility.merge(Model, Model)new statement callsOperationVisitor.visitEnsureNodes(EnsureNodes)new statement callsOperationVisitor.visitEnsureAclPrincipalBased(EnsureAclPrincipalBased)This method is deprecated and should never be called by clients!since 2.1.0 because the method is named incorrectly.since 2.1.0 because it maps the method name incorrectly.since 2.1.0 because it maps the method name incorrectly.now delegated to the org.apache.el Package
-
Deprecated ConstructorsConstructorDescriptionThe sets of property names are not supported anymore.Use
RankedServices(Order)to explicitly give the order.Use static getTagHandlerPooluse#ResourceCollector(String, String, Resource, String, String[])instead.
-
Deprecated Enum ConstantsEnum ConstantDescription
-
Deprecated Annotation Type ElementsAnnotation Type ElementDescriptionUse
ChildResource.injectionStrategy()instead.UseOSGiService.injectionStrategy()instead.UseRequestAttribute.injectionStrategy()instead.UseResourcePath.injectionStrategy()instead.UseScriptVariable.injectionStrategy()instead.UseSelf.injectionStrategy()insteadUseSlingObject.injectionStrategy()insteadUseValueMapValue.injectionStrategy()instead
ResourceProvider