info.magnolia.context
Class DefaultRepositoryStrategy

java.lang.Object
  extended by info.magnolia.context.AbstractRepositoryStrategy
      extended by info.magnolia.context.DefaultRepositoryStrategy
All Implemented Interfaces:
JCRSessionStrategy

public class DefaultRepositoryStrategy
extends AbstractRepositoryStrategy

Uses a user based access manager.

Version:
$Id$

Field Summary
protected  UserContext context
           
 
Fields inherited from class info.magnolia.context.AbstractRepositoryStrategy
repositoryManager
 
Constructor Summary
DefaultRepositoryStrategy(RepositoryManager repositoryManager, UserContext context)
           
 
Method Summary
protected  javax.jcr.Credentials getCredentials()
           
protected  javax.jcr.Session internalGetSession(String workspaceName)
           
 void release()
           
 
Methods inherited from class info.magnolia.context.AbstractRepositoryStrategy
getLocalSessionCount, getSession, release, releaseSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected UserContext context
Constructor Detail

DefaultRepositoryStrategy

@Inject
public DefaultRepositoryStrategy(RepositoryManager repositoryManager,
                                        UserContext context)
Method Detail

internalGetSession

protected javax.jcr.Session internalGetSession(String workspaceName)
                                        throws javax.jcr.RepositoryException
Specified by:
internalGetSession in class AbstractRepositoryStrategy
Throws:
javax.jcr.RepositoryException

getCredentials

protected javax.jcr.Credentials getCredentials()
Returns:
credentials of current user - anonymous if unknown.

release

public void release()


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.