Click or drag to resize

CustomHooks Class

The customizable class for implementing custom logics and actions, before or after an action or state change on a specific Ingeniux CMS object.
Inheritance Hierarchy
SystemObject
  Ingeniux.CMSCustomHooks

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux_API_Extensions_Development_Harness (in Ingeniux_API_Extensions_Development_Harness.dll) Version: 10.3.169
Syntax
C#
public class CustomHooks : ICustomHooks, 
	IPageHooks, IContentItemHooks<IPage>, IAssetHooks, ITaxonomyHooks, 
	IUserGroupHooks, IWorkflowHooks, IAssetWorkflowHooks, IPublishHooks

The CustomHooks type exposes the following members.

Constructors
  NameDescription
Public methodCustomHooks
Initializes a new instance of the CustomHooks class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnAfterAssign
This method is invoked after a Page is assigned to a User. DO NOT call Page.AssignUser or Page.AssignGroup inside this method, otherwise it will cause infinite loop
Public methodOnAfterAssignAsset
This method is invoked after an Asset was assigned to a User. DO NOT call contentItem.AssignUser or contentItem.AssignGroup inside this method, otherwise it will cause infinite loop
Public methodOnAfterCategoryDelete
This method is invoked after a Category Node was deleted
Public methodOnAfterCheckIn
This method is invoked after a Page is checked in
Public methodOnAfterCheckInAsset
This method is invoked after an Asset was checked in.
Public methodOnAfterCheckOut
This method is invoked after a Page is checked in
Public methodOnAfterCheckOutAsset
This method is invoked after an Asset was checked out.
Public methodOnAfterCopy
This method is invoked after a Page gets copied
Public methodOnAfterCopyAsset
This method is invoked after an Asset was copied.
Public methodOnAfterCrossLocaleCopy
This method is invoked before a non-Region-Root Page gets copied to under another Region Root.
Public methodOnAfterCrossLocaleCopyAsset
This method is invoked after a non-Region-Root Asset was pasted under another Region Root.
Public methodOnAfterDelete
This method is invoked after a Page moved to recycle folder to removed permanently
Public methodOnAfterDeleteAsset
This method is invoked after an Asset was moved to recycle folder or removed permanently.
Public methodOnAfterEmptyAssetRecycleFolder
This method is invoked after all Assets under the Recycle Folder were permanently removed.
Public methodOnAfterEmptyRecycleFolder
This method is invoked after all Pages under Recycle Folder were permanently removed.
Public methodOnAfterEntitySave
This method is invoked after any type of Ingeniux CMS CSAPI Entity object was saved.
Public methodOnAfterLogout
This method is invoked after a User logged out.
Public methodOnAfterMarkForPublish
This method is invoked after a Page was marked/unmarked for publish
Public methodOnAfterMarkForPublishAsset
This method is invoked after an Asset was marked/unmarked for publish.
Public methodOnAfterMove
This method is invoked after a Page moved to another location
Public methodOnAfterMoveAsset
This method is invoked after an Asset was moved to another location.
Public methodOnAfterMoveTaxonomy
This method is invoked after a Taxonomy Category Node was moved to another location.
Public methodOnAfterPasteSpecial
This method is invoked after a Page gets copied via special command. On CMS UI, the Paste Special command is executed via drag and drop with "Alt" key instead "Ctrl" key pressed. The "Paster Special" command at the core is just a copy command, which this hook method invoked.
Public methodOnAfterRegionRootCopy
This method is invoked after a Region Root Page was cloned into another Region Root Page, with lingual maps established between the two Regions.
Public methodOnAfterRegionRootCopyAsset
This method is invoked after a Region Root Asset was cloned into another Region Root Asset, with lingual maps established between the two Regions.
Public methodOnAfterRollback
This method is invoked after a Page was rolled back to its previous version
Public methodOnAfterRollbackAsset
This method is invoked after an Asset was rolled back to its previous version.
Public methodOnAfterUndoCheckOut
This method is invoked after a Page abandoned its checked out version and back into checked in state.
Public methodOnAfterUndoCheckOutAsset
This method is invoked before a non-Region-Root Asset is copied to under another Region Root.
Public methodOnAfterUpload
This method is invoke after a File Upload got processed by Ingeniux CMS Site Instance server.
Public methodOnAfterUserDelete
This method is invoked after a User was deleted
Public methodOnAfterUserGroupDelete
This method is invoked after a UserGroup was deleted
Public methodOnAfterWorkflowAdvance
This method is invoked after a Workflow advanced through a Transition
Public methodOnAfterWorkflowAdvanceAsset
This method is invoked after a content item was advanced in workflow.
Public methodOnAssetCategorizationChange
This method is invoked association or disassociation between a Category Node and an Asset.
Public methodOnBeforeAssign
This method is invoked before a Page is assigned to a User. DO NOT call Page.AssignUser or Page.AssignGroup inside this method, otherwise it will cause infinite loop
Public methodOnBeforeAssignAsset
This method is invoked before an Asset is assigned to a User. DO NOT call contentItem.AssignUser or contentItem.AssignGroup inside this method, otherwise it will cause an infinite loop.
Public methodOnBeforeCategoryDelete
This method is invoked before a Category Node is deleted
Public methodOnBeforeCheckIn
This method is invoked before a Page is checked in
Public methodOnBeforeCheckInAsset
This method is invoked before an Asset is checked in.
Public methodOnBeforeCheckOut
This method is invoked before a Page is checked out
Public methodOnBeforeCheckOutAsset
This method is invoked before an Asset is checked out.
Public methodOnBeforeCopy
This method is invoked before a Page gets copied
Public methodOnBeforeCopyAsset
This method is invoked before an Asset is copied.
Public methodOnBeforeCrossLocaleCopy
This method is invoked before a non-Region-Root Page gets copied to under another Region Root.
Public methodOnBeforeCrossLocaleCopyAsset
This method is invoked before a non-Region-Root Asset is copied to under another Region Root.
Public methodOnBeforeDelete
This method is invoked before a Page moved to recycle folder to removed permanently
Public methodOnBeforeDeleteAsset
This method is invoked before an Asset moved to recycle folder to removed permanently.
Public methodOnBeforeEmptyAssetRecycleFolder
This method is invoked before all Assets under the Recycle Folder are permanently removed.
Public methodOnBeforeEmptyRecycleFolder
This method is invoked before all Pages under Recycle Folder are permanently removed.
Public methodOnBeforeEntitySave
This method is invoked before any type of Ingeniux CMS CSAPI Entity object is saved
Public methodOnBeforeLogout
This method is invoked before a User attempt to log out.
Public methodOnBeforeMarkForPublish
This method is invoked before a Page is marked/unmarked for publish
Public methodOnBeforeMarkForPublishAsset
This method is invoked before an Asset is marked/unmarked for publish.
Public methodOnBeforeMove
This method is invoked before a Page moved to another location
Public methodOnBeforeMoveAsset
This method is invoked before an Asset is moved to another location.
Public methodOnBeforeMoveTaxonomy
This method is invoked before a Taxonomy Category Node is moved to another location.
Public methodOnBeforePasteSpecial
This method is invoked before a Page gets copied via special command. On CMS UI, the Paste Special command is executed via drag and drop with "Alt" key instead "Ctrl" key pressed. The "Paster Special" command at the core is just a copy command, which this hook method invoked.
Public methodOnBeforePublish
This method is invoked before a Publishing Task is submitted
Public methodOnBeforeRegionRootCopy
This method is invoked before a Region Root Page is cloned into another Region Root Page, with lingual maps established between the two Regions.
Public methodOnBeforeRegionRootCopyAsset
This method is invoked before a Region Root Asset is cloned into another Region Root Asset, with lingual maps established between the two Regions.
Public methodOnBeforeRollback
This method is invoked before a Page is rolled back to its previous version
Public methodOnBeforeRollbackAsset
This method is invoked before an Asset is rolled back to its previous version.
Public methodOnBeforeUndoCheckOut
This method is invoked before a Page abandons its checked out version and back into checked in state.
Public methodOnBeforeUndoCheckOutAsset
This method is invoked before an Asset abandons its checked out version and reverts back to its last checked in version.
Public methodOnBeforeUpload
This method is invoke before a File Upload gets processed by Ingeniux CMS Site Instance server.
Public methodOnBeforeUserDelete
This method is invoked before a User is deleted
Public methodOnBeforeUserGroupDelete
This method is invoked before a UserGroup is deleted
Public methodOnBeforeWorkflowAdvance
This method is invoked before a Workflow advances through a Transition
Public methodOnBeforeWorkflowAdvanceAsset
This method is invoked before a content item is advanced in workflow.
Public methodOnCategoryCreated
This method is invoked after a Category Node was created
Public methodOnCategoryRenamed
This method is invoked after a Category Node was created. DO NOT assign to CategoryNode.Name in third method; otherwise, it will cause infinite loop
Public methodOnNew
This method is invoked after a new Page is created.
Public methodOnNewAsset
This method is invoked after a new Asset is created.
Public methodOnPageCategorizationChange
This method is invoked association or disassociation between a Category Node and an Page.
Public methodOnPublishComplete
This method is invoked after a Publishing Task was completed
Public methodOnRename
This method is invoked after a Page is renamed. DO NOT assign to Page.Name inside the method, otherwise it will cause infinite loop
Public methodOnRenameAsset
This method is invoked after an Asset is renamed. DO NOT call contentItem.Name inside this method, otherwise it will cause an infinite loop.
Public methodOnUpdateAsset
This method is invoked after an edit to an Asset File is saved.
Public methodOnUserCreated
This method is invoked after a User was created
Public methodOnUserGroupCreated
This method is invoked after a UserGroup was created
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Please note that this file is compiled at runtime directly by Ingeniux CMS Site Instance.

The purpose of "API_Extensions_Development_Harnes" project in "Custom" folder is only for development and debugging. It's build result will not be used by Ingeniux CMS Site Instance.

However, the references of " "API_Extensions_Development_Harnes" project will be used during runtime compilation of the this file.

See Also