-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from data-altinn-no/feat/xml-descriptions
Add xml descriptions and update dataset alias
- Loading branch information
Showing
40 changed files
with
366 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,63 @@ | ||
namespace Dan.Common.Enums; | ||
|
||
/// <summary> | ||
/// Log action enum | ||
/// </summary> | ||
public enum LogAction | ||
{ | ||
// Used once per accreditation | ||
/// <summary> | ||
/// Used once per accreditation | ||
/// </summary> | ||
AuthorizationGranted = 1, | ||
|
||
// Used per consent request (one accreditation may incur several consent requests, each of which may span | ||
// several datasets | ||
/// <summary> | ||
/// Used per consent request (one accreditation may incur several consent requests, each of which may span | ||
/// several datasets | ||
/// </summary> | ||
ConsentRequested = 2, | ||
|
||
// As with ConsentRequested | ||
/// <summary> | ||
/// As with ConsentRequested | ||
/// </summary> | ||
ConsentGiven = 3, | ||
|
||
// As with ConsentRequested | ||
/// <summary> | ||
/// As with ConsentRequested | ||
/// </summary> | ||
ConsentDenied = 4, | ||
|
||
// Used for each harvest performed, of which there may be several per accreditation | ||
/// <summary> | ||
/// Used for each harvest performed, of which there may be several per accreditation | ||
/// </summary> | ||
DatasetRetrieved = 5, | ||
|
||
// As with ConsentRequested | ||
/// <summary> | ||
/// As with ConsentRequested | ||
/// </summary> | ||
ConsentReminderSent = 6, | ||
|
||
// Used when a open data set harvest is performed | ||
/// <summary> | ||
/// Used when a open data set harvest is performed | ||
/// </summary> | ||
OpenDatasetRetrieved = 7, | ||
|
||
// Used once per accreditation | ||
/// <summary> | ||
/// Used once per accreditation | ||
/// </summary> | ||
AccreditationDeleted = 8, | ||
|
||
// Used per data set requested for each AuthorizationGranted | ||
/// <summary> | ||
/// Used per data set requested for each AuthorizationGranted | ||
/// </summary> | ||
DatasetRequested = 9, | ||
|
||
// Used for each dataset in a consent request | ||
/// <summary> | ||
/// Used for each dataset in a consent request | ||
/// </summary> | ||
DatasetRequiringConsentRequested = 10, | ||
|
||
// Used for each correspondence sent related to consent requests (may be skipped, so counted seperately) | ||
/// <summary> | ||
/// Used for each correspondence sent related to consent requests (may be skipped, so counted seperately) | ||
/// </summary> | ||
CorrespondenceSent = 11, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
namespace Dan.Common.Interfaces; | ||
|
||
namespace Dan.Common.Interfaces; | ||
/// <summary> | ||
/// API Service for fetching entity registries | ||
/// </summary> | ||
public interface IEntityRegistryApiClientService | ||
{ | ||
/// <summary> | ||
/// Get entity registry unit | ||
/// </summary> | ||
public Task<EntityRegistryUnit?> GetUpstreamEntityRegistryUnitAsync(Uri registryApiUri); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
namespace Dan.Common.Models; | ||
|
||
/// <summary> | ||
/// For determining what dataset had data retrieved from and when | ||
/// </summary> | ||
[DataContract] | ||
public class DataRetrieval | ||
{ | ||
/// <summary> | ||
/// Name of dataset that data was retrieved from | ||
/// </summary> | ||
[DataMember(Name = "evidenceCodeName")] | ||
public string? EvidenceCodeName { get; set; } | ||
|
||
/// <summary> | ||
/// When data was retrieved from dataset | ||
/// </summary> | ||
[DataMember(Name = "timeStamp")] | ||
public DateTime TimeStamp { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Dan.Common.Models; | ||
|
||
/// <summary> | ||
/// Model for alias for a dataset | ||
/// </summary> | ||
public class DatasetAlias | ||
{ | ||
/// <summary> | ||
/// Which service context this alias applies to | ||
/// </summary> | ||
public string ServiceContext { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Alias name | ||
/// </summary> | ||
public string DatasetAliasName { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.