info.magnolia.context
Class AbstractRepositoryStrategy
java.lang.Object
info.magnolia.context.AbstractRepositoryStrategy
- All Implemented Interfaces:
- RepositoryAcquiringStrategy
- Direct Known Subclasses:
- DefaultRepositoryStrategy, SystemRepositoryStrategy
public abstract class AbstractRepositoryStrategy
- extends java.lang.Object
- implements RepositoryAcquiringStrategy
Basic implementation of the RepositoryAcquiringStrategy
providing storage of JCR sessions and hierarchy manager instances to extending classes.
- Version:
- $Id: AbstractRepositoryStrategy.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- philipp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRepositoryStrategy
public AbstractRepositoryStrategy()
getHierarchyManager
public HierarchyManager getHierarchyManager(java.lang.String repositoryId,
java.lang.String workspaceId)
- Specified by:
getHierarchyManager
in interface RepositoryAcquiringStrategy
getUserId
protected abstract java.lang.String getUserId()
getQueryManager
public QueryManager getQueryManager(java.lang.String repositoryId,
java.lang.String workspaceId)
- Specified by:
getQueryManager
in interface RepositoryAcquiringStrategy
getRepositorySession
protected javax.jcr.Session getRepositorySession(java.lang.String repositoryName,
java.lang.String workspaceName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
release
protected void release(boolean checkObservation)
releaseSession
protected void releaseSession(javax.jcr.Session session,
boolean checkObservation)
incSessionCount
protected void incSessionCount(java.lang.String workspaceName)
decSessionCount
protected void decSessionCount(java.lang.String workspaceName)
getLocalSessionCount
protected int getLocalSessionCount()
- Returns the number of sessions managed by this strategy.
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.