public interface ChromatticPersister
| Modifier and Type | Interface and Description |
|---|---|
static class |
ChromatticPersister.PortletNameFormatter
Encodes and decodes portlet contexts to be properly persisted in JCR as '/' is a reserved char.
|
static class |
ChromatticPersister.QNameFormatter
Encodes and decodes QName to be properly persisted in JCR since ':', '{' and '}' are reserved chars.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(boolean save)
Closes the current ChromatticSession, saving the associated operations if so specified
|
<T> boolean |
delete(T toDelete,
StoresByPathManager<T> manager)
Deletes the specified object from the specified manager, the manager being, most of the time, the parent of the object to be deleted.
|
org.chromattic.api.ChromatticSession |
getSession()
Retrieves the current ChromatticSession or open a new one if none already existed.
|
boolean |
isSessionClosed()
Checks whether the current session is closed.
|
void |
save()
Saves the modifications made in the context of the current session but keep the session open.
|
org.chromattic.api.ChromatticSession getSession()
void closeSession(boolean save)
save - whether or not to save the operations associated with the sessionvoid save()
<T> boolean delete(T toDelete,
StoresByPathManager<T> manager)
T - the type of the object to deletetoDelete - the object to deletemanager - the StoresByPathManager object that needs to be notified (to be updated) of the deletionnull if no such object existed in persistenceboolean isSessionClosed()
true if no current session exists or if it's closed, false otherwiseCopyright © 2006-2014 GateIn. All Rights Reserved.