Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to interfaces #195

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Moved communication to interface
  • Loading branch information
Bertverbeek4PS committed Nov 22, 2024
commit 1553c254628efdcf68a7b56ce27e41200bc9e62c
6 changes: 2 additions & 4 deletions businessCentral/app/src/ADLSE.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ codeunit 82567 ADLSE
internal procedure selectbc2adlsIntegrations(var AdlsIntegrations: Interface "ADLS Integrations")
var
ADLSESetup: Record "ADLSE Setup";
AzureIntegration: Codeunit "Azure Integration";
FabricLakehouseIntegration: Codeunit "FL Integration";
AzureIntegration: Codeunit "Azure Communication";
FabricLakehouseIntegration: Codeunit "Fabric Communication";
begin
//TODO: Make it extendible
ADLSESetup.GetSingleton();
Expand All @@ -41,6 +41,4 @@ codeunit 82567 ADLSE
Error('The storage type is not supported.');
end;
end;


}
21 changes: 20 additions & 1 deletion businessCentral/app/src/ADLSIntegrations.Interface.al
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
interface "ADLS Integrations"
{
/// <summary>
/// Get the base url of the integration
/// Get the base url of the external system
/// </summary>
procedure GetBaseUrl(): Text

/// <summary>
/// Checks if the setup of bc2adls is all correct
/// </summary>
procedure CheckSetup();

/// <summary>
/// Create a block blob in the external system
/// </summary>
procedure CreateBlockBlob(BlobPath: Text; ADLSECredentials: Codeunit "ADLSE Credentials"; LeaseID: Text; Body: Text; IsJson: Boolean)

/// <summary>
/// Resets the table inside the external system
/// </summary>
procedure ResetTableExport(ltableId: Integer);

procedure Init(TableIDValue: Integer; FieldIdListValue: List of [Integer]; LastFlushedTimeStampValue: BigInteger; EmitTelemetryValue: Boolean)

procedure CheckEntity(CdmDataFormat: Enum "ADLSE CDM Format"; var EntityJsonNeedsUpdate: Boolean; var ManifestJsonsNeedsUpdate: Boolean; SchemaUpdate: Boolean)

procedure CreateEntityContent()
procedure TryCollectAndSendRecord(RecordRef: RecordRef; RecordTimeStamp: BigInteger; var LastTimestampExported: BigInteger)
procedure TryFinish(var LastTimestampExported: BigInteger)
procedure UpdateCdmJsons(EntityJsonNeedsUpdate: Boolean; ManifestJsonsNeedsUpdate: Boolean)
}
Loading