Class QuoteConnection
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Inherited Members
Namespace: SuperOffice.CRM
Assembly: SoDataBase.dll
Syntax
public class QuoteConnection
Constructors
QuoteConnection(QuoteConnectionRow, int[], int[], Dictionary<string, string>, UserInfo, bool)
Create a QuoteConnection from information in the database. Used by the QuoteConnectionManager to create instances from the database information.
Declaration
public QuoteConnection(QuoteConnectionRow quoteConnectionRow, int[] associateAccesIds, int[] usergroupAccesIds, Dictionary<string, string> connectionConfigFieldInfos, UserInfo user, bool isOnTravel)
Parameters
| Type | Name | Description |
|---|---|---|
| QuoteConnectionRow | quoteConnectionRow | |
| int[] | associateAccesIds | |
| int[] | usergroupAccesIds | |
| Dictionary<string, string> | connectionConfigFieldInfos | |
| UserInfo | user | |
| bool | isOnTravel |
QuoteConnection(string)
Create a connection without a database record.
Declaration
public QuoteConnection(string connectorName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | connectorName | Name of the IQuoteConnector plugin |
Properties
AllAccess
Is this connection accessible to everyone? If not, then the QuoteConnectionAccess table tells us who can access it. UserGroupAccessIds and/or AssociateAccessIds should be filled in if this value is false.
Declaration
public bool AllAccess { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AssociateAccessIds
Array of ids containing associates that will have access to this connection.
Declaration
public int[] AssociateAccessIds { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |
CRMConnectionId
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public int CRMConnectionId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Connector
Returns the QuoteConnectorMediator that wraps the real connector. May return NULL if the connector is not available.
Declaration
public IQuoteConnector Connector { get; }
Property Value
| Type | Description |
|---|---|
| IQuoteConnector |
ConnectorName
Name of the connector we are going to use.
Declaration
public string ConnectorName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Deleted
Has the connection been deleted?
Declaration
public bool Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DisplayDescription
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public string DisplayDescription { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayName
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ERPName
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public string ERPName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ErpConnectionId
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public int ErpConnectionId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ExtraData
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public string ExtraData { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InitializeResponse
What happened when we tried to initialize connector? NULL if the connector has not been initialized yet.
Declaration
public PluginResponseInfo InitializeResponse { get; }
Property Value
| Type | Description |
|---|---|
| PluginResponseInfo |
IsAvailable
Is the connection available for use, or is the connection missing something? False if the Initialization of the connector failed.
Declaration
public bool IsAvailable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Rank
The connections rank.
Declaration
public int Rank { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UserGroupAccessIds
Array of ids containing usergroups that will have access to this connection.
Declaration
public int[] UserGroupAccessIds { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |
Methods
CheckLicensesFor(IQuoteConnector)
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an QuoteConnectorMediator to wrap the real connection. Has a connection to the CRM database too, and gets data from it when needed.
Declaration
public static IQuoteConnector CheckLicensesFor(IQuoteConnector connector)
Parameters
| Type | Name | Description |
|---|---|---|
| IQuoteConnector | connector |
Returns
| Type | Description |
|---|---|
| IQuoteConnector |
Initialize()
On-demand initialization of connection
Declaration
public PluginResponseInfo Initialize()
Returns
| Type | Description |
|---|---|
| PluginResponseInfo |
Initialize(Dictionary<string, string>, UserInfo, bool)
Create a new connection and initialize the connection if neccessary. Subsequent calls have not effect.
Declaration
public PluginResponseInfo Initialize(Dictionary<string, string> connectionConfigFieldInfos, UserInfo user, bool isOnTravel)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, string> | connectionConfigFieldInfos | |
| UserInfo | user | |
| bool | isOnTravel |
Returns
| Type | Description |
|---|---|
| PluginResponseInfo | QuoteConnectorMediator wrapping the real connection |
ToString()
Default toString returning CRMConnectionId, DisplayName and ConnectorName
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |