|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbiz.hammurapi.web.interaction.InteractionFactory
Creates and keeps cache of interaction instances.
| Nested Class Summary | |
static class |
InteractionFactory.InteractionDefinition
Interaction definition |
| Constructor Summary | |
InteractionFactory()
|
|
| Method Summary | |
InteractionInstance |
createInteractionInstance(int definitionId,
java.lang.String exitUrl,
java.util.Map context,
java.lang.String user)
Creates and returns interaction instance. |
biz.hammurapi.web.interaction.sql.InteractionEngine |
getEngine()
|
biz.hammurapi.sql.IdentityManager |
getIdentityManager()
|
InteractionFactory.InteractionDefinition |
getInteraction(int id)
Gets instance from cache or loads from the database. |
InteractionInstance |
getInteractionInstance(int id)
Gets instance from cache or loads from the database. |
PropertySetFactory |
getPropertySetFactory()
|
void |
setOwner(java.lang.Object owner)
|
void |
setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InteractionFactory()
| Method Detail |
public void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
throws java.sql.SQLException
setSQLProcessor in interface biz.hammurapi.sql.DataAccessObjectjava.sql.SQLException
public InteractionFactory.InteractionDefinition getInteraction(int id)
throws java.sql.SQLException
id -
java.sql.SQLException
public InteractionInstance getInteractionInstance(int id)
throws java.sql.SQLException
id -
java.sql.SQLException
public InteractionInstance createInteractionInstance(int definitionId,
java.lang.String exitUrl,
java.util.Map context,
java.lang.String user)
throws java.sql.SQLException,
HammurapiWebException
definitionId - ID of interaction definition.exitUrl - Url to redirect to after completion of the interaction.context - evaluation context
java.sql.SQLException
HammurapiWebExceptionpublic void setOwner(java.lang.Object owner)
setOwner in interface biz.hammurapi.config.Componentpublic PropertySetFactory getPropertySetFactory()
public void start()
throws biz.hammurapi.config.ConfigurationException
start in interface biz.hammurapi.config.Componentbiz.hammurapi.config.ConfigurationException
public void stop()
throws biz.hammurapi.config.ConfigurationException
stop in interface biz.hammurapi.config.Componentbiz.hammurapi.config.ConfigurationExceptionpublic biz.hammurapi.sql.IdentityManager getIdentityManager()
public biz.hammurapi.web.interaction.sql.InteractionEngine getEngine()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||