Class ReportingFacade
- Namespace
- SWConfigDataClientLib.Proxies.Reporting
- Assembly
- IpPbxCDSClientLib.dll
Facade class for reporting client applications.
public class ReportingFacade : ReportingFacadeBase
- Inheritance
-
SWCFProxy<ReportingFacadeClient, IReportingFacade>ReportingFacade
- Inherited Members
Constructors
ReportingFacade()
Creates instance of ReportingFacade. (For use by Unmanaged Wrapper only)
public ReportingFacade()
Remarks
Use the LibManager to create an instance of this class.
Properties
PoolMaxSize
depcreated
public static int PoolMaxSize { get; set; }
Property Value
PoolMinSize
depcreated
public static int PoolMinSize { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
CheckVersion()
public void CheckVersion()
CreateClient(Binding, EndpointAddress)
protected override ReportingFacadeClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- ReportingFacadeClient
CreateMissingAccountings(DateTime, int)
public void CreateMissingAccountings(DateTime since, int days)
Parameters
CreateReport(ReportType, Guid, SDateTime, SDateTime)
Create and send a manual report. The report will not be stored in the database.
public void CreateReport(ReportType ReportType, Guid Reseller, SDateTime PeriodBegin, SDateTime PeriodEnd)
Parameters
ReportType
ReportTypeReport type. Must be 1 (ReportType.ForInfo) to obtain a manual report.
Reseller
GuidThe reseller for which to generate the report. If there is only 1 reseller configured you may provide Guid.Empty.
PeriodBegin
SDateTimeThe start of the reporting period. This parameter will be ignored as the start time will always be the end time of the last automatic report.
PeriodEnd
SDateTimeThe end of the reporting period. This parameter will be ignored as the end time will always be the current time.
Dispose()
public virtual void Dispose()
FreeForReuse()
public override void FreeForReuse()
GenerateReports(bool)
GenerateReports Test method
public void GenerateReports(bool bAutomatic)
Parameters
bAutomatic
bool
GetCompleteHSWClientList()
Retrieves a read only collection with all clients. Deactivated client are included!
public ClientPrimaryCollection GetCompleteHSWClientList()
Returns
- ClientPrimaryCollection
A ReportListPrimaryCollection
GetCompleteReportList()
Retrieves a read only collection with all reports.
public ReportListPrimaryCollection GetCompleteReportList()
Returns
- ReportListPrimaryCollection
A ReportListPrimaryCollection
GetCompleteResellerList()
Retrieves a read only collection with all resellers. In HSW 1.0 (Albinoni) there will be always exactly one reseller (provider)
public ResellerPrimaryCollection GetCompleteResellerList()
Returns
- ResellerPrimaryCollection
A ResellerPrimaryCollection
GetCurrentUserID()
public int GetCurrentUserID()
Returns
GetCurrentUserName()
public string GetCurrentUserName()
Returns
GetCurrentUserName(ref string)
public int GetCurrentUserName(ref string UserName)
Parameters
UserName
string
Returns
GetDayOfReport()
Gets the monthly day of creating and sending reports for billing
public int GetDayOfReport()
Returns
- int
Day of month
GetLastReportPeriod(ReportType, out SDateTime, out SDateTime)
public void GetLastReportPeriod(ReportType ReportType, out SDateTime PeriodBegin, out SDateTime PeriodEnd)
Parameters
ReportType
ReportTypePeriodBegin
SDateTimePeriodEnd
SDateTime
GetPossibleIpPbxUserNames()
Returns all possible IpPbx User Names of the current user. Can be more than one if the current user is a windows user and multiple IppPbxUser are assigned to his windows account.
public SStringList GetPossibleIpPbxUserNames()
Returns
- SStringList
StringList
GetServerRequestTimeout(ReportingFacadeClient)
protected override TimeSpan GetServerRequestTimeout(ReportingFacadeClient client)
Parameters
client
ReportingFacadeClient
Returns
GetSupportedClientVersions()
public SStringList GetSupportedClientVersions()
Returns
HasRole(BuildInRoles)
public bool HasRole(BuildInRoles eRole)
Parameters
eRole
BuildInRoles
Returns
PingService(ReportingFacadeClient)
protected override void PingService(ReportingFacadeClient cProxy)
Parameters
cProxy
ReportingFacadeClient
RemoveHSWClientDeactivationTime(Guid)
Removes any deactivation date for the given HSWClient. If the HSWClient is already deactivated an exception will be thrown.
public void RemoveHSWClientDeactivationTime(Guid ClientID)
Parameters
ClientID
GuidThe ID of the given HSWClient
RemoveOldReportings()
public ICollection<string> RemoveOldReportings()
Returns
RepairReportsWithoutDocuments()
GenerateReports Test method
public void RepairReportsWithoutDocuments()
ResendReport(Guid)
(Re-)send a previously generated report.
public void ResendReport(Guid ReportDocId)
Parameters
ReportDocId
GuidThe report mail to send.
SetDayOfReport(int)
Sets the monthly day of creating and sending reports for billing
public void SetDayOfReport(int DayOfMonth)
Parameters
DayOfMonth
intThe day
SetHSWClientDeactivationTime(Guid, SDateTime, bool)
Sets a deactivation date for the given HSWClient. A deactivated client will no longer be accounted. A deactivated HSWClient cannot register and will not allow any login. A deactivated client can never be activated again. Before a HSWClient will be deactivated, missing accountings will be added.
public void SetHSWClientDeactivationTime(Guid ClientID, SDateTime deactivationDate, bool processImidiately)
Parameters
ClientID
GuidThe given ClientID
deactivationDate
SDateTimeThe date of the deactivation. Only the date part will be used. Time should be local server time.
processImidiately
boolIf set tu true and the deactivation date is the current date, the deactivation will be done instantly. Otherwise the deactivation will happen in the next accounting phase.
SetResellerEMail(Guid, string)
public void SetResellerEMail(Guid ResellerID, string EMailAddress)