public class POMSessionManager extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
POMSessionManager(org.exoplatform.services.jcr.RepositoryService repositoryService,
ChromatticManager manager,
org.exoplatform.services.cache.CacheService cacheService) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cacheGet(Serializable key) |
void |
cachePut(Serializable key,
Object value) |
void |
cacheRemove(Serializable key) |
void |
clearCache() |
<V> V |
execute(POMTask<V> task)
Execute the task with a session.
|
<E extends TaskExecutionDecorator> |
getDecorator(Class<E> decoratorClass) |
ChromatticLifeCycle |
getLifeCycle() |
org.gatein.mop.core.api.MOPService |
getPOMService() |
POMSession |
getSession()
Returns the session currently associated with the current thread of execution.
|
POMSession |
openSession()
Open and returns a session to the model.
|
void |
start() |
void |
stop() |
public POMSessionManager(org.exoplatform.services.jcr.RepositoryService repositoryService,
ChromatticManager manager,
org.exoplatform.services.cache.CacheService cacheService)
public ChromatticLifeCycle getLifeCycle()
public void cachePut(Serializable key, Object value)
public Object cacheGet(Serializable key)
public void cacheRemove(Serializable key)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void clearCache()
public org.gatein.mop.core.api.MOPService getPOMService()
public <E extends TaskExecutionDecorator> E getDecorator(Class<E> decoratorClass)
public POMSession getSession()
Returns the session currently associated with the current thread of execution.
public POMSession openSession()
Open and returns a session to the model. When the current thread is already associated with a previously opened session the method will throw an IllegalStateException.
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.