IPublishingTask Interface Ingeniux CMS Content Store API

Represents a task to publish a set of Pages and assets.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public interface IPublishingTask : IEntity, 
	IEntityEvents, IPublishingTaskEvents

The IPublishingTask type exposes the following members.

Properties

  NameDescription
Public propertyCreated
Gets the entity's creation date.
(Inherited from IEntity.)
Public propertyCreationUser
Gets the ID of the User who created this entity.
(Inherited from IEntity.)
Public propertyForcedIncremental
Gets whether this publishing system bypassed change time checking and proceed with a forced incremental publish
Public propertyIsFullPublish
Gets whether this task is for a full publish or an incremental publish. A full publish will forces the publication of marked pages, changed or not, and cleans up the target location. An incremental publish only publishes changed pages and doesn't perform any clean up.
Public propertyLastModified
Gets the date when the entity was most recently modified.
(Inherited from IEntity.)
Public propertyLastModifiedUser
Gets the ID of the User who lasted edited the entity.
(Inherited from IEntity.)
Public propertyName
Gets and sets the entity's name.
(Inherited from IEntity.)
Public propertyPubDoneFilename
Gets the "publishing done" marker file name.
Public propertyPublishingTargetID
Gets the ID of the Publishing Target toward which to publish.
Public propertyPublishingTargetName
Gets the name of the Publishing Target toward which to publish.
Public propertyRootPageID
Gets the ID of the root Page of the Publishing Target toward which to publish.
Public propertySession
Gets the session that retrieved this entity. An entity is always session-specific.
(Inherited from IEntity.)
Public propertySessionId
Gets the unique ID of the session that retrieved this entity.
(Inherited from IEntity.)
Public propertySubmitServerGuid
Gets the unique ID of the CMS server that received this submission.
Public propertySubmitTime
Gets the time when this task was submited.
Public propertySubmitUserID
Gets the user name of the User that submitted this task.
Public propertySubmitUserIP
Gets the IP address of the computer where the user submitted the task.
Public propertySyncDoneFilename
Gets the "synchronization/replication done" marker file name.
Top
Methods

  NameDescription
Public methodAddPage
Adds a new Page to be published.
Public methodExecute
Executes the publishing task.
Public methodPages
Retrieves the information of the Pages to be published.
Public methodPagesCount
Retrieves the count of Pages to be published.
Public methodReadyToExecute
Checks whether this publishing task is ready to be executed.
Public methodValidateData
Validates this entity's data. Implemented by concrete inheriting types.
(Inherited from IEntity.)
Public methodValidateUserPermission
Validates the user permission on the current entity. Implemented by concrete inheriting types. It is called automatically upon saving an entity.
(Inherited from IEntity.)
Top
Events

  NameDescription
Public eventAfterEntitySave
This event is fired after a Entity object is saved.
(Inherited from IEntityEvents.)
Public eventBeforeEntitySave
This event is fired before any Entity object is about to be saved.
(Inherited from IEntityEvents.)
Public eventBeginPublish
This event is fired when a publish starts.
(Inherited from IPublishingTaskEvents.)
Public eventPublishComplete
This event is fired when a Publishing Task finishes executing.
(Inherited from IPublishingTaskEvents.)
Public eventPublishingErrorOccurred
This event is fired when any error occurrs during Publishing Task execution.
(Inherited from IPublishingTaskEvents.)
Public eventPublishStepAdvanced
This event is fired when Publishing Task advances to next step (e.g., when a publish task finishes copying images).
(Inherited from IPublishingTaskEvents.)
Public eventPublishStepUpdated
This event is fired when a Publishing Task finishes publishing one Page.
(Inherited from IPublishingTaskEvents.)
Top
Examples

Serialization:
 <PublishTask PubDoneFileName="publishdone.txt" SyncDoneFilename="synchdone.lck">
  <Settings>
    <IsFullPublish>true</IsFullPublish>
    <PublishingTarget ID="PublishingTargets/23" Name="Production" />
    <RootPage>x3</RootPage>
    <Submitted UTC="true">20140618T19:21:14</Submitted>
    <SubmitUser UserID="ingeniux\\admin1" IPAddress="10.10.2.254" ServerId="5B9D6571-F894-45EF-AD83-D930CEF3E89D" />
  </Settings>
  <Pages Count="3">
    <Page ID="x45" Version="9" TransformOnPublish="false" />
    <Page ID="x789" Version="2" TransformOnPublish="false" />
    <Page ID="x6" Version="13" TransformOnPublish="false" />
  </Pages>
</PublishTask>
See Also

Reference