public class Synchronization extends Object
| Constructor and Description |
|---|
Synchronization() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean save) |
void |
close(ChromatticLifeCycle lifecycle,
boolean save) |
javax.jcr.Session |
doLogin(org.exoplatform.commons.chromattic.SynchronizedContext ctx) |
org.exoplatform.commons.chromattic.SynchronizedContext |
getContext(String name)
Returns a specified global context by its name.
|
boolean |
getSaveOnClose() |
org.exoplatform.commons.chromattic.SynchronizedContext |
openContext(ChromatticLifeCycle lifeCycle)
Opens a global context related to this synchronization object.
|
void |
setSaveOnClose(boolean saveOnClose) |
public org.exoplatform.commons.chromattic.SynchronizedContext getContext(String name)
name - the global context namepublic org.exoplatform.commons.chromattic.SynchronizedContext openContext(ChromatticLifeCycle lifeCycle) throws IllegalStateException
lifeCycle - the life cycle for the sessionIllegalStateException - if a context is already created for the specified life cyclepublic javax.jcr.Session doLogin(org.exoplatform.commons.chromattic.SynchronizedContext ctx)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void close(ChromatticLifeCycle lifecycle, boolean save)
public void close(boolean save)
public boolean getSaveOnClose()
public void setSaveOnClose(boolean saveOnClose)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.