Interface IPublishingStrategy
TODO: This should be obsoleted but if we did that then the Publish/Unpublish events on the content service would show that the param is obsoleted Defines the Publishing Strategy
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IPublishingStrategy
Methods
Publish(IContent, Int32)
Publishes a single piece of Content
Declaration
bool Publish(IContent content, int userId)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | IContent to publish |
System.Int32 | userId | Id of the User issueing the publish operation |
Returns
Type | Description |
---|---|
System.Boolean | True if the publish operation was successfull and not cancelled, otherwise false |
PublishingFinalized(IEnumerable<IContent>, Boolean)
Call to fire event that updating the published content has finalized.
Declaration
void PublishingFinalized(IEnumerable<IContent> content, bool isAllRepublished)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | content | An enumerable list of IContent thats being published |
System.Boolean | isAllRepublished | Boolean indicating whether its all content that is republished |
PublishingFinalized(IContent)
Call to fire event that updating the published content has finalized.
Declaration
void PublishingFinalized(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | IContent thats being published |
Remarks
This seperation of the OnPublished event is done to ensure that the Content has been properly updated (committed unit of work) and xml saved in the db.
PublishWithChildren(IEnumerable<IContent>, Int32)
Publishes a list of Content
Declaration
bool PublishWithChildren(IEnumerable<IContent> content, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | content | An enumerable list of IContent |
System.Int32 | userId | Id of the User issueing the publish operation |
Returns
Type | Description |
---|---|
System.Boolean | True if the publish operation was successfull and not cancelled, otherwise false |
UnPublish(IEnumerable<IContent>, Int32)
Unpublishes a list of Content
Declaration
bool UnPublish(IEnumerable<IContent> content, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | content | An enumerable list of IContent |
System.Int32 | userId | Id of the User issueing the unpublish operation |
Returns
Type | Description |
---|---|
System.Boolean | True if the unpublish operation was successfull and not cancelled, otherwise false |
UnPublish(IContent, Int32)
Unpublishes a single piece of Content
Declaration
bool UnPublish(IContent content, int userId)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | IContent to unpublish |
System.Int32 | userId | Id of the User issueing the unpublish operation |
Returns
Type | Description |
---|---|
System.Boolean | True if the unpublish operation was successfull and not cancelled, otherwise false |
UnPublishingFinalized(IEnumerable<IContent>)
Call to fire event that updating the unpublished content has finalized.
Declaration
void UnPublishingFinalized(IEnumerable<IContent> content)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IContent> | content | An enumerable list of IContent thats being unpublished |
UnPublishingFinalized(IContent)
Call to fire event that updating the unpublished content has finalized.
Declaration
void UnPublishingFinalized(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | IContent thats being unpublished |