update directory name and access visibility

This commit is contained in:
Kalarumeth
2022-09-29 08:33:32 +02:00
parent 3ab3afe25e
commit f258a284d6
86 changed files with 253 additions and 361 deletions
@@ -0,0 +1,15 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Repositories;
public interface INonComplianceRepository
{
public string DefaultNonComplianceSource();
public string DefaultNonComplianceReference();
public string DefaultNonComplianceNominative();
public string DefaultNonComplianceDateOfDetection();
public string DefaultNonComplianceProject();
public string DefaultNonComplianceItemCode();
public FieldUrlValue DefaultNonCompliancePortalUrl();
}
@@ -0,0 +1,7 @@
namespace console_spo_utils.Interfaces.Repositories;
public interface IProjectSettingsRepository
{
public string DefaultDlvReason(string projName);
public string DefaultCostumer(string projName);
}
@@ -0,0 +1,11 @@
namespace console_spo_utils.Interfaces.Repositories;
public interface IQuotationRepository
{
public string DefaultIdQuotation(string quotationName);
public string DefaultQuotationName(string quotationName);
public string DefaultQuotationReason(string quotationName);
public string DefaultAuthors(string quotationName);
}
@@ -0,0 +1,11 @@
namespace console_spo_utils.Interfaces.Repositories;
public interface ISubProjectRepository
{
public List<string> GetFromProject(string projName);
public string DefaultDescription(string projName);
public string DefaultItem(string projName);
public string DefaultItemCode(string projName);
public string DefaultItemDescription(string projName);
public string DefaultSerialNumber(string projName);
}
@@ -0,0 +1,6 @@
namespace console_spo_utils.Interfaces.Services;
internal interface INonComplianceBuildService
{
public void CreateIfNotExists(string nonComplianceName);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface INonComplianceDocLibraryService
{
public void Create(string libName, ClientContext ctx);
}
@@ -0,0 +1,9 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface INonComplianceDocSetService
{
public void Create(string nonComplianceName, string docLibraryName, string tenantName, ClientContext ctx);
}
@@ -0,0 +1,11 @@
using Microsoft.SharePoint.Client;
namespace console_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 void EnableFeature(ClientContext ctx);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IProjectDocLibraryService
{
void Create(string projName, ClientContext subSiteContext);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IProjectQuickMenuService
{
void CreateForProject(string projNames, ClientContext subSiteContext);
}
@@ -0,0 +1,8 @@
namespace console_spo_utils.Interfaces.Services;
internal interface IProjectService
{
public void BuildWebParts();
}
@@ -0,0 +1,10 @@
using Microsoft.Extensions.Logging;
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IProjectYearService
{
public void CreateList(string listTitle, ClientContext ctx);
}
@@ -0,0 +1,6 @@
namespace console_spo_utils.Interfaces.Services;
internal interface IQuotationBuildService
{
void CreateIfNotExists(string quotationName);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IQuotationDocLibraryService
{
public void Create(string libName, ClientContext ctx);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IQuotationDocSetService
{
public void Create(string quotationName, string docLibraryName, string tenantName, ClientContext ctx);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface IRightsService
{
void DomainGroupRights(ClientContext ctx, string tenantName, string docLibName = "");
}
@@ -0,0 +1,10 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface ISharePointAuthenticationManager
{
ClientContext GetContext(Uri web);
Task<string> EnsureAccessTokenAsync(Uri resourceUri, string userPrincipalName, string userPassword);
void Dispose();
}
@@ -0,0 +1,14 @@
using console_spo_utils.Enums;
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface ISharePointCustomOperation
{
bool SiteExist(ClientContext ctx);
bool ListExist(ClientContext ctx, string listTitle);
bool FolderExistsInsideList(ClientContext context, string listTitle, string folderName);
bool SiteFeaturesExist(ClientContext ctx, string featureName);
void PalCustomField(ClientContext ctx, PalFieldType et);
public bool ListContentTypeExist(ClientContext ctx, string listTitle, string contentTypeName);
}
@@ -0,0 +1,8 @@
namespace console_spo_utils.Interfaces.Services;
public interface ISharePointStructureBuilder
{
public bool BuildProject(string projName);
public bool BuildQuotation(string quotationName);
public bool BuildNonCompliance(string nonComplianceName);
}
@@ -0,0 +1,23 @@
using System.Security;
namespace console_spo_utils.Interfaces.Services;
internal interface ISiteOptions
{
public string TokenEndpoint { get; }
public string DefaultAadAppId { get; }
public Uri GetProjectYearSite();
public string GetProjYearTenant();
public string GetUser();
public SecureString GetPassword();
public string GetProjListTitle();
public Uri GetSubProjSite(string projName);
string GetQuotationTenant();
Uri GetQuotationSite();
string GetSubProjList(string projName);
public string GetQuotationLibrary();
public Uri GetProjectSite();
public string GetNonComplianceTenant();
public string GetNonComplianceLibrary();
public Uri GetNonComplianceSite();
}
@@ -0,0 +1,9 @@
namespace console_spo_utils.Interfaces.Services;
internal interface ISiteService
{
public bool CreateProjectSiteIfNotExists();
public bool CreateSubSiteIfNotExists(string projName);
public bool CreateQuotationSiteIfNotExists(string quotationName);
public bool CreateNonComplianceSiteIfNotExists(string nonComplianceName);
}
@@ -0,0 +1,8 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface ISubProjectBuilderService
{
bool SubProjectDocSet(string projName, List<string> subProjTitle);
}
@@ -0,0 +1,9 @@
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Interfaces.Services;
internal interface ISubSiteService
{
bool Create(string projName, ClientContext siteContext);
void AddColumnsToListView(string projName, ClientContext subSiteContext);
}
@@ -0,0 +1,11 @@
using console_spo_utils.Enums;
using System.Security;
namespace console_spo_utils.Interfaces.Services;
internal interface ITenantService
{
public void CreateForProject();
public void CreateForQuotation();
public void CreateForNonCompliance();
}
@@ -0,0 +1,9 @@
using Microsoft.SharePoint.Client;
using Microsoft.SharePoint.Client.WebParts;
namespace console_spo_utils.Interfaces.Services;
internal interface IWebpartService
{
public void AddWebPart(Web web, LimitedWebPartManager mgr, string xmlSchema, string listName, string zoneName,int zoneId);
}