C# Class Umbraco.Belle.Controllers.ContentItemValidationFilterAttribute

Validates the content item
There's various validation happening here both value validation and structure validation to ensure that malicious folks are not trying to post invalid values or to invalid properties.
Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Exibir arquivo Open project: umbraco/Belle

Public Methods

Method Description
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Performs the validation

Private Methods

Method Description
ValidateData ( ContentItemSave postedItem, ContentItemDto realItem, System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
ValidateExistingContent ( ContentItemSave postedItem, System.Web.Http.Controllers.HttpActionContext actionContext, ContentItemDto &found ) : bool

Ensure the content exists

ValidateProperties ( ContentItemSave postedItem, ContentItemDto realItem, System.Web.Http.Controllers.HttpActionContext actionContext ) : bool

Ensure all of the ids in the post are valid

Method Details

OnActionExecuting() public method

Performs the validation
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
return void