C# Class EGSW.Framework.AdminRoleAuthorizeAttribute

Inheritance: System.Web.Mvc.FilterAttribute, IAuthorizationFilter
Mostrar archivo Open project: careerengine/EGSW-Project

Public Methods

Method Description
AdminRoleAuthorizeAttribute ( ) : System
AdminRoleAuthorizeAttribute ( bool dontValidate ) : System
HasAdminAccess ( System.Web.Mvc.AuthorizationContext filterContext ) : bool
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Private Methods

Method Description
GetAdminAuthorizeAttributes ( System.Web.Mvc.ActionDescriptor descriptor ) : IEnumerable
HandleUnauthorizedRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void
IsAdminPageRequested ( System.Web.Mvc.AuthorizationContext filterContext ) : bool

Method Details

AdminRoleAuthorizeAttribute() public method

public AdminRoleAuthorizeAttribute ( ) : System
return System

AdminRoleAuthorizeAttribute() public method

public AdminRoleAuthorizeAttribute ( bool dontValidate ) : System
dontValidate bool
return System

HasAdminAccess() public method

public HasAdminAccess ( System.Web.Mvc.AuthorizationContext filterContext ) : bool
filterContext System.Web.Mvc.AuthorizationContext
return bool

OnAuthorization() public method

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