palio.services
Class PalioConnectorContext

java.lang.Object
  extended by torn.omea.framework.server.ServerContext
      extended by palio.services.SQLConnectorContext
          extended by palio.services.PalioConnectorContext
All Implemented Interfaces:
torn.omea.framework.core.OmeaContext

public class PalioConnectorContext
extends SQLConnectorContext

Author:
Szymon Kuklewicz

Constructor Summary
PalioConnectorContext(SQLConnectorDatabase database)
           
 
Method Summary
 void createRevision(java.lang.String comment, java.util.Collection<torn.omea.framework.core.OmeaObjectId> objects)
           
 void delayedArchiving()
           
 java.lang.Object[] getArchiveState(torn.omea.framework.core.OmeaObjectId id, java.util.Date timestamp)
           
 torn.omea.framework.cache.ConnectableContext getDesignerConnectable()
           
 java.util.Collection<java.lang.Object[]> getHistory(torn.omea.framework.core.OmeaObjectId id)
           
 VersionControlServicePerInstance getVersionControlService()
           
 java.util.Collection<java.lang.Object[]> listDirties(boolean allUsers)
           
 void logOperations(java.util.Set<torn.omea.framework.core.OmeaObjectId> created, java.util.Set<torn.omea.framework.core.OmeaObjectId> updated, java.util.Set<torn.omea.framework.core.OmeaObjectId> deleted)
           
 
Methods inherited from class palio.services.SQLConnectorContext
createTransaction, select, select
 
Methods inherited from class torn.omea.framework.server.ServerContext
addContextListener, createExternalTransactionNotice, get, get, getCached, getCached, getLater, getMetaData, isOpen, removeContextListener, selectLater, setOpen
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PalioConnectorContext

public PalioConnectorContext(SQLConnectorDatabase database)
Method Detail

getDesignerConnectable

public torn.omea.framework.cache.ConnectableContext getDesignerConnectable()

getVersionControlService

public VersionControlServicePerInstance getVersionControlService()

logOperations

public void logOperations(java.util.Set<torn.omea.framework.core.OmeaObjectId> created,
                          java.util.Set<torn.omea.framework.core.OmeaObjectId> updated,
                          java.util.Set<torn.omea.framework.core.OmeaObjectId> deleted)
                   throws palio.PalioException
Throws:
palio.PalioException

getHistory

public java.util.Collection<java.lang.Object[]> getHistory(torn.omea.framework.core.OmeaObjectId id)
                                                    throws palio.PalioException
Throws:
palio.PalioException

listDirties

public java.util.Collection<java.lang.Object[]> listDirties(boolean allUsers)
                                                     throws palio.PalioException
Throws:
palio.PalioException

createRevision

public void createRevision(java.lang.String comment,
                           java.util.Collection<torn.omea.framework.core.OmeaObjectId> objects)
                    throws palio.PalioException
Throws:
palio.PalioException

getArchiveState

public java.lang.Object[] getArchiveState(torn.omea.framework.core.OmeaObjectId id,
                                          java.util.Date timestamp)
                                   throws palio.PalioException
Throws:
palio.PalioException

delayedArchiving

public void delayedArchiving()