C# Class Carrotware.CMS.Mvc.UI.Admin.Controllers.CmsAdminController

Inheritance: Controller
显示文件 Open project: ninianne98/CarrotCakeCMS-MVC Class Usage Examples

Protected Properties

Property Type Description
cmsHelper CMSConfigHelper
pageHelper ContentPageHelper
securityHelper SecurityHelper
siteHelper SiteData
widgetHelper WidgetHelper

Public Methods

Method Description
ChangePassword ( ) : System.Web.Mvc.ActionResult
CheckDatabase ( ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
ModuleIndex ( ) : System.Web.Mvc.ActionResult
TemplatePreview ( ) : ActionResult
TextWidgetIndex ( ) : ActionResult

Protected Methods

Method Description
AddErrors ( Microsoft.AspNet.Identity.IdentityResult result ) : void
CommentIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.CommentIndexModel model ) : System.Web.Mvc.ActionResult
Dispose ( bool disposing ) : void
GetSaved ( ) : bool?
LoadDatePattern ( ) : void
LoadTimeZoneInfo ( ) : void
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
SetSaved ( ) : void
SetSaved ( bool v ) : void
ShowSaved ( ) : void
ShowSaved ( string msg ) : void
ShowSaved ( string msgTrue, string msgFalse ) : void
SignOut ( ) : void
SiteMapResult ( string viewName ) : ActionResult
SiteMapResult ( string viewName, bool saved, List model ) : ActionResult

Private Methods

