public class MicrosoftTeamsFunctions
extends BaseFunctions
| Constructor and Description |
|---|
MicrosoftTeamsFunctions(boolean isExecute,
LogFunctions pFLOG) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
java.lang.String |
getGroovyKey() |
FlexTeamsMessage |
makePipelineStageCompletedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
Generates a formatted message for the Pipeline Stage Complete Event for Teams messaging.
|
FlexTeamsMessage |
makeSnapshotCompleteMessage(java.lang.Object pPayload,
boolean isUserMessage)
Generates a formatted message for the Snapshot Complete Event for Teams messaging.
|
FlexTeamsMessage |
makeTaskCreatedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
Generates a formatted message for the Task Created Event for Teams messaging.
|
FlexTeamsMessage |
makeWorkflowCompletedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
Generates a formatted message for the Workflow Completed Event for Teams messaging.
|
void |
sendTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
java.lang.String pTeamName,
java.lang.String pChannelName,
java.lang.String pMessageText,
java.lang.String pIconURL)
Sends a Microsoft Teams message to a team channel.
|
void |
sendTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
TeamChannelMessageRequestPojo pTeamsMessageRequest,
java.lang.String pTeamName,
java.lang.String pChannelName)
Sends a Microsoft Teams message to a team channel.
|
void |
sendUserTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
java.lang.String pChatName,
java.lang.String pMessageText)
Sends a Microsoft Teams message to a user channel.
|
void |
sendUserTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
UserMessageRequestPojo pUserMessageRequest,
java.lang.String pChatName)
Sends a Microsoft Teams message to a user channel.
|
public MicrosoftTeamsFunctions(boolean isExecute,
LogFunctions pFLOG)
public void sendTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
java.lang.String pTeamName,
java.lang.String pChannelName,
java.lang.String pMessageText,
java.lang.String pIconURL)
throws FlexCheckedException,
FlexNotFoundException
pTeamsMessagingAccountCode - The messaging account code for the Teams account.pTeamName - Name of the team that will receive the message.pChannelName - Name of the channel that the message will be sent to.pMessageText - The text for the message content. Can be plain text or html.pIconURL - The URL for the icon of the sender of the message.FlexNotFoundException - When no Teams Account found for given codeFlexCheckedException - All other exceptionspublic void sendTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
TeamChannelMessageRequestPojo pTeamsMessageRequest,
java.lang.String pTeamName,
java.lang.String pChannelName)
throws FlexCheckedException,
FlexNotFoundException
pTeamsMessagingAccountCode - The messaging account code for the Teams account.pTeamsMessageRequest - TeamChannelMessageRequestPojo containing required information.pTeamName - Name of the team that will receive the message.pChannelName - Name of the channel that the message will be sent to.FlexNotFoundException - When no Teams Account found for given codeFlexCheckedException - All other exceptionspublic void sendUserTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
java.lang.String pChatName,
java.lang.String pMessageText)
throws FlexCheckedException,
FlexNotFoundException
pTeamsMessagingAccountCode - The Messaging account code for the Teams account.pChatName - Name of the chat that the message will be sent to.pMessageText - The text for the message content. Can be plain text or html.FlexNotFoundException - When no Teams Account found for given codeFlexCheckedException - All other exceptionspublic void sendUserTeamsMessage(java.lang.String pTeamsMessagingAccountCode,
UserMessageRequestPojo pUserMessageRequest,
java.lang.String pChatName)
throws FlexCheckedException,
FlexNotFoundException
pTeamsMessagingAccountCode - The Messaging account code for the Teams accountpUserMessageRequest - The UserMessageRequestPojo containing all of the required information.pChatName - Name of the chat that the message will be sent to.FlexNotFoundException - When no Teams Account found for given codeFlexCheckedException - All other exceptionspublic FlexTeamsMessage makeSnapshotCompleteMessage(java.lang.Object pPayload, boolean isUserMessage) throws FlexCheckedException
pPayload - Event payload for the Snapshot Complete Event. Typically (EVENT.payload).isUserMessage - Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channel.FlexCheckedExceptionpublic FlexTeamsMessage makePipelineStageCompletedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload - Event payload for the Snapshot Complete Event. Typically (EVENT.payload).pIsUserMessage - Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channel.FlexCheckedExceptionpublic FlexTeamsMessage makeTaskCreatedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload - The task created payload.pIsUserMessage - Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channelFlexCheckedExceptionpublic FlexTeamsMessage makeWorkflowCompletedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload - The workflow completed payload.pIsUserMessage - Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channelFlexCheckedExceptionpublic java.lang.String getGroovyKey()
public void cleanup()