info.magnolia.context
Class DefaultRepositoryStrategy

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

public class DefaultRepositoryStrategy
extends AbstractRepositoryStrategy

Uses a user based access manager.


Field Summary
protected  UserContext context
           
 
Constructor Summary
DefaultRepositoryStrategy(UserContext context)
           
 
Method Summary
 AccessManager getAccessManager(java.lang.String repositoryId, java.lang.String workspaceId)
           
protected  javax.security.auth.Subject getSubject()
           
protected  java.lang.String getUserId()
           
 void release()
           
 
Methods inherited from class info.magnolia.context.AbstractRepositoryStrategy
decSessionCount, getHierarchyManager, getLocalSessionCount, getQueryManager, getRepositorySession, incSessionCount, 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

public DefaultRepositoryStrategy(UserContext context)
Method Detail

getAccessManager

public AccessManager getAccessManager(java.lang.String repositoryId,
                                      java.lang.String workspaceId)

getSubject

protected javax.security.auth.Subject getSubject()

getUserId

protected java.lang.String getUserId()
Specified by:
getUserId in class AbstractRepositoryStrategy

release

public void release()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.