Class PortalTemplateController
Provides a readily testable way to manage a Singleton.
Inheritance
System.Object
PortalTemplateController
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Portals.Templates
Assembly: DotNetNuke.dll
Syntax
public class PortalTemplateController : ServiceLocator<IPortalTemplateController, PortalTemplateController>, IPortalTemplateController
Methods
| Improve this Doc View SourceApplyPortalTemplate(Int32, IPortalTemplateInfo, Int32, PortalTemplateModuleAction, Boolean)
Provides a readily testable way to manage a Singleton.
Declaration
public void ApplyPortalTemplate(int portalId, IPortalTemplateInfo template, int administratorId, PortalTemplateModuleAction mergeTabs, bool isNewPortal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalId | |
IPortalTemplateInfo | template | |
System.Int32 | administratorId | |
PortalTemplateModuleAction | mergeTabs | |
System.Boolean | isNewPortal |
ExportPortalTemplate(Int32, String, String, Boolean, IEnumerable<String>, String, IEnumerable<Int32>, Boolean, Boolean, Boolean, Boolean, Boolean)
Provides a readily testable way to manage a Singleton.
Declaration
public (bool success, string message) ExportPortalTemplate(int portalId, string fileName, string description, bool isMultiLanguage, IEnumerable<string> locales, string localizationCulture, IEnumerable<int> exportTabIds, bool includeContent, bool includeFiles, bool includeModules, bool includeProfile, bool includeRoles)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | portalId | |
System.String | fileName | |
System.String | description | |
System.Boolean | isMultiLanguage | |
IEnumerable<System.String> | locales | |
System.String | localizationCulture | |
IEnumerable<System.Int32> | exportTabIds | |
System.Boolean | includeContent | |
System.Boolean | includeFiles | |
System.Boolean | includeModules | |
System.Boolean | includeProfile | |
System.Boolean | includeRoles |
Returns
Type | Description |
---|---|
System.ValueTuple<System.Boolean, System.String> |
GetFactory()
Instantiates a new instance of the PortalTemplateController.
Declaration
protected override Func<IPortalTemplateController> GetFactory()
Returns
Type | Description |
---|---|
Func<IPortalTemplateController> | An instance of IPortalTemplateController. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Abstractions.Portals.Templates.IPortalTemplateController, DotNetNuke.Entities.Portals.Templates.PortalTemplateController>.GetFactory()
|
Improve this Doc
View Source
GetPortalTemplate(String, String)
Provides a readily testable way to manage a Singleton.
Declaration
public IPortalTemplateInfo GetPortalTemplate(string templatePath, string cultureCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | templatePath | |
System.String | cultureCode |
Returns
Type | Description |
---|---|
IPortalTemplateInfo |
GetPortalTemplates()
Provides a readily testable way to manage a Singleton.
Declaration
public IList<IPortalTemplateInfo> GetPortalTemplates()
Returns
Type | Description |
---|---|
IList<IPortalTemplateInfo> |