Deprecated API
Contents
-
InterfaceDescriptionUse the
ResourceProvider
Use theResourceProvider
Use theResourceProvider
Use theModifiableValueMap
instead.Use theResourceProvider
Use theResourceProvider
Use theResourceProvider
The 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 useContextPathStrategyMultiplexer
instead.Please useConfigurationPersistenceStrategy2
instead.The dynamic class loader provider is not supported anymore and any service implementing this is not considered for dynamic class loading anymore!useAuthenticationHandler
insteaduseAuthenticationSupport
insteadUse the request progress tracker instead.Please useErrorHandler
instead.Use theSlingSettingsService
TheRequestLocaleResolver
should be used instead.Per session namespace mapping is not supported anymore.UseInjectAnnotationProcessor2
insteadUseStaticInjectAnnotationProcessorFactory
preferably or in case of a dependency to the adaptableInjectAnnotationProcessorFactory2
as of 2.0.8 (Bundle version 2.2.0) and replaced byPostOperation
.
-
ClassDescriptionUse the
SlingAdaptable
insteaduse 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;AuthenticationHandler
implementations should extendDefaultAuthenticationFeedbackHandler
directly and use the utility methods in theAuthUtil
class.Useorg.osgi.util.converter.Converters
andServiceUtil
insteadUseorg.osgi.util.converter.Converters
insteadUseRequestUtil
UseResponseUtil
No longer supportedUseAbstractInjectAnnotationProcessor2
insteadUseEnsureNodes
instead.UseEnsureAclPrincipalBased
instead with stricter semanticsconstants are available inRuntimeCall
starting with version 1.2.0 of theorg.apache.sling.scripting.sightly.compiler.expression.nodes
API.This class has been moved toObjectModel
.since version 2.1.0 of the API; seeJavaEscapeHelper
for 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
.
-
ExceptionsDescriptionsee
Authenticator
Session pooling has been removed and thus this exception is not used any more.
-
FieldDescriptionThis flag is not supported anymore when implementing the SPI based
org.apache.sling.spi.resource.provider.ResourceProvider
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
.Use a service listener listening for service removed events fororg.apache.sling.adapter.Adaption
.Register aResourceChangeListener
insteadRegister aResourceChangeListener
insteadRegister aResourceChangeListener
insteadUse"service.ranking"
(org.osgi.framework.Constants.SERVICE_RANKING) insteadUseEngineConstants.SLING_FILTER_SCOPE
insteadas of bundle version 2.1no longer used. UseSystemUserManagerPaths
service instead.no longer used. UseSystemUserManagerPaths
service instead.no longer used. UseSystemUserManagerPaths
service instead.no longer used. UseSystemUserManagerPaths
service instead.no longer used. UseSystemUserManagerPaths
service 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_ORDER
insteadUseSightlyLexer.VOCABULARY
instead.UseSightlyParser.VOCABULARY
instead.
-
MethodDescriptionAs 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_BUNDLE
andResourceResolverFactory.SUBSERVICE
properties.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 useConfigurationPersistenceStrategyMultiplexer
instead.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 returntrue
forInstallTask.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
-
ConstructorDescriptionThe 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.
-
Enum ConstantDescription
-
Annotation 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