Fdc3Api
FDC3 intents and context raised from a grid row, and checks for standard FDC3 types.
export interfaceMethods
| Method | Returns | Description |
|---|---|---|
| broadcastFromPrimaryKey(primaryKeyValue, contextType, channel) | Promise<void> | undefined | Broadcasts the given Context from the given Row Node with the given Primary Key Value |
| broadcastFromRow(rowNode, contextType, channel) | Promise<void> | Broadcasts the given Context from the given Row Node |
| buildContextDataForPrimaryKey(contextType, primaryKeyValue) | Context | undefined | Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value |
| buildContextDataFromRow(contextType, rowNode) | Context | Builds FDC3 Context Data based on the given Context Type and Row Node |
| getContextLabel(contextType) | string | Returns the human-friendly label for the given Context Type |
| getDesktopAgent() | DesktopAgent | Returns the FDC3 Desktop Agent |
| isStandardContextType(contextType) | boolean | Whether this context type is one of the FDC3 standard types. |
| isStandardIntentType(intentType) | boolean | Whether this intent is one of the FDC3 standard intents. |
| raiseIntentForContextFromPrimaryKey(primaryKeyValue, contextType, appIdentifier) | Promise<IntentResolution> | undefined | Finds and raises an Intent based on the given Context from the given Row Node with the given Primary Key Value |
| raiseIntentForContextFromRow(rowNode, contextType, appIdentifier) | Promise<IntentResolution> | Finds and raises an Intent based on the given Context from the given Row Node |
| raiseIntentFromPrimaryKey(primaryKeyValue, intent, contextType, appIdentifier) | Promise<IntentResolution> | undefined | Raises an Intent with the given Context from the given Row Node with the given Primary Key Value |
| raiseIntentFromRow(rowNode, intent, contextType, appIdentifier) | Promise<IntentResolution> | Raises an Intent with the given Context from the given Row Node |
Method Details
broadcastFromPrimaryKey
Broadcasts the given Context from the given Row Node with the given Primary Key Value
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, channel?: Channel): Promise<void> | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| primaryKeyValue | string | number | The Primary Key Value |
| contextType | ContextType | The FDC3 Context Type |
| channel | Channel | (optional) Channel to broadcast to; if not provided, the Context will be broadcast to whatever User Channel the app is joined to |
Returns
Broadcasts the given Context from the given Row Node with the given Primary Key Value
Promise<void> | undefined
broadcastFromRow
Broadcasts the given Context from the given Row Node
broadcastFromRow(rowNode: IRowNode, contextType: ContextType, channel?: Channel): Promise<void>;Parameters
| Parameter | Type | Description |
|---|---|---|
| rowNode | IRowNode | The Row Node |
| contextType | ContextType | The FDC3 Context Type |
| channel | Channel | (optional) Channel to broadcast to; if not provided, the Context will be broadcast to whatever User Channel the app is joined to |
Returns
Promise<void>
buildContextDataForPrimaryKey
Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
buildContextDataForPrimaryKey(contextType: ContextType, primaryKeyValue: string | number): Context | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| contextType | ContextType | The FDC3 Context Type |
| primaryKeyValue | string | number | The Primary Key Value |
Returns
Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
Context | undefined
buildContextDataFromRow
Builds FDC3 Context Data based on the given Context Type and Row Node
buildContextDataFromRow(contextType: ContextType, rowNode: IRowNode): Context;Parameters
| Parameter | Type | Description |
|---|---|---|
| contextType | ContextType | The FDC3 Context Type |
| rowNode | IRowNode | The Row Node |
Returns
Builds FDC3 Context Data based on the given Context Type and Row Node
Context
getContextLabel
Returns the human-friendly label for the given Context Type
getContextLabel(contextType: ContextType): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| contextType | ContextType | The FDC3 Context Type |
Returns
The human-friendly label for the given Context Type
string
getDesktopAgent
Returns the FDC3 Desktop Agent
getDesktopAgent(): DesktopAgent;Returns
The FDC3 Desktop Agent
DesktopAgent
isStandardContextType
Whether this context type is one of the FDC3 standard types.
isStandardContextType(contextType: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| contextType | string | Context type to check, for example fdc3.instrument |
Returns
true when this context type is one of the FDC3 standard types
boolean
isStandardIntentType
Whether this intent is one of the FDC3 standard intents.
isStandardIntentType(intentType: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| intentType | string | Intent to check, for example ViewChart |
Returns
true when this intent is one of the FDC3 standard intents
boolean
raiseIntentForContextFromPrimaryKey
Finds and raises an Intent based on the given Context from the given Row Node with the given Primary Key Value
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| primaryKeyValue | string | number | The Primary Key Value |
| contextType | ContextType | The FDC3 Context Type |
| appIdentifier | AppIdentifier | The App Identifier |
Returns
The intent resolution, or undefined when the row cannot be found
Promise<IntentResolution> | undefined
raiseIntentForContextFromRow
Finds and raises an Intent based on the given Context from the given Row Node
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;Parameters
| Parameter | Type | Description |
|---|---|---|
| rowNode | IRowNode | The Row Node |
| contextType | ContextType | The FDC3 Context Type |
| appIdentifier | AppIdentifier | The App Identifier |
Returns
The intent resolution from the app that handled it
Promise<IntentResolution>
raiseIntentFromPrimaryKey
Raises an Intent with the given Context from the given Row Node with the given Primary Key Value
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| primaryKeyValue | string | number | The Primary Key Value |
| intent | Intent | The FDC3 Intent |
| contextType | ContextType | The FDC3 Context Type |
| appIdentifier | AppIdentifier | The App Identifier |
Returns
Raises an Intent with the given Context from the given Row Node with the given Primary Key Value
Promise<IntentResolution> | undefined
raiseIntentFromRow
Raises an Intent with the given Context from the given Row Node
raiseIntentFromRow(rowNode: IRowNode, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;Parameters
| Parameter | Type | Description |
|---|---|---|
| rowNode | IRowNode | The Row Node |
| intent | Intent | The FDC3 Intent |
| contextType | ContextType | The FDC3 Context Type |
| appIdentifier | AppIdentifier | The App Identifier |
Returns
Raises an Intent with the given Context from the given Row Node
Promise<IntentResolution>