C# Class ToSic.SexyContent.AppAssets.AssetEditor

Show file Open project: 2sic/2sxc Class Usage Examples

Public Methods

Method Description
AssetEditor ( System.App app, int templateId, DotNetNuke.Entities.Users.UserInfo userInfo, DotNetNuke.Entities.Portals.PortalSettings portalSettings ) : System
AssetEditor ( System.App app, string path, DotNetNuke.Entities.Users.UserInfo userInfo, DotNetNuke.Entities.Portals.PortalSettings portalSettings, bool global = false ) : System
Create ( string contents ) : bool
EnsureUserMayEditAsset ( string fullPath = null ) : void

Check permissions and if not successful, give detailed explanation

Private Methods

Method Description
EnsureWebConfigExists ( System.App app, string scope ) : void
TemplateAssetsInfo ( Template templ ) : AssetEditInfo

Method Details

AssetEditor() public method

public AssetEditor ( System.App app, int templateId, DotNetNuke.Entities.Users.UserInfo userInfo, DotNetNuke.Entities.Portals.PortalSettings portalSettings ) : System
app System.App
templateId int
userInfo DotNetNuke.Entities.Users.UserInfo
portalSettings DotNetNuke.Entities.Portals.PortalSettings
return System

AssetEditor() public method

public AssetEditor ( System.App app, string path, DotNetNuke.Entities.Users.UserInfo userInfo, DotNetNuke.Entities.Portals.PortalSettings portalSettings, bool global = false ) : System
app System.App
path string
userInfo DotNetNuke.Entities.Users.UserInfo
portalSettings DotNetNuke.Entities.Portals.PortalSettings
global bool
return System

Create() public method

public Create ( string contents ) : bool
contents string
return bool

EnsureUserMayEditAsset() public method

Check permissions and if not successful, give detailed explanation
public EnsureUserMayEditAsset ( string fullPath = null ) : void
fullPath string
return void