Method Description
About ( ) : System.Web.Mvc.ActionResult
AjaxFileUpload ( AjaxFileUploadModel model ) : System.Web.Mvc.JsonResult
BlogPostAddEdit ( ContentPageModel model ) : System.Web.Mvc.ActionResult
BlogPostAddEdit ( System.Guid id, System.Guid versionid, System.Guid importid, string mode ) : System.Web.Mvc.ActionResult
BlogPostCommentIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.CommentIndexModel model ) : System.Web.Mvc.ActionResult
BlogPostCommentIndex ( System.Guid id ) : System.Web.Mvc.ActionResult
BlogPostEdit ( ContentPageModel model ) : System.Web.Mvc.ActionResult
BlogPostEdit ( System.Guid id ) : System.Web.Mvc.ActionResult
BlogPostIndex ( ) : System.Web.Mvc.ActionResult
BlogPostIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.PostIndexModel model ) : System.Web.Mvc.ActionResult
BlogPostTemplateUpdate ( ) : System.Web.Mvc.ActionResult
BlogPostTemplateUpdate ( Carrotware.CMS.Mvc.UI.Admin.Models.PostTemplateUpdateModel model ) : System.Web.Mvc.ActionResult
CategoryAddEdit ( ContentCategory model ) : System.Web.Mvc.ActionResult
CategoryAddEdit ( System.Guid id ) : System.Web.Mvc.ActionResult
CategoryDelete ( ContentCategory model ) : System.Web.Mvc.ActionResult
CategoryIndex ( ) : System.Web.Mvc.ActionResult
CategoryIndex ( PagedData model ) : System.Web.Mvc.ActionResult
ChangePassword ( Carrotware.CMS.Security.Models.ChangePasswordViewModel model ) : Task
CommentAddEdit ( System.Guid id, bool pageComment ) : System.Web.Mvc.ActionResult
CommentAddEdit ( Carrotware.CMS.Mvc.UI.Admin.Models.PostCommentModel model ) : System.Web.Mvc.ActionResult
ContentEdit ( Carrotware.CMS.Mvc.UI.Admin.Models.ContentSingleModel model ) : System.Web.Mvc.ActionResult
ContentEdit ( System.Guid id, System.Guid widgetid, string field, string mode ) : System.Web.Mvc.ActionResult
ContentEditHistory ( ) : System.Web.Mvc.ActionResult
ContentEditHistory ( Carrotware.CMS.Mvc.UI.Admin.Models.ContentHistoryModel model ) : System.Web.Mvc.ActionResult
ContentExport ( System.Guid id, System.Guid node, bool comment, string datebegin, string dateend, string exportwhat ) : System.Web.Mvc.FileResult
ContentImport ( ) : System.Web.Mvc.ActionResult
ContentImport ( Carrotware.CMS.Mvc.UI.Admin.Models.FileUpModel model ) : System.Web.Mvc.ActionResult
ContentSnippetAddEdit ( ContentSnippet model, string mode ) : System.Web.Mvc.ActionResult
ContentSnippetAddEdit ( System.Guid id, System.Guid versionid, string mode ) : System.Web.Mvc.ActionResult
ContentSnippetHistory ( ContentSnippetHistoryModel model ) : System.Web.Mvc.ActionResult
ContentSnippetHistory ( System.Guid id ) : System.Web.Mvc.ActionResult
ContentSnippetIndex ( ) : System.Web.Mvc.ActionResult
ContentSnippetIndex ( PagedData model ) : System.Web.Mvc.ActionResult
ControlPropertiesEdit ( System.Guid id, System.Guid pageid ) : System.Web.Mvc.ActionResult
ControlPropertiesEdit ( Carrotware.CMS.Mvc.UI.Admin.Models.WidgetProperties model ) : System.Web.Mvc.ActionResult
CreateEmptyHome ( ) : void
CreateFirstAdmin ( ) : System.Web.Mvc.ActionResult
CreateFirstAdmin ( Carrotware.CMS.Security.Models.RegisterViewModel model ) : System.Web.Mvc.ActionResult
DatabaseSetup ( string signout ) : System.Web.Mvc.ActionResult
DeleteCommentAddEdit ( Carrotware.CMS.Mvc.UI.Admin.Models.PostCommentModel model ) : System.Web.Mvc.ActionResult
DeleteContentPage ( ContentPageModel model ) : System.Web.Mvc.ActionResult
DeleteContentSnippet ( ContentSnippet model ) : System.Web.Mvc.ActionResult
DuplicateWidgetFrom ( Carrotware.CMS.Mvc.UI.Admin.Models.DuplicateWidgetFromModel model ) : System.Web.Mvc.ActionResult
DuplicateWidgetFrom ( System.Guid id, string zone ) : System.Web.Mvc.ActionResult
FileBrowser ( FileBrowserModel model ) : System.Web.Mvc.ActionResult
FileBrowser ( string fldrpath, string useTiny, string returnvalue, string viewmode ) : System.Web.Mvc.ActionResult
FileBrowserRemove ( FileBrowserModel model ) : System.Web.Mvc.ActionResult
FixBlog ( ) : System.Web.Mvc.ActionResult
FixOrphan ( ) : System.Web.Mvc.ActionResult
ForgotPassword ( ) : System.Web.Mvc.ActionResult
ForgotPassword ( Carrotware.CMS.Security.Models.ForgotPasswordViewModel model ) : Task
ForgotPasswordConfirmation ( ) : System.Web.Mvc.ActionResult
LogOff ( ) : System.Web.Mvc.ActionResult
Login ( string returnUrl ) : System.Web.Mvc.ActionResult
Login ( Carrotware.CMS.Security.Models.LoginViewModel model ) : Task
NotAuthorized ( ) : System.Web.Mvc.ActionResult
PageAddChild ( ContentPageModel model ) : System.Web.Mvc.ActionResult
PageAddChild ( System.Guid id, bool saved ) : System.Web.Mvc.ActionResult
PageAddEdit ( ContentPageModel model ) : System.Web.Mvc.ActionResult
PageAddEdit ( System.Guid id, System.Guid versionid, System.Guid importid, string mode ) : System.Web.Mvc.ActionResult
PageChildSort ( System.Guid id ) : System.Web.Mvc.ActionResult
PageChildSort ( Carrotware.CMS.Mvc.UI.Admin.Models.PageChildSortModel model ) : System.Web.Mvc.ActionResult
PageCommentIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.CommentIndexModel model ) : System.Web.Mvc.ActionResult
PageCommentIndex ( System.Guid id ) : System.Web.Mvc.ActionResult
PageEdit ( ContentPageModel model ) : System.Web.Mvc.ActionResult
PageEdit ( System.Guid id ) : System.Web.Mvc.ActionResult
PageHistory ( System.Guid id, System.Guid versionid ) : System.Web.Mvc.ActionResult
PageHistory ( Carrotware.CMS.Mvc.UI.Admin.Models.PageHistoryModel model ) : System.Web.Mvc.ActionResult
PageIndex ( ) : System.Web.Mvc.ActionResult
PageIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.PageIndexModel model ) : System.Web.Mvc.ActionResult
PageTemplateUpdate ( ) : System.Web.Mvc.ActionResult
PageTemplateUpdate ( Carrotware.CMS.Mvc.UI.Admin.Models.PageTemplateUpdateModel model ) : System.Web.Mvc.ActionResult
PageWidgets ( System.Guid id ) : System.Web.Mvc.ActionResult
PageWidgets ( Carrotware.CMS.Mvc.UI.Admin.Models.WidgetListModel model ) : System.Web.Mvc.ActionResult
RedirectIfUsersExist ( ) : void
RedirectToLocal ( string returnUrl ) : System.Web.Mvc.ActionResult
ResetPassword ( string code ) : System.Web.Mvc.ActionResult
ResetPassword ( Carrotware.CMS.Security.Models.ResetPasswordViewModel model ) : Task
ResetPasswordConfirmation ( ) : System.Web.Mvc.ActionResult
ResetVars ( ) : System.Web.Mvc.ActionResult
RoleAddEdit ( RoleModel model ) : System.Web.Mvc.ActionResult
RoleAddEdit ( string id ) : System.Web.Mvc.ActionResult
RoleAddUser ( RoleModel model ) : System.Web.Mvc.ActionResult
RoleIndex ( ) : System.Web.Mvc.ActionResult
RoleIndex ( PagedData model ) : System.Web.Mvc.ActionResult
RoleRemoveUsers ( RoleModel model ) : System.Web.Mvc.ActionResult
SiteAddUser ( Carrotware.CMS.Mvc.UI.Admin.Models.SiteModel model ) : System.Web.Mvc.ActionResult
SiteContentStatusChange ( ) : System.Web.Mvc.ActionResult
SiteContentStatusChange ( Carrotware.CMS.Mvc.UI.Admin.Models.SiteContentStatusChangeModel model ) : System.Web.Mvc.ActionResult
SiteDataExport ( ) : System.Web.Mvc.ActionResult
SiteDetail ( System.Guid id ) : System.Web.Mvc.ActionResult
SiteDetail ( Carrotware.CMS.Mvc.UI.Admin.Models.SiteModel model ) : System.Web.Mvc.ActionResult
SiteImport ( System.Guid importid ) : System.Web.Mvc.ActionResult
SiteImport ( SiteImportNativeModel model ) : ActionResult
SiteImportWP ( Guid importid ) : ActionResult
SiteImportWP ( SiteImportWordpressModel model ) : ActionResult
SiteIndex ( ) : ActionResult
SiteIndex ( PagedData model ) : ActionResult
SiteInfo ( ) : ActionResult
SiteInfo ( SiteDataModel model ) : ActionResult
SiteMap ( ) : ActionResult
SiteMap ( List model ) : ActionResult
SiteMapPop ( ) : ActionResult
SiteMapPop ( List model ) : ActionResult
SiteRemoveUsers ( SiteModel model ) : ActionResult
SiteSkinEdit ( SiteSkinModel model ) : ActionResult
SiteSkinEdit ( string path, string alt ) : ActionResult
SiteSkinIndex ( ) : ActionResult
SiteSkinIndex ( PagedData model ) : ActionResult
SiteTemplateUpdate ( ) : ActionResult
SiteTemplateUpdate ( SiteTemplateUpdateModel model ) : ActionResult
TagAddEdit ( ContentTag model ) : ActionResult
TagAddEdit ( Guid id ) : ActionResult
TagDelete ( ContentTag model ) : ActionResult
TagIndex ( ) : ActionResult
TagIndex ( PagedData model ) : ActionResult
TextWidgetIndex ( List model ) : ActionResult
UserAdd ( ) : ActionResult
UserAdd ( RegisterViewModel model ) : ActionResult
UserEdit ( Guid id ) : ActionResult
UserEdit ( UserModel model ) : ActionResult
UserIndex ( ) : ActionResult
UserIndex ( PagedData model ) : ActionResult
UserProfile ( ) : ActionResult
UserProfile ( ExtendedUserData model ) : ActionResult
WidgetHistory ( Guid id, bool saved ) : ActionResult
WidgetHistory ( WidgetHistoryModel model ) : ActionResult
WidgetList ( Guid id, string zone ) : ActionResult
WidgetList ( WidgetListModel model ) : ActionResult
WidgetTime ( Guid id, Guid widgetid ) : ActionResult
WidgetTime ( WidgetEditModel model ) : ActionResult

