This commit is contained in:
54
server/AyaNova/biz/Search.cs
Normal file
54
server/AyaNova/biz/Search.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using AyaNova.Util;
|
||||
using AyaNova.Models;
|
||||
|
||||
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
|
||||
public static class Search
|
||||
{
|
||||
// private readonly AyContext ct;
|
||||
// private readonly ILogger<PrimeData> log;
|
||||
|
||||
// public PrimeData(AyContext dbcontext, ILogger<PrimeData> logger)
|
||||
// {
|
||||
// ct = dbcontext;
|
||||
// log = logger;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// Process the keywords into the dictionary
|
||||
/// </summary>
|
||||
public static void ProcessKeywords(AyContext ct, long objectID, AyaType objectType, bool newRecord, string keyWords, string name)
|
||||
{
|
||||
// //get a db and logger
|
||||
// ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("PrimeData");
|
||||
// User u = new User();
|
||||
// u.Active=true;
|
||||
// u.Name = "AyaNova Administrator";
|
||||
// u.Salt = Hasher.GenerateSalt();
|
||||
// u.Login = "manager";
|
||||
// u.Password = Hasher.hash(u.Salt, "l3tm3in");
|
||||
// u.Roles = AuthorizationRoles.BizAdminFull | AuthorizationRoles.OpsAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull;
|
||||
// u.OwnerId = 1;
|
||||
// u.LocaleId=ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;//Ensure primeLocales is called first
|
||||
// u.UserType=UserType.Administrator;
|
||||
// u.UserOptions=new UserOptions(1);
|
||||
// ct.User.Add(u);
|
||||
// ct.SaveChanges();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user