Class QuoteConnection
Represent one connection to an ERP system and uses an IQuoteConnector implementation (the real connection) and an SuperOffice.CRM.Sale.QuoteConnectorMediator to wrap the real connection.
Has a connection to the CRM database too, and gets data from it when needed.
Inheritance
QuoteConnection
Assembly: SoDataBase.dll
Syntax
public class QuoteConnection
Constructors
QuoteConnection(QuoteConnectionRow, Int32[], Int32[], Dictionary<String, String>, UserInfo, Boolean)
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
QuoteConnection(String)
Create a connection without a database record.
Declaration
public QuoteConnection(string connectorName)
Parameters
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
AssociateAccessIds
Array of ids containing associates that will have access to this connection.
Declaration
public int[] AssociateAccessIds { get; set; }
Property Value
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
ConnectorName
Name of the connector we are going to use.
Declaration
public string ConnectorName { get; set; }
Property Value
CRMConnectionId
Declaration
public int CRMConnectionId { get; set; }
Property Value
Deleted
Has the connection been deleted?
Declaration
public bool Deleted { get; set; }
Property Value
DisplayDescription
Declaration
public string DisplayDescription { get; set; }
Property Value
DisplayName
Declaration
public string DisplayName { get; set; }
Property Value
ErpConnectionId
Declaration
public int ErpConnectionId { get; set; }
Property Value
ERPName
Declaration
public string ERPName { get; set; }
Property Value
Declaration
public string ExtraData { get; set; }
Property Value
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
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
Rank
Declaration
public int Rank { get; set; }
Property Value
UserGroupAccessIds
Array of ids containing usergroups that will have access to this connection.
Declaration
public int[] UserGroupAccessIds { get; set; }
Property Value
Methods
CheckLicensesFor(IQuoteConnector)
Declaration
public static IQuoteConnector CheckLicensesFor(IQuoteConnector connector)
Parameters
Returns
Initialize()
On-demand initialization of connection
Declaration
public PluginResponseInfo Initialize()
Returns
Initialize(Dictionary<String, String>, UserInfo, Boolean)
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
Returns
Type |
Description |
PluginResponseInfo |
SuperOffice.CRM.Sale.QuoteConnectorMediator wrapping the real connection
|
ToString()
Default toString returning CRMConnectionId, DisplayName and ConnectorName
Declaration
public override string ToString()
Returns
Overrides
Extension Methods
EnumUtil.MapEnums<From, To>(From)