-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c58b3
commit 5b6df1c
Showing
3 changed files
with
113 additions
and
2 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
46 changes: 46 additions & 0 deletions
46
src/Authentication/Services/Interfaces/ISystemUserService.cs
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,46 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Altinn.Platform.Authentication.Model; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Altinn.Platform.Authentication.Services.Interfaces | ||
{ | ||
/// <summary> | ||
/// The service that supports the System User CRUD APIcontroller | ||
/// </summary> | ||
public interface ISystemUserService | ||
{ | ||
/// <summary> | ||
/// Returns the list of SystemUsers this PartyID has registered | ||
/// </summary> | ||
/// <returns></returns> | ||
Task<List<SystemUserResponse>> GetListOfSystemUsersPartyHas(); | ||
|
||
/// <summary> | ||
/// Return a single SystemUser by PartyId and SystemUserId | ||
/// </summary> | ||
/// <returns></returns> | ||
Task<SystemUserResponse> GetSingleSystemUserById(); | ||
|
||
/// <summary> | ||
/// Set the Delete flag on the identified SystemUser | ||
/// </summary> | ||
/// <returns></returns> | ||
Task SetDeleteFlagOnSystemUser(); | ||
|
||
/// <summary> | ||
/// Creates a new SystemUser | ||
/// The unique Id for the systemuser is handled by the db. | ||
/// But the calling client may send a guid for the request of creating a new system user | ||
/// to ensure that there is no mismatch if the same partyId creates several new SystemUsers at the same time | ||
/// </summary> | ||
/// <returns></returns> | ||
Task<SystemUserResponse> CreateSystemUser(); | ||
|
||
/// <summary> | ||
/// Replaces the values for the existing system user with those from the update | ||
/// </summary> | ||
/// <returns></returns> | ||
Task UpdateSystemUserById(); | ||
} | ||
} |
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,62 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
using Altinn.Platform.Authentication.Model; | ||
using Altinn.Platform.Authentication.Services.Interfaces; | ||
|
||
namespace Altinn.Platform.Authentication.Services | ||
{ | ||
/// <summary> | ||
/// The service that supports the SystemUser CRUD APIcontroller | ||
/// </summary> | ||
public class SystemUserService : ISystemUserService | ||
{ | ||
/// <summary> | ||
/// Creates a new SystemUser | ||
/// The unique Id for the systemuser is handled by the db. | ||
/// But the calling client may send a guid for the request of creating a new system user | ||
/// to ensure that there is no mismatch if the same partyId creates several new SystemUsers at the same time | ||
/// </summary> | ||
/// <returns></returns> | ||
public Task<SystemUserResponse> CreateSystemUser() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the list of SystemUsers this PartyID has registered | ||
/// </summary> | ||
/// <returns></returns> | ||
public Task<List<SystemUserResponse>> GetListOfSystemUsersPartyHas() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// Return a single SystemUser by PartyId and SystemUserId | ||
/// </summary> | ||
/// <returns></returns> | ||
public Task<SystemUserResponse> GetSingleSystemUserById() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// Set the Delete flag on the identified SystemUser | ||
/// </summary> | ||
/// <returns></returns> | ||
public Task SetDeleteFlagOnSystemUser() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
/// <summary> | ||
/// Replaces the values for the existing system user with those from the update | ||
/// </summary> | ||
/// <returns></returns> | ||
public Task UpdateSystemUserById() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} | ||
} |