Class PageStoreBase
The base class that defines the events for page providers / DataFactory.
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class PageStoreBase : IContentEvents, IDisposableConstructors
PageStoreBase()
Default constructor.
Declaration
public PageStoreBase()Remarks
This is only meant to be used in test scenarios.
Methods
CreateSaveEventArgs(IContent, SaveAction, AccessLevel)
Creates an instance of SavePageEventArgs.
Declaration
protected SaveContentEventArgs CreateSaveEventArgs(IContent content, SaveAction action, AccessLevel access)Parameters
| Type | Name | Description | 
|---|---|---|
| IContent | content | The content to save. | 
| SaveAction | action | The requested save action. | 
| AccessLevel | access | The required access level. | 
Returns
| Type | Description | 
|---|---|
| SaveContentEventArgs | A fully initialized SavePageEventArgs instance. | 
Dispose()
Implemenation of System.IDisposable
Declaration
public void Dispose()Dispose(Boolean)
Actual implementation of Dispose.
Declaration
protected virtual void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | 
RaiseCancellableDeleteEvent(String, String, DeleteContentEventArgs)
Raises a cancellable delete event.
Declaration
protected void RaiseCancellableDeleteEvent(string key, string defaultReason, DeleteContentEventArgs eventArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The event identifier. | 
| System.String | defaultReason | The default cancel reason. | 
| DeleteContentEventArgs | eventArgs | The DeleteContentEventArgs instance containing the event data. | 
Remarks
If the events is cancelled a EPiServerCancelException is thrown. Unless the cancelling
handler sets the CancelReason of PageEventArgs, the defaultReason is
used as exception message.
RaiseCancellablePageEvent(String, String, ContentEventArgs)
Raises a cancellable page event.
Declaration
protected void RaiseCancellablePageEvent(string key, string defaultReason, ContentEventArgs eventArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The event identifier. | 
| System.String | defaultReason | The default cancel reason. | 
| ContentEventArgs | eventArgs | The PageEventArgs instance containing the event data. | 
Remarks
If the events is cancelled a EPiServerCancelException is thrown. Unless the cancelling
handler sets the CancelReason of PageEventArgs, the defaultReason is
used as exception message.
RaiseChildrenEvent(String, ChildrenEventArgs)
Raises a page children event.
Declaration
protected bool RaiseChildrenEvent(string key, ChildrenEventArgs eventArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The event identifier. | 
| ChildrenEventArgs | eventArgs | The ChildrenEventArgs instance containing the event data. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the event did not cancel. | 
RaiseDeleteEvent(String, DeleteContentEventArgs)
Raises the specified delete event.
Declaration
protected bool RaiseDeleteEvent(string key, DeleteContentEventArgs eventArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The event identifier. | 
| DeleteContentEventArgs | eventArgs | The DeleteContentEventArgs instance containing the event data. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the event did not cancel. | 
RaisePageEvent(String, ContentEventArgs)
Raises the specified page event.
Declaration
protected bool RaisePageEvent(string key, ContentEventArgs eventArgs)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | key | The event identifier. | 
| ContentEventArgs | eventArgs | The ContentEventArgs instance containing the event data. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the event did not cancel. | 
Events
CheckedInContent
Occurs when a version of a content item has been checked in.
Declaration
public event EventHandler<ContentEventArgs> CheckedInContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavedContent event.
CheckedOutContent
Occurs when a version of a content item has been checked out.
Declaration
public event EventHandler<ContentEventArgs> CheckedOutContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
CheckingInContent
Occurs when a version of a content item is about to be checked in.
Declaration
public event EventHandler<ContentEventArgs> CheckingInContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
CheckingOutContent
Occurs when a version of a content item is about to be checked out.
Declaration
public event EventHandler<ContentEventArgs> CheckingOutContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
CreatedContent
Occurs when a new content item has been saved to the repository.
Declaration
public event EventHandler<ContentEventArgs> CreatedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised before the SavedContent event and a status specific event such as PublishedContent or CheckedInContent.
CreatedContentLanguage
Occurs when a new language branch of a content item has been created.
Declaration
public event EventHandler<ContentEventArgs> CreatedContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised before the SavedContent event and a status specific event such as PublishedContent or CheckedInContent.
CreatingContent
Occurs when a new content item is about to be saved to the repository.
Declaration
public event EventHandler<ContentEventArgs> CreatingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised before the SavingContent event and a status specific event such as PublishingContent or CheckingInContent.
CreatingContentLanguage
Occurs when a new language branch of a content item is about to be created.
Declaration
public event EventHandler<ContentEventArgs> CreatingContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised before the SavingContent event and a status specific event such as PublishingContent or CheckingInContent.
DeletedContent
Occurs when a content item has been deleted from the wastebasket.
Declaration
public event EventHandler<DeleteContentEventArgs> DeletedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<DeleteContentEventArgs> | 
Remarks
Note that this event is not raised when a content item is moved to the wastebasket. At that point only the MovedContent event is raised.
DeletedContentLanguage
Occurs when a language branch of a content item has been deleted.
Declaration
public event EventHandler<ContentEventArgs> DeletedContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletedContentVersion
Occurs when a content item version has been deleted.
Declaration
public event EventHandler<ContentEventArgs> DeletedContentVersionEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletingContent
Occurs when a content item is about to be deleted permanently.
Declaration
public event EventHandler<DeleteContentEventArgs> DeletingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<DeleteContentEventArgs> | 
Remarks
Note that this event is not raised when a content item is about to be moved to the wastebasket. At that point only the MovingContent event is raised.
DeletingContentLanguage
Occurs when a language branch of a content item is about to be deleted.
Declaration
public event EventHandler<ContentEventArgs> DeletingContentLanguageEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
DeletingContentVersion
Occurs when a content item version is about to be deleted permanently.
Declaration
public event EventHandler<ContentEventArgs> DeletingContentVersionEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
FailedLoadingChildren
Occurs when a page list failed for some reason.
Declaration
public event ChildrenEventHandler FailedLoadingChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
Remarks
This event is generated if a LoadingChildrem is NOT followed by a LoadedChildren, i e FailedLoadingChildren is called instead of LoadedChildren. This is typically used if you need to clean up something that was initiated by LoadingChildren.
FailedLoadingContent
Occurs when an exception was raised while a content item was loaded from the repository.
Declaration
public event EventHandler<ContentEventArgs> FailedLoadingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event is raised if a LoadingContent is NOT followed by a LoadedContent, i e FailedLoadingContent is called instead of LoadedContent. This is typically used if you need to clean up something that was initiated by LoadingContent.
FinishedLoadingChildren
Occurs when a list has been loaded from GetChildren
Declaration
public event ChildrenEventHandler FinishedLoadingChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
Remarks
This event is triggered after loading dynamic and personalized data.
LoadedChildren
Occurs when a list has been loaded from GetChildren
Declaration
public event ChildrenEventHandler LoadedChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
Remarks
This event is triggered before loading dynamic and personalized data.
LoadedContent
Occurs when a content item has been loaded from the repository.
Declaration
public event EventHandler<ContentEventArgs> LoadedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadedDefaultContent
Occurs when a new content item has been created and initalized through the GetDefaultContent method.
Declaration
public event EventHandler<ContentEventArgs> LoadedDefaultContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadingChildren
Occurs when a list is requested from GetChildren
Declaration
public event ChildrenEventHandler LoadingChildrenEvent Type
| Type | Description | 
|---|---|
| ChildrenEventHandler | 
LoadingContent
Occurs when a content item are about to be loaded from the repository.
Declaration
public event EventHandler<ContentEventArgs> LoadingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
LoadingDefaultContent
Occurs when a new content item is about to be created and initalized through the GetDefaultContent method.
Declaration
public event EventHandler<ContentEventArgs> LoadingDefaultContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
MovedContent
Occurs when a content item has been moved from one location to another.
Declaration
public event EventHandler<ContentEventArgs> MovedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
Note that this event is also raised when a content item is moved to the wastebasket.
MovingContent
Occurs when a content item is about to be moved from one location to another.
Declaration
public event EventHandler<ContentEventArgs> MovingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
Note that this event is also raised when a content item is about to be moved to the wastebasket.
PublishedContent
Occurs when a content item or a version of a content item has been published.
Declaration
public event EventHandler<ContentEventArgs> PublishedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavedContent event.
PublishingContent
Occurs when a content item or a version of a content item is requested to be published.
Declaration
public event EventHandler<ContentEventArgs> PublishingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
RejectedContent
Occurs when a version of a content item has been rejected.
Declaration
public event EventHandler<ContentEventArgs> RejectedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
RejectingContent
Occurs when a version of a content item is about to be rejected.
Declaration
public event EventHandler<ContentEventArgs> RejectingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
RequestedApproval
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Occurs when a version of a content item has been transitioned to AwaitingApproval state.
Declaration
public event EventHandler<ContentEventArgs> RequestedApprovalEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
RequestingApproval
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Occurs when a version of a content item is about to be put in AwaitingApproval state.
Declaration
public event EventHandler<ContentEventArgs> RequestingApprovalEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
SavedContent
Occurs when an existing content item has been saved to the repository.
Declaration
public event EventHandler<ContentEventArgs> SavedContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised in along with a status specific event such as PublishedContent, RejectedContent or ScheduledContent.
SavingContent
Occurs when an existing content item is about to be saved to the repository.
Declaration
public event EventHandler<ContentEventArgs> SavingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised in along with a status specific event such as PublishingContent, RejectingContent or SchedulingContent.
ScheduledContent
Occurs when a version of a content item has been scheduled to be published.
Declaration
public event EventHandler<ContentEventArgs> ScheduledContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
SchedulingContent
Occurs when a version of a content item is about to be scheduled to be published.
Declaration
public event EventHandler<ContentEventArgs> SchedulingContentEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ContentEventArgs> | 
Remarks
This event will be raised after the SavingContent event.
