Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class RestStoreHelper

Inheritance
System.Object
RestStoreHelper
Namespace: EPiServer.Commerce.Shell.Rest
Assembly: EPiServer.Commerce.Shell.dll
Version: 14.26.0
Syntax
public class RestStoreHelper : Object

Constructors

RestStoreHelper(IContentLoader, LocalizationService)

Declaration
public RestStoreHelper(IContentLoader contentLoader, LocalizationService localizationService)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader
EPiServer.Framework.Localization.LocalizationService localizationService

Methods

CheckAccess(ContentReference, AccessLevel, out RestResultBase)

Declaration
public virtual bool CheckAccess(ContentReference contentLink, AccessLevel requiredAccess, out RestResultBase errorResult)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink
EPiServer.Security.AccessLevel requiredAccess
EPiServer.Shell.Services.Rest.RestResultBase errorResult
Returns
Type Description
System.Boolean

GetErrorResult(HttpStatusCode, String)

Declaration
public virtual RestResultBase GetErrorResult(HttpStatusCode statusCode, string errorMessage)
Parameters
Type Name Description
System.Net.HttpStatusCode statusCode
System.String errorMessage
Returns
Type Description
EPiServer.Shell.Services.Rest.RestResultBase