Programmer's Guide > Programming and Scripting Techniques > Events > Event Types > CMSSessionConstructEvent Module
  
CMSSessionConstructEvent Module
The CMSSessionConstructEvent module has the following event types:
CMSSessionConstructObject
This event occurs before an in-memory CMSObject has been constructed corresponding to a repository object. This event is similar to the construct ACL callback associated with the sess_add_callback function.
This event type is cancelable. If an event listener calls the preventDefault method, the object will not be constructed. The event handler can perform a customized construction itself and then cancel the default construction by calling preventDefault and setting result to the result of the construction.
* 
Setting result without calling preventDefault will cause the result to be ignored and the default processing to proceed.
The following module properties provide the context information for this event:
logicalId
Represents the object in the repository.
relatedNode
Represents null or a Document used for contextual information during the construction.
Bubbles: Yes
Cancelable: Yes
Context Info: logicalId, relatedNode
CMSSessionPostConstructObject
This event occurs after an object has been constructed. As such, it is not cancelable. There is no equivalent ACL hook for this event.
The following module property provides the context information for this event:
result
Represents the CMSObject which has been constructed.
Bubbles: Yes
Cancelable: No
Context Info: result