public final class ConversationHome extends Object
Modifier and Type | Method and Description |
---|---|
static Conversation |
create(Conversation conversation)
Create an instance of the conversation class
|
static void |
createFromListPost(List<fr.paris.lutece.plugins.chatbot.business.Post> listPosts,
int idScenario)
Create an instance of the conversation class
|
static void |
createFromReplayConversion(List<ReplayConversation> listReplayConversation,
int idScenario)
Create an instance of the conversation class
|
static Conversation |
findByPrimaryKey(int nKey)
Returns an instance of a conversation whose identifier is specified in parameter
|
static List<Conversation> |
getConversationsByVersion(int idScenario,
int idVersion)
Load the data of all the conversation objects of scenario and returns them as a referenceList
|
static List<Conversation> |
getConversationsList()
Load the data of all the conversation objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getConversationsReferenceList()
Load the data of all the conversation objects and returns them as a referenceList
|
static List<Conversation> |
getConversationsReferenceListByScenario(int idScenario)
Load the data of all the conversation objects of scenario and returns them as a referenceList
|
static List<Integer> |
getIdConversationsList()
Load the id of all the conversation objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getVersionsList(int nIdReference)
Load the data of all the referenceItem objects and returns them as a list
|
static void |
remove(int nKey)
Remove the conversation whose identifier is specified in parameter
|
static Conversation |
update(Conversation conversation)
Update of the conversation which is specified in parameter
|
public static Conversation create(Conversation conversation)
conversation
- The instance of the Conversation which contains the informations to storepublic static void createFromListPost(List<fr.paris.lutece.plugins.chatbot.business.Post> listPosts, int idScenario)
conversation
- The instance of the Conversation which contains the informations to storepublic static fr.paris.lutece.util.ReferenceList getVersionsList(int nIdReference)
public static void createFromReplayConversion(List<ReplayConversation> listReplayConversation, int idScenario)
conversation
- The instance of the Conversation which contains the informations to storepublic static Conversation update(Conversation conversation)
conversation
- The instance of the Conversation which contains the data to storepublic static void remove(int nKey)
nKey
- The conversation Idpublic static Conversation findByPrimaryKey(int nKey)
nKey
- The conversation primary keypublic static List<Conversation> getConversationsList()
public static List<Integer> getIdConversationsList()
public static fr.paris.lutece.util.ReferenceList getConversationsReferenceList()
public static List<Conversation> getConversationsReferenceListByScenario(int idScenario)
idScenario
- The id of a scenariopublic static List<Conversation> getConversationsByVersion(int idScenario, int idVersion)
idScenario
- The id of a scenarioCopyright © 2020 City of Paris. All rights reserved.