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(String repositoryId, String workspaceId)
           
protected  Subject getSubject()
           
protected  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(String repositoryId,
                                      String workspaceId)

getSubject

protected Subject getSubject()

getUserId

protected String getUserId()
Specified by:
getUserId in class AbstractRepositoryStrategy

release

public void release()


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