OpenPetra
Free Administration Software for Non-Profits
|
Manager for the System Defaults of the OpenPetra Site. It can be accessed from the client through the Ict.Petra.Server.MSysMan.Common.WebConnectors TSystemDefaultsConnector. More...
Public Member Functions | |
TSystemDefaults (TDataBase ADataBase=null) | |
constructor More... | |
SSystemDefaultsTable | GetSystemDefaultsTable () |
Returns the System Defaults as a Typed DataTable. More... | |
bool | IsSystemDefaultDefined (String ASystemDefaultName) |
Call this Method to find out whether a System Default is defined, that is, if it exists in the System Defaults table. More... | |
String | GetSystemDefault (String ASystemDefaultName) |
Returns the value of the specified System Default. More... | |
String | GetSystemDefault (String ASystemDefaultName, String ADefault) |
Returns the value of the specified System Default. More... | |
bool | GetBooleanDefault (String ASystemDefaultName, bool ADefault) |
Gets the value of a System Default as a bool. More... | |
bool | GetBooleanDefault (String ASystemDefaultName) |
Gets the value of a System Default as a bool. More... | |
System.Char | GetCharDefault (String ASystemDefaultName, System.Char ADefault) |
Gets the value of a System Default as a char. More... | |
System.Char | GetCharDefault (String ASystemDefaultName) |
Gets the value of a System Default as a char. More... | |
double | GetDoubleDefault (String ASystemDefaultName, double ADefault) |
Gets the value of a System Default as a double. More... | |
double | GetDoubleDefault (String ASystemDefaultName) |
Gets the value of a System Default as a double. More... | |
System.Int16 | GetInt16Default (String ASystemDefaultName, System.Int16 ADefault) |
Gets the value of a System Default as an Int16. More... | |
System.Int16 | GetInt16Default (String ASystemDefaultName) |
Gets the value of a System Default as an Int16. More... | |
System.Int32 | GetInt32Default (String ASystemDefaultName, System.Int32 ADefault) |
Gets the value of a System Default as an Int32. More... | |
System.Int32 | GetInt32Default (String ASystemDefaultName) |
Gets the value of a System Default as an Int32. More... | |
System.Int64 | GetInt64Default (String ASystemDefaultName, System.Int64 ADefault) |
Gets the value of a System Default as an Int64. More... | |
System.Int64 | GetInt64Default (String ASystemDefaultName) |
Gets the value of a System Default as an Int64. More... | |
String | GetStringDefault (String ASystemDefaultName, String ADefault) |
Gets the value of a System Default as a string. More... | |
String | GetStringDefault (String ASystemDefaultName) |
Gets the value of a System Default as a string. More... | |
System.Int64 | GetSiteKeyDefault () |
Gets the SiteKey Sytem Default. More... | |
bool | SetSystemDefault (String AKey, String AValue, TDataBase ADataBase=null) |
Sets the value of a System Default. If the System Default doesn't exist yet it will be created by that call. More... | |
bool | SetSystemDefault (String AKey, String AValue, out bool AAdded, TDataBase ADataBase=null) |
Stores a System Default in the DB. If it was already there it gets updated, if it wasn't there it gets added. More... | |
Static Public Attributes | |
const String | PARTNER_GIFTRECEIPTINGDEFAULTS = "GiftReceiptingDefaults" |
Find Screen Options More... | |
Manager for the System Defaults of the OpenPetra Site. It can be accessed from the client through the Ict.Petra.Server.MSysMan.Common.WebConnectors TSystemDefaultsConnector.
The System Defaults are retrieved from the s_system_defaults table and are put into a Typed DataTable that has the structure of this table.
|
inline |
constructor
|
inline |
Gets the value of a System Default as a bool.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as a bool.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Gets the value of a System Default as a char.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as a char.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Gets the value of a System Default as a double.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as a double.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Gets the value of a System Default as an Int16.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as an Int16.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Gets the value of a System Default as an Int32.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as an Int32.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Gets the value of a System Default as an Int64.
ASystemDefaultName | The System Default for which the value should be returned. |
Do not inquire the 'SiteKey' System Default with this Method! Rather, always use the GetSiteKeyDefault Method!
|
inline |
Gets the value of a System Default as an Int64.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
Do not inquire the 'SiteKey' System Default with this Method! Rather, always use the GetSiteKeyDefault Method!
|
inline |
Gets the SiteKey Sytem Default.
Note: The SiteKey can get changed by a user with the necessary priviledges while being logged in to OpenPetra and this gets reflected when this Method gets called.
|
inline |
Gets the value of a System Default as a string.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Gets the value of a System Default as a string.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
|
inline |
Returns the value of the specified System Default.
The caller doesn't need to know whether the Cache is already populated - if this should be necessary, this function will make a request to populate the cache.
SystemDefault Names are not case sensitive.
ASystemDefaultName | The System Default for which the value should be returned. |
|
inline |
Returns the value of the specified System Default.
The caller doesn't need to know whether the Cache is already populated - if this should be necessary, this function will make a request to populate the cache.
ASystemDefaultName | The System Default for which the value should be returned. |
ADefault | The value that should be returned if the System Default was not found. |
SystemDefault Names are not case sensitive.
|
inline |
Returns the System Defaults as a Typed DataTable.
The caller doesn't need to know whether the Cache is already populated - if this should be necessary, this function will make a request to populate the cache.
|
inline |
Call this Method to find out whether a System Default is defined, that is, if it exists in the System Defaults table.
SystemDefault Names are not case sensitive.
ASystemDefaultName | The System Default that should be checked. |
|
inline |
Stores a System Default in the DB. If it was already there it gets updated, if it wasn't there it gets added.
The change gets reflected in the System Defaults Cache the next time the System Defaults Cache gets accessed.
AKey | Name of the System Default. |
AValue | Value of the System Default. |
AAdded | True if the System Default got added, false if it already existed. |
ADataBase |
SystemDefault Names are not case sensitive.
|
inline |
Sets the value of a System Default. If the System Default doesn't exist yet it will be created by that call.
AKey | Name of new or existing System Default. |
AValue | String Value. |
ADataBase |
|
static |
Find Screen Options