Deprecated API


Contents
Deprecated Interfaces
org.apache.sling.engine.auth.AuthenticationHandler
          use AuthenticationHandler instead 
org.apache.sling.engine.auth.Authenticator
          use AuthenticationSupport instead 
org.apache.sling.jcr.resource.JcrResourceResolverFactory
          Since 2.1. Use the ResourceResolverFactory 
org.apache.sling.event.JobProcessor
          Use org.apache.sling.event.jobs.JobProcessor 
org.apache.sling.event.JobsIterator
            
org.apache.sling.event.JobStatusProvider
            
org.apache.sling.engine.RequestLog
          Use the request progress tracker instead. 
org.apache.sling.api.scripting.SlingScriptResolver
          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 deprecated 
org.apache.sling.engine.SlingSettingsService
          Use the SlingSettingsService 
 

Deprecated Classes
org.apache.sling.engine.servlets.AbstractServiceReferenceConfig
            
org.apache.sling.engine.auth.AuthenticationInfo
          see AuthenticationHandler 
org.apache.sling.engine.RequestUtil
          Use RequestUtil 
org.apache.sling.engine.ResponseUtil
          Use ResponseUtil 
org.apache.sling.adapter.SlingAdaptable
          Use the SlingAdaptable instead 
 

Deprecated Enums
org.apache.sling.event.EventUtil.JobPriority
          Use JobUtil.JobPriority 
 

Deprecated Exceptions
org.apache.sling.engine.auth.NoAuthenticationHandlerException
          see Authenticator 
 

Deprecated Fields
org.apache.sling.engine.EngineConstants.FILTER_ORDER
          Use "service.ranking" (org.osgi.framework.Constants.SERVICE_RANKING) instead 
org.apache.sling.engine.EngineConstants.FILTER_SCOPE
          Use EngineConstants.SLING_FILTER_SCOPE instead 
org.apache.sling.event.JobStatusProvider.PROPERTY_EVENT_ID
          Use JobUtil.JOB_ID 
org.apache.sling.event.EventUtil.PROPERTY_JOB_ID
          Use JobUtil.PROPERTY_JOB_NAME 
org.apache.sling.event.EventUtil.PROPERTY_JOB_PARALLEL
          Use JobUtil.PROPERTY_JOB_PARALLEL 
org.apache.sling.event.EventUtil.PROPERTY_JOB_PRIORITY
          Use JobUtil.PROPERTY_JOB_PRIORITY 
org.apache.sling.event.EventUtil.PROPERTY_JOB_QUEUE_NAME
          Use JobUtil.PROPERTY_JOB_QUEUE_NAME 
org.apache.sling.event.EventUtil.PROPERTY_JOB_QUEUE_ORDERED
          Use JobUtil.PROPERTY_JOB_QUEUE_ORDERED 
org.apache.sling.event.EventUtil.PROPERTY_JOB_RETRIES
          Use JobUtil.PROPERTY_JOB_RETRIES 
org.apache.sling.event.EventUtil.PROPERTY_JOB_RETRY_COUNT
          Use JobUtil.PROPERTY_JOB_RETRY_COUNT 
org.apache.sling.event.EventUtil.PROPERTY_JOB_RETRY_DELAY
          Use JobUtil.PROPERTY_JOB_RETRY_DELAY 
org.apache.sling.event.EventUtil.PROPERTY_JOB_RUN_LOCAL
          Use JobUtil.PROPERTY_JOB_RUN_LOCAL 
org.apache.sling.event.EventUtil.PROPERTY_JOB_TOPIC
          Use JobUtil.PROPERTY_JOB_TOPIC 
org.apache.sling.event.EventUtil.PROPERTY_NOTIFICATION_JOB
          Use JobUtil.PROPERTY_NOTIFICATION_JOB 
org.apache.sling.engine.EngineConstants.SESSION
          as of bundle version 2.1 
org.apache.sling.engine.EngineConstants.SLING_CURRENT_SERVLET_NAME
          Use SlingConstants.SLING_CURRENT_SERVLET_NAME 
org.apache.sling.engine.EngineConstants.SLING_HOME
          Use SlingSettingsService.SLING_HOME 
org.apache.sling.engine.EngineConstants.SLING_HOME_URL
          Use SlingSettingsService.SLING_HOME_URL 
org.apache.sling.engine.EngineConstants.SLING_SERLVET_NAME
            
org.apache.sling.event.EventUtil.TOPIC_JOB
          Use JobUtil.TOPIC_JOB 
org.apache.sling.event.EventUtil.TOPIC_JOB_CANCELLED
          Use JobUtil.TOPIC_JOB_CANCELLED 
