Class GlobalConfigItems
- Namespace
- SWConfigDataClientLib.Proxies.GlobalConfig
- Assembly
- IpPbxCDSClientLib.dll
Proxy wrapper for GlobalConfigItems. (Set generic of global settings.)
public class GlobalConfigItems : SWCFProxy<GlobalConfigEnumClient, IGlobalConfigEnum>
- Inheritance
-
SWCFProxy<GlobalConfigEnumClient, IGlobalConfigEnum>GlobalConfigItems
Constructors
GlobalConfigItems()
Constructor
public GlobalConfigItems()
Fields
ClassTrace
protected static STraceInfo ClassTrace
Field Value
- STraceInfo
Properties
DefaultAdminProfileID
The ID of default AdminProfile
public int DefaultAdminProfileID { get; set; }
Property Value
DefaultCallAccessProfileID
The ID of default RightsProfile
public int DefaultCallAccessProfileID { get; set; }
Property Value
DefaultEmptyFeatureProfileID
The ID of default FeatureProfile
public int DefaultEmptyFeatureProfileID { get; set; }
Property Value
DefaultFeatureProfileID
The ID of default FeatureProfile
public int DefaultFeatureProfileID { get; set; }
Property Value
DefautLocationID
The ID of default Location
public int DefautLocationID { get; set; }
Property Value
HSWClientID
The ID of the HSWClient
public Guid HSWClientID { get; }
Property Value
HSWLastRegistrationUTC
Time of the last successfull reguistration
public DateTime HSWLastRegistrationUTC { get; }
Property Value
HSWResellerID
The ID of the Reseller
public Guid HSWResellerID { get; }
Property Value
IpPbxServerLocationID
Server Location
public int IpPbxServerLocationID { get; set; }
Property Value
LastRegisteredFaxServer
The host of the last registered fax server. The value will used by the CDS to connect the FaxServer
public string LastRegisteredFaxServer { get; set; }
Property Value
LicenseAndReportingServer
The host of the License and Reporting Service. Use key word Local to indicate that the Reporting Service is on the same machine.
public string LicenseAndReportingServer { get; set; }
Property Value
LicenseAndReportingServerPort
The port to be used at the License and Reporting Service
public int LicenseAndReportingServerPort { get; set; }
Property Value
MaximumNumbersOfConferenceRooms
Get or sets the maximum numbers of conference rooms, this value is used by Admin only
public int MaximumNumbersOfConferenceRooms { get; set; }
Property Value
PublicServerIPAddress
Gets ot sets the public server address for mediastreaming
public IPAddress PublicServerIPAddress { get; set; }
Property Value
PublicServerIPAddressString
Gets ot sets the public server address as string for mediastreaming.
public string PublicServerIPAddressString { get; set; }
Property Value
Remarks
The address string must be parsable by System.Net.IpAddress. Empty string represents empty address.
ServerType
public ServerType ServerType { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
CreateClient(Binding, EndpointAddress)
protected override GlobalConfigEnumClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- GlobalConfigEnumClient
DeleteGlobalConfigItem(string, string, string)
Deletes a single item from the GlobalConfig table.
public void DeleteGlobalConfigItem(string section, string subsection, string key)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
Dispose()
Added for CDS API backward compatibility
public void Dispose()
FreeForReuse()
public override void FreeForReuse()
GetFallbackEnabledStatus()
return true if the fallback is enabled
public bool GetFallbackEnabledStatus()
Returns
GetIsLocal()
public bool GetIsLocal()
Returns
GetServerRequestTimeout(GlobalConfigEnumClient)
protected override TimeSpan GetServerRequestTimeout(GlobalConfigEnumClient client)
Parameters
client
GlobalConfigEnumClient
Returns
PingService(GlobalConfigEnumClient)
protected override void PingService(GlobalConfigEnumClient client)
Parameters
client
GlobalConfigEnumClient
ReadGlobalConfigBinaryItem(string, string, string, byte[])
Retrieves an item value form the GlobalConfigItems table.
public byte[] ReadGlobalConfigBinaryItem(string section, string subsection, string key, byte[] defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
byte[]This value will be returned if the item does not exist
Returns
- byte[]
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigDateTimeItem(string, string, string, DateTime)
Retrieves an item value form the GlobalConfigItems table.
public DateTime ReadGlobalConfigDateTimeItem(string section, string subsection, string key, DateTime defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
DateTimeThis value will be returned if the item does not exist
Returns
- DateTime
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigDecimalItem(string, string, string, decimal)
Retrieves an item value form the GlobalConfigItems table.
public decimal ReadGlobalConfigDecimalItem(string section, string subsection, string key, decimal defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
decimalThis value will be returned if the item does not exist
Returns
- decimal
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigGuidItem(string, string, string, Guid)
Retrieves an item value form the GlobalConfigItems table.
public Guid ReadGlobalConfigGuidItem(string section, string subsection, string key, Guid defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
GuidThis value will be returned if the item does not exist
Returns
- Guid
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigIntItem(string, string, string, int)
Retrieves an item value form the GlobalConfigItems table.
public int ReadGlobalConfigIntItem(string section, string subsection, string key, int defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
intThis value will be returned if the item does not exist
Returns
- int
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigLongItem(string, string, string, long)
Retrieves an item value form the GlobalConfigItems table.
public long ReadGlobalConfigLongItem(string section, string subsection, string key, long defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
longThis value will be returned if the item does not exist
Returns
- long
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
ReadGlobalConfigStringItem(string, string, string, string)
Retrieves an item value form the GlobalConfigItems table.
public string ReadGlobalConfigStringItem(string section, string subsection, string key, string defaultValue)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
defaultValue
stringThis value will be returned if the item does not exist
Returns
- string
Value of the item
Exceptions
- SSystemException
Will be thrown when data type of item in database does not match with the ReadGlobalConfigItem method.
SetFallbackEnabledStatus(bool)
set the global fallback enabled status
public void SetFallbackEnabledStatus(bool enabled)
Parameters
enabled
bool
WriteGlobalConfigItem(string, string, string, byte[])
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, byte[] value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
byte[]The value of the configuration item
WriteGlobalConfigItem(string, string, string, DateTime)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, DateTime value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
DateTimeThe value of the configuration item
WriteGlobalConfigItem(string, string, string, decimal)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, decimal value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
decimalThe value of the configuration item
WriteGlobalConfigItem(string, string, string, Guid)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, Guid value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
GuidThe value of the configuration item
WriteGlobalConfigItem(string, string, string, int)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, int value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
intThe value of the configuration item
WriteGlobalConfigItem(string, string, string, long)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, long value)
Parameters
section
stringSection name
subsection
stringSubsection name
key
stringThe name of the configuration item value
value
longThe value of the configuration item
WriteGlobalConfigItem(string, string, string, string)
Writes a custom configuration item to the database (GlobalConfigItems). If the an item with section, subsection and key already exists, it will be replaced by the value.
public void WriteGlobalConfigItem(string section, string subsection, string key, string value)