Service update, import changes from web_portal
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using library_spo_utils.Enums;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IFieldEntryDataUpdate
|
||||
{
|
||||
public void FieldUpdate(ClientContext ctx, string listName, string element, FieldUpdateType type);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface INonComplianceBuildService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface INonComplianceDocLibraryService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface INonComplianceDocSetService
|
||||
{
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
using library_spo_utils.Enums;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IOneNoteService
|
||||
{
|
||||
public bool CreateFolderInsideProject(string projName, ClientContext ctx);
|
||||
public bool CreateFolderInsideQuotation(string quotationName, ClientContext ctx);
|
||||
public bool CreateFolderInsideNonCompliance(string quotationName, ClientContext ctx);
|
||||
public bool CreateFolderInsidePurchasing(string purchasingName, ClientContext ctx, PurchType type);
|
||||
public void EnableFeature(ClientContext ctx);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IProjectDocLibraryService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IProjectQuickMenuService
|
||||
{
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IProjectService
|
||||
{
|
||||
public void BuildWebParts();
|
||||
|
||||
|
||||
public void BuildWebParts(string projName);
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.SharePoint.Client;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IProjectYearService
|
||||
{
|
||||
public void CreateList(string listTitle, ClientContext ctx);
|
||||
public void CreateList(string projName, string listTitle, ClientContext ctx);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingOrderBuildService
|
||||
{
|
||||
public void CreateIfNotExists(string purchasingOrder);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingOrderDocLibraryService
|
||||
{
|
||||
public void Create(string libName, ClientContext ctx);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingOrderDocSetService
|
||||
{
|
||||
public void Create(string purchasingOrderName, string docLibraryName, string tenantName, ClientContext ctx);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingPackingSlipBuildService
|
||||
{
|
||||
public void CreateIfNotExists(string purchasingPackingSlipName);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingPackingSlipDocLibraryService
|
||||
{
|
||||
public void Create(string libName, ClientContext ctx);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingPackingSlipDocSetService
|
||||
{
|
||||
public void Create(string purchasingPackingSlipName, string docLibraryName, string tenantName, ClientContext ctx);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingRequestBuildService
|
||||
{
|
||||
public void CreateIfNotExists(string purchasingRequestName);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingRequestDocLibraryService
|
||||
{
|
||||
public void Create(string libName, ClientContext ctx);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface IPurchasingRequestDocSetService
|
||||
{
|
||||
public void Create(string purchasingRequestName, string docLibraryName, string tenantName, ClientContext ctx);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IQuotationBuildService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IQuotationDocLibraryService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IQuotationDocSetService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IRightsService
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISharePointAuthenticationManager
|
||||
{
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using console_spo_utils.Enums;
|
||||
using library_spo_utils.Enums;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISharePointCustomOperation
|
||||
{
|
||||
bool SiteExist(ClientContext ctx);
|
||||
bool ListExist(ClientContext ctx, string listTitle);
|
||||
bool FolderExist(ClientContext ctx, string path);
|
||||
bool FolderExistsInsideList(ClientContext context, string listTitle, string folderName);
|
||||
bool SiteFeaturesExist(ClientContext ctx, string featureName);
|
||||
void PalCustomField(ClientContext ctx, PalFieldType et);
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
public interface ISharePointStructureBuilder
|
||||
{
|
||||
public bool BuildProject(string projName);
|
||||
public bool BuildQuotation(string quotationName);
|
||||
public bool BuildNonCompliance(string nonComplianceName);
|
||||
public bool BuildPurchasingOrder(string purchasingOrderName);
|
||||
public bool BuildPurchasingPackingSlip(string purchasingPackingSlipName);
|
||||
public bool BuildPurchasingRequest(string purchasingRequestName);
|
||||
}
|
||||
@@ -1,23 +1,36 @@
|
||||
using System.Security;
|
||||
using PnP.Core.Model.SharePoint;
|
||||
using System.Security;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISiteOptions
|
||||
{
|
||||
public string TokenEndpoint { get; }
|
||||
public string DefaultAadAppId { get; }
|
||||
public Uri GetProjectYearSite();
|
||||
public string GetProjYearTenant();
|
||||
public Uri GetProjectYearSite(string code);
|
||||
public string GetYear(string code);
|
||||
public bool IsValidDate(string code);
|
||||
public string GetProjYearTenant(string code);
|
||||
public string GetUser();
|
||||
public SecureString GetPassword();
|
||||
public string GetProjListTitle();
|
||||
public string GetProjListTitle(string code);
|
||||
public Uri GetSubProjSite(string projName);
|
||||
string GetQuotationTenant();
|
||||
Uri GetQuotationSite();
|
||||
string GetSubProjList(string projName);
|
||||
public string GetQuotationLibrary();
|
||||
public string GetQuotationLibrary(string code);
|
||||
public Uri GetProjectSite();
|
||||
public string GetNonComplianceTenant();
|
||||
public string GetNonComplianceLibrary();
|
||||
public string GetNonComplianceLibrary(string code);
|
||||
public Uri GetNonComplianceSite();
|
||||
public Uri GetPurchasingSite();
|
||||
public string GetPurchasingOrderTenat();
|
||||
public string GetPurchasingOrderLibrary(string code);
|
||||
public Uri GetPurchasingOrderSite();
|
||||
public string GetPurchasingPackingSlipTenat();
|
||||
public string GetPurchasingPackingSlipLibrary(string code);
|
||||
public Uri GetPurchasingPackingSlipSite();
|
||||
public string GetPurchasingRequestTenat();
|
||||
public string GetPurchasingRequestLibrary(string code);
|
||||
public Uri GetPurchasingRequestSite();
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISiteService
|
||||
{
|
||||
public bool CreateProjectSiteIfNotExists();
|
||||
public bool CreateProjectSiteIfNotExists(string projName);
|
||||
public bool CreateSubSiteIfNotExists(string projName);
|
||||
public bool CreateQuotationSiteIfNotExists(string quotationName);
|
||||
public bool CreateNonComplianceSiteIfNotExists(string nonComplianceName);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISubProjectBuilderService
|
||||
{
|
||||
bool SubProjectDocSet(string projName, List<string> subProjTitle);
|
||||
bool SubProjectDocSet(string projName, List<string> listOfSubProjIds);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ISubSiteService
|
||||
{
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
using console_spo_utils.Enums;
|
||||
using System.Security;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface ITenantService
|
||||
{
|
||||
public void CreateForProject();
|
||||
public void CreateForProject(string projName);
|
||||
public void CreateForQuotation();
|
||||
public void CreateForNonCompliance();
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.SharePoint.Client;
|
||||
using Microsoft.SharePoint.Client.WebParts;
|
||||
|
||||
namespace console_spo_utils.Interfaces.Services;
|
||||
namespace library_spo_utils.Interfaces.Services;
|
||||
|
||||
internal interface IWebpartService
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user