Files
laatzen/LaaProductionWeb/LaaProduction.Services/Interfaces/ISoftwareService.cs
T

43 lines
1.3 KiB
C#

namespace LaaProduction.Services.Interfaces
{
using LaaProduction.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 windowsUser, string software, 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();
}
}