Method Details

AddErrors() protected method

protected AddErrors ( Microsoft.AspNet.Identity.IdentityResult result ) : void
result Microsoft.AspNet.Identity.IdentityResult
return void

ChangePassword() public method

public ChangePassword ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CheckDatabase() public method

public CheckDatabase ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CommentIndex() protected method

protected CommentIndex ( Carrotware.CMS.Mvc.UI.Admin.Models.CommentIndexModel model ) : System.Web.Mvc.ActionResult
model Carrotware.CMS.Mvc.UI.Admin.Models.CommentIndexModel
return System.Web.Mvc.ActionResult

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetSaved() protected method

protected GetSaved ( ) : bool?
return bool?

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

LoadDatePattern() protected method

protected LoadDatePattern ( ) : void
return void

LoadTimeZoneInfo() protected method

protected LoadTimeZoneInfo ( ) : void
return void

ModuleIndex() public method

public ModuleIndex ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

OnAuthorization() protected method

protected OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext
return void

SetSaved() protected method

protected SetSaved ( ) : void
return void

SetSaved() protected method

protected SetSaved ( bool v ) : void
v bool
return void

ShowSaved() protected method

protected ShowSaved ( ) : void
return void

ShowSaved() protected method

protected ShowSaved ( string msg ) : void
msg string
return void

ShowSaved() protected method

protected ShowSaved ( string msgTrue, string msgFalse ) : void
msgTrue string
msgFalse string
return void

SignOut() protected method

protected SignOut ( ) : void
return void

SiteMapResult() protected method

protected SiteMapResult ( string viewName ) : ActionResult
viewName string
return ActionResult

SiteMapResult() protected method

protected SiteMapResult ( string viewName, bool saved, List model ) : ActionResult
viewName string
saved bool
model List
return ActionResult

TemplatePreview() public method

public TemplatePreview ( ) : ActionResult
return ActionResult

TextWidgetIndex() public method

public TextWidgetIndex ( ) : ActionResult
return ActionResult

Property Details

cmsHelper protected_oe property

protected CMSConfigHelper cmsHelper
return CMSConfigHelper

pageHelper protected_oe property

protected ContentPageHelper pageHelper
return ContentPageHelper

securityHelper protected_oe property

protected SecurityHelper securityHelper
return SecurityHelper

siteHelper protected_oe property

protected SiteData siteHelper
return SiteData

widgetHelper protected_oe property

protected WidgetHelper widgetHelper
return WidgetHelper