public final class POMSession extends Object
| Constructor and Description |
|---|
POMSession(POMSessionManager mgr,
MOPChromatticLifeCycle configurator,
SessionContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current session and discard the changes done during the session.
|
void |
close(boolean save)
Closes the current session and optionally saves its content.
|
<V> V |
execute(POMTask<V> task) |
org.gatein.mop.api.content.Customization<?> |
findCustomizationById(String id) |
<O extends org.gatein.mop.api.workspace.WorkspaceObject> |
findObject(org.gatein.mop.api.workspace.ObjectType<O> ownerType,
String statement) |
<O extends org.gatein.mop.api.workspace.WorkspaceObject> |
findObjectById(org.gatein.mop.api.workspace.ObjectType<O> ownerType,
String id) |
org.gatein.mop.api.workspace.WorkspaceObject |
findObjectById(String id) |
<O extends org.gatein.mop.api.workspace.WorkspaceObject> |
findObjects(org.gatein.mop.api.workspace.ObjectType<O> type,
org.gatein.mop.api.workspace.ObjectType<org.gatein.mop.api.workspace.Site> siteType,
String ownerId,
String title,
int offset,
int limit) |
Object |
getFromCache(Serializable key) |
POMSessionManager |
getManager() |
protected org.chromattic.api.ChromatticSession |
getSession() |
org.gatein.mop.api.workspace.Workspace |
getWorkspace() |
boolean |
isMarkedForRollback() |
boolean |
isModified() |
String |
pathOf(org.gatein.mop.api.workspace.WorkspaceObject o) |
void |
putInCache(Serializable key,
Object value) |
void |
save() |
void |
scheduleForEviction(Serializable key) |
public POMSession(POMSessionManager mgr, MOPChromatticLifeCycle configurator, SessionContext context)
public Object getFromCache(Serializable key)
public void putInCache(Serializable key, Object value)
public void scheduleForEviction(Serializable key)
public boolean isModified()
protected org.chromattic.api.ChromatticSession getSession()
public org.gatein.mop.api.workspace.Workspace getWorkspace()
public boolean isMarkedForRollback()
public String pathOf(org.gatein.mop.api.workspace.WorkspaceObject o)
public <O extends org.gatein.mop.api.workspace.WorkspaceObject> Iterator<O> findObject(org.gatein.mop.api.workspace.ObjectType<O> ownerType, String statement)
public <O extends org.gatein.mop.api.workspace.WorkspaceObject> O findObjectById(org.gatein.mop.api.workspace.ObjectType<O> ownerType,
String id)
public org.gatein.mop.api.workspace.WorkspaceObject findObjectById(String id)
public org.gatein.mop.api.content.Customization<?> findCustomizationById(String id)
public POMSessionManager getManager()
public <O extends org.gatein.mop.api.workspace.WorkspaceObject> org.chromattic.api.query.QueryResult<O> findObjects(org.gatein.mop.api.workspace.ObjectType<O> type,
org.gatein.mop.api.workspace.ObjectType<org.gatein.mop.api.workspace.Site> siteType,
String ownerId,
String title,
int offset,
int limit)
public void save()
public void close()
Closes the current session and discard the changes done during the session.
close(boolean)public void close(boolean save)
Closes the current session and optionally saves its content. If no session is associated then this method has no effects and returns false.
save - if the session must be savedCopyright © 2003–2021 eXo Platform SAS. All rights reserved.