Package com.arbortext.epic.cms
Interface CMSSessionConstructEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
CMSSessionConstructEventImpl
The
CMSSessionConstructEvent interface provides specific
contextual information associated with the
CMSSessionConstructEvent extension. These event types
notify programmers of operations that construct in-memory
representations of repository objects.- Since:
- Arbortext 5.4
-
Field Summary
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE -
Method Summary
Modifier and TypeMethodDescriptionshortUsed when the event handler wants to cancel the operation or throw an error exception.Used when the event handler wants to throw an error exception and additionally provide a human-readable error message.The constructed CMS object.voidinitCMSSessionConstructEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, CMSObject resultArg) Initializes the value of anCMSSessionConstructEventcreated through theCMSSessionConstructEventinterface.voidsetErrorCode(short errorCode) Used when the event handler wants to cancel the operation or throw an error exception.voidsetErrorMessage(String errorMessage) Used when the event handler wants to throw an error exception and additionally provide a human-readable error message.voidThe constructed CMS object.Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Method Details
-
getResult
CMSObject getResult()The constructed CMS object. -
setResult
The constructed CMS object. -
getErrorCode
short getErrorCode()Used when the event handler wants to cancel the operation or throw an error exception. This can hold any definedCMSExceptionCodevalue. To cancel the operation, callpreventDefault()and store a value ofOPERATION_CANCELED_ERRintoerrorCode. To cause an error exception, callpreventDefault(), store any other definedCMSExceptionCodevalue intoerrorCode, and optionally store a message intoerrorMessage. -
setErrorCode
void setErrorCode(short errorCode) Used when the event handler wants to cancel the operation or throw an error exception. This can hold any definedCMSExceptionCodevalue. To cancel the operation, callpreventDefault()and store a value ofOPERATION_CANCELED_ERRintoerrorCode. To cause an error exception, callpreventDefault(), store any other definedCMSExceptionCodevalue intoerrorCode, and optionally store a message intoerrorMessage. -
getErrorMessage
String getErrorMessage()Used when the event handler wants to throw an error exception and additionally provide a human-readable error message. To do this, callpreventDefault(), store the appropriate value intoerrorCode, and store a message intoerrorMessage. -
setErrorMessage
Used when the event handler wants to throw an error exception and additionally provide a human-readable error message. To do this, callpreventDefault(), store the appropriate value intoerrorCode, and store a message intoerrorMessage. -
initCMSSessionConstructEvent
void initCMSSessionConstructEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, CMSObject resultArg) Initializes the value of anCMSSessionConstructEventcreated through theCMSSessionConstructEventinterface. This method should only be called before theCMSSessionConstructEventhas been dispatched using thedispatchEventmethod, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.- Parameters:
typeArg- Specifies the event type.canBubbleArg- Specifies whether or not the event can bubble.cancelableArg- Specifies whether or not the event's default action can be prevented.resultArg- Represents the constructed CMS object.
-