43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
namespace LaaProductionWeb.Services.Interfaces
|
|
{
|
|
using LaaProductionWeb.Services.Models.Software;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public interface ISoftwareService
|
|
{
|
|
void AddFunction(short appId, string name);
|
|
|
|
void DeleteFunction(int funcId);
|
|
|
|
short FindAndUpdateSoftware(string name, IEnumerable<string> functions);
|
|
|
|
IEnumerable<SoftwareFunction> GetAllSoftwareFunctions();
|
|
|
|
IEnumerable<SoftwareFunction> GetSoftwareFunctions(short appId);
|
|
|
|
IEnumerable<string> GetSoftwareFunctions(short appId, short userId);
|
|
|
|
SoftwareOverview GetSoftwareOverview(short appId);
|
|
|
|
IEnumerable<Software> GetSoftwareVersions(short appId);
|
|
IEnumerable<SoftwareOverview> GetSoftwares();
|
|
|
|
IEnumerable<SoftwareUser> GetUsers(string username = null);
|
|
|
|
IEnumerable<SoftwareUser> GetUsersWithFunctions(int id = -1, string username = null);
|
|
|
|
int ResetPassword(short userId);
|
|
|
|
int ResetPassword(short userId, string password);
|
|
|
|
void UpdateFunction(int funcId, string name);
|
|
|
|
void UpdateUsersFunctions(Action<UserFunctions> mapper);
|
|
|
|
void UpdateUsersFunctions(Action<FunctionUsers> mapper);
|
|
|
|
void UpdatePasswordHashes();
|
|
}
|
|
}
|