org.apache.sling.event.EventUtil.TOPIC_JOB_FAILED
          Use JobUtil.TOPIC_JOB_FAILED 
org.apache.sling.event.EventUtil.TOPIC_JOB_FINISHED
          Use JobUtil.TOPIC_JOB_FINISHED 
org.apache.sling.event.EventUtil.TOPIC_JOB_STARTED
          Use JobUtil.TOPIC_JOB_STARTED 
 

Deprecated Methods
org.apache.sling.event.EventUtil.acknowledgeJob(Event)
          Use JobUtil.acknowledgeJob(Event) 
org.apache.sling.event.JobStatusProvider.cancelJob(String)
          Use JobStatusProvider.removeJob(String) instead. 
org.apache.sling.event.JobStatusProvider.cancelJob(String, String)
          Use JobStatusProvider.removeJob(String, String) instead. 
org.apache.sling.api.scripting.SlingScriptHelper.dispose()
          This method is deprecated since version 2.1 and will be removed. It should never be called by clients. 
org.apache.sling.scripting.core.ScriptHelper.dispose()
           
org.apache.sling.event.EventUtil.finishedJob(Event)
          Use {link JobUtil.finishedJob(Event) 
org.apache.sling.event.JobStatusProvider.getAllJobs(String, Map...)
          Use JobStatusProvider.queryAllJobs(String, Map...) instead. 
org.apache.sling.event.JobStatusProvider.getCurrentJobs(String)
          Use JobStatusProvider.queryCurrentJobs(String, Map...) instead. 
org.apache.sling.event.JobStatusProvider.getCurrentJobs(String, Map...)
          Use JobStatusProvider.queryCurrentJobs(String, Map...) instead. 
org.apache.sling.api.resource.ResourceUtil.getName(Resource)
          since 2.1.0, use Resource.getName() instead 
org.apache.sling.api.resource.ResourceUtil.getParent(Resource)
          since 2.1.0, use Resource.getParent() instead 
org.apache.sling.jcr.resource.JcrPropertyMap.getPath()
            
org.apache.sling.commons.osgi.OsgiUtil.getProperty(Object, double)
          since 2.0.4, use OsgiUtil.toDouble(Object, double) instead 
org.apache.sling.jcr.resource.JcrResourceUtil.getResourceSuperType(Resource)
          Call ResourceUtil.findResourceSuperType(Resource) 
org.apache.sling.jcr.resource.JcrResourceUtil.getResourceSuperType(ResourceResolver, String)
          Use ResourceUtil.getResourceSuperType(ResourceResolver, String) 
org.apache.sling.event.JobStatusProvider.getScheduledJobs(String)
          Use JobStatusProvider.queryScheduledJobs(String, Map...) instead. 
org.apache.sling.event.JobStatusProvider.getScheduledJobs(String, Map...)
          Use JobStatusProvider.queryScheduledJobs(String, Map...) instead. 
org.apache.sling.event.EventUtil.isJobEvent(Event)
          Use JobUtil.isJobEvent(Event) 
org.apache.sling.scripting.javascript.wrapper.ScriptableResource.jsFunction_getMetadata()
          since 2.1.0 because the method is named incorrectly. 
org.apache.sling.scripting.javascript.wrapper.ScriptableResource.jsGet_meta()
          since 2.1.0 because it maps the method name incorrectly. 
org.apache.sling.scripting.javascript.wrapper.ScriptableResource.jsGet_type()
          since 2.1.0 because it maps the method name incorrectly. 
org.apache.sling.api.resource.ResourceUtil.listChildren(Resource)
          since 2.1.0, use Resource.listChildren() instead 
org.apache.sling.event.EventUtil.processJob(Event, JobProcessor)
          Use JobUtil.processJob(Event, org.apache.sling.event.jobs.JobProcessor) 
org.apache.sling.jcr.base.util.AccessControlUtil.replaceAccessControlEntry(Session, String, Principal, String[], String[], String[])
          use @link AccessControlUtil.replaceAccessControlEntry(Session, String, Principal, String[], String[], String[], String) instead. 
org.apache.sling.event.EventUtil.rescheduleJob(Event)
          Use JobUtil.rescheduleJob(Event) 
org.apache.sling.api.resource.ResourceResolver.resolve(HttpServletRequest)
          as of 2.0.4, use ResourceResolver.resolve(HttpServletRequest, String) instead. 
org.apache.sling.jcr.resource.JcrResourceUtil.resourceTypeToPath(String)
          Use ResourceUtil.resourceTypeToPath(String) 
 



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.