C# Class cloudscribe.Core.Web.Components.SiteManager

Exibir arquivo Open project: joeaudette/cloudscribe Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddHost ( System.Guid siteId, string hostName ) : Task
AliasIdIsAvailable ( System.Guid requestingSiteId, string requestedAliasId ) : Task
CountOtherSites ( System.Guid currentSiteId ) : Task
CreateAdminUser ( ISiteSettings site ) : Task
CreateNewSite ( ISiteSettings newSite ) : Task
CreateNewSite ( bool isServerAdminSite ) : Task
CreateRequiredRolesAndAdminUser ( SiteSettings site ) : Task
CreateRequiredRolesAndAdminUser ( SiteSettings site, string adminEmail, string adminLoginName, string adminDisplayName, string adminPassword ) : Task
Delete ( ISiteSettings site ) : Task
DeleteHost ( System.Guid siteId, System.Guid hostId ) : Task
EnsureRequiredRoles ( ISiteSettings site ) : Task
ExistingSiteCount ( ) : Task
Fetch ( System.Guid siteId ) : Task
Fetch ( string hostname ) : Task
FolderNameIsAvailable ( System.Guid requestingSiteId, string requestedFolderName ) : Task

returns true if the folder is not in use or is in use only on the passed in ISiteSettings

GetCurrentSiteSettings ( ) : Task
GetPageOtherSites ( System.Guid currentSiteId, int pageNumber, int pageSize ) : Task>
GetRoleCount ( System.Guid siteId ) : Task
GetSiteForDataOperations ( System.Guid siteId ) : Task
GetSiteForEdit ( System.Guid siteId ) : Task
GetSiteHost ( string hostName ) : Task
GetSiteHosts ( System.Guid siteId ) : Task>
GetUserCount ( Guid siteId ) : Task
HostNameIsAvailable ( Guid requestingSiteId, string requestedHostName ) : Task
SiteManager ( SiteContext currentSite, ISiteCommands siteCommands, ISiteQueries siteQueries, IUserCommands userCommands, IUserQueries userQueries, SiteDataProtector dataProtector, IHttpContextAccessor contextAccessor, ILogger logger, IOptions multiTenantOptionsAccessor, IOptions setupOptionsAccessor, CacheHelper cacheHelper ) : cloudscribe.Core.Models
Update ( ISiteSettings site ) : Task

Method Details

AddHost() public method

public AddHost ( System.Guid siteId, string hostName ) : Task
siteId System.Guid
hostName string
return Task

AliasIdIsAvailable() public method

public AliasIdIsAvailable ( System.Guid requestingSiteId, string requestedAliasId ) : Task
requestingSiteId System.Guid
requestedAliasId string
return Task

CountOtherSites() public method

public CountOtherSites ( System.Guid currentSiteId ) : Task
currentSiteId System.Guid
return Task

CreateAdminUser() public method

public CreateAdminUser ( ISiteSettings site ) : Task
site ISiteSettings
return Task

CreateNewSite() public method

public CreateNewSite ( ISiteSettings newSite ) : Task
newSite ISiteSettings
return Task

CreateNewSite() public method

public CreateNewSite ( bool isServerAdminSite ) : Task
isServerAdminSite bool
return Task

CreateRequiredRolesAndAdminUser() public method

public CreateRequiredRolesAndAdminUser ( SiteSettings site ) : Task
site cloudscribe.Core.Models.SiteSettings
return Task

CreateRequiredRolesAndAdminUser() public method

public CreateRequiredRolesAndAdminUser ( SiteSettings site, string adminEmail, string adminLoginName, string adminDisplayName, string adminPassword ) : Task
site cloudscribe.Core.Models.SiteSettings
adminEmail string
adminLoginName string
adminDisplayName string
adminPassword string
return Task

Delete() public method

public Delete ( ISiteSettings site ) : Task
site ISiteSettings
return Task

DeleteHost() public method

public DeleteHost ( System.Guid siteId, System.Guid hostId ) : Task
siteId System.Guid
hostId System.Guid
return Task

EnsureRequiredRoles() public method

public EnsureRequiredRoles ( ISiteSettings site ) : Task
site ISiteSettings
return Task

ExistingSiteCount() public method

public ExistingSiteCount ( ) : Task
return Task

Fetch() public method

public Fetch ( System.Guid siteId ) : Task
siteId System.Guid
return Task

Fetch() public method

public Fetch ( string hostname ) : Task
hostname string
return Task

FolderNameIsAvailable() public method

returns true if the folder is not in use or is in use only on the passed in ISiteSettings
public FolderNameIsAvailable ( System.Guid requestingSiteId, string requestedFolderName ) : Task
requestingSiteId System.Guid
requestedFolderName string
return Task

GetCurrentSiteSettings() public method

public GetCurrentSiteSettings ( ) : Task
return Task

GetPageOtherSites() public method

public GetPageOtherSites ( System.Guid currentSiteId, int pageNumber, int pageSize ) : Task>
currentSiteId System.Guid
pageNumber int
pageSize int
return Task>

GetRoleCount() public method

public GetRoleCount ( System.Guid siteId ) : Task
siteId System.Guid
return Task

GetSiteForDataOperations() public method

public GetSiteForDataOperations ( System.Guid siteId ) : Task
siteId System.Guid
return Task

GetSiteForEdit() public method

public GetSiteForEdit ( System.Guid siteId ) : Task
siteId System.Guid
return Task

GetSiteHost() public method

public GetSiteHost ( string hostName ) : Task
hostName string
return Task

GetSiteHosts() public method

public GetSiteHosts ( System.Guid siteId ) : Task>
siteId System.Guid
return Task>

GetUserCount() public method

public GetUserCount ( Guid siteId ) : Task
siteId Guid
return Task

HostNameIsAvailable() public method

public HostNameIsAvailable ( Guid requestingSiteId, string requestedHostName ) : Task
requestingSiteId Guid
requestedHostName string
return Task

SiteManager() public method

public SiteManager ( SiteContext currentSite, ISiteCommands siteCommands, ISiteQueries siteQueries, IUserCommands userCommands, IUserQueries userQueries, SiteDataProtector dataProtector, IHttpContextAccessor contextAccessor, ILogger logger, IOptions multiTenantOptionsAccessor, IOptions setupOptionsAccessor, CacheHelper cacheHelper ) : cloudscribe.Core.Models
currentSite SiteContext
siteCommands ISiteCommands
siteQueries ISiteQueries
userCommands IUserCommands
userQueries IUserQueries
dataProtector SiteDataProtector
contextAccessor IHttpContextAccessor
logger ILogger
multiTenantOptionsAccessor IOptions
setupOptionsAccessor IOptions
cacheHelper CacheHelper
return cloudscribe.Core.Models

Update() public method

public Update ( ISiteSettings site ) : Task
site ISiteSettings
return Task