com.day.cq.commons.jcr
Class AbstractRepositoryService

java.lang.Object
  extended by com.day.cq.commons.jcr.AbstractRepositoryService

Deprecated. CQ 5.6 - extending this class made it too easy to use admin access without really noticing it (#42007).

@Reference(name="repository",
           referenceInterface=SlingRepository.class,
           policy=STATIC)
public abstract class AbstractRepositoryService
extends Object

Abstract SCR-Service which registers for a JcrContentManager and a Repository.
Can be used for services with Repository-Access.


Field Summary
protected  org.slf4j.Logger logger
          Deprecated.  
protected  JcrResourceResolverFactory resourceManagerFactory
          Deprecated.  
 
Constructor Summary
AbstractRepositoryService()
          Deprecated.  
 
Method Summary
protected  void bindRepository(SlingRepository repo)
          Deprecated.  
protected  void closeSession(Session session)
          Deprecated.  
protected  Session createSession(SlingRepository repo)
          Deprecated.  
protected  Session getAdminSession()
          Deprecated.  
protected  SlingRepository getRepository()
          Deprecated.  
protected  ResourceResolver getResourceResolver()
          Deprecated.  
protected  void unbindRepository(SlingRepository repo)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceManagerFactory

@Reference(policy=STATIC)
protected JcrResourceResolverFactory resourceManagerFactory
Deprecated. 

logger

protected org.slf4j.Logger logger
Deprecated. 
Constructor Detail

AbstractRepositoryService

public AbstractRepositoryService()
Deprecated. 
Method Detail

bindRepository

protected final void bindRepository(SlingRepository repo)
Deprecated. 

unbindRepository

protected final void unbindRepository(SlingRepository repo)
Deprecated. 

createSession

protected Session createSession(SlingRepository repo)
                         throws RepositoryException
Deprecated. 
Throws:
RepositoryException

getRepository

protected SlingRepository getRepository()
Deprecated. 

closeSession

protected void closeSession(Session session)
Deprecated. 

getAdminSession

protected Session getAdminSession()
Deprecated. 

getResourceResolver

protected ResourceResolver getResourceResolver()
                                        throws SlingException
Deprecated. 
Throws:
SlingException


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.