• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class PortalTemplateController

Provides a readily testable way to manage a Singleton.

Inheritance
System.Object
ServiceLocator<IPortalTemplateController, PortalTemplateController>
PortalTemplateController
Implements
IPortalTemplateController
Inherited Members
ServiceLocator<IPortalTemplateController, PortalTemplateController>.Instance
ServiceLocator<IPortalTemplateController, PortalTemplateController>.Factory
ServiceLocator<IPortalTemplateController, PortalTemplateController>.SetTestableInstance(IPortalTemplateController)
ServiceLocator<IPortalTemplateController, PortalTemplateController>.ClearInstance()
ServiceLocator<IPortalTemplateController, PortalTemplateController>.GetFactory()
Namespace: DotNetNuke.Entities.Portals.Templates
Assembly: DotNetNuke.dll
Syntax
public class PortalTemplateController : ServiceLocator<IPortalTemplateController, PortalTemplateController>, IPortalTemplateController

Methods

| Improve this Doc View Source

ApplyPortalTemplate(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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

GetPortalTemplates()

Provides a readily testable way to manage a Singleton.

Declaration
public IList<IPortalTemplateInfo> GetPortalTemplates()
Returns
Type Description
IList<IPortalTemplateInfo>

Implements

IPortalTemplateController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS