Package com.arbortext.epic.cms
Interface CMSSessionBurstDocumentEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
CMSSessionBurstDocumentEventImpl
The
CMSSessionBurstDocumentEvent interface provides specific
contextual information associated with the
CMSSessionBurstDocument extension. These event types notify
programmers of events related to document bursting and the resultant
objects created in the repository.- 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 TypeMethodDescriptionbooleanIf true, for theCMSSessionBurstDocumentevent, the event handler can override the values in the topLevelName and folderLogicalId properties.For theCMSSessionBurstDocumentevent, this is the document that will be burst.shortUsed 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.intgetFlags()Creation options.Parent folder for the CMS object.Name of the top-level object which will result from bursting the document.voidinitCMSSessionBurstDocumentEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean canOverrideArg, String topLevelNameArg, String folderLogicalIdArg, Document documentArg, int flagsArg) Initializes the value of anCMSSessionBurstDocumentEventcreated through theCMSSessionBurstDocumentEventinterface.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.voidsetFolderLogicalId(String folderLogicalId) Parent folder for the CMS object.voidsetTopLevelName(String topLevelName) Name of the top-level object which will result from bursting the document.Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Method Details
-
getCanOverride
boolean getCanOverride()If true, for theCMSSessionBurstDocumentevent, the event handler can override the values in the topLevelName and folderLogicalId properties. -
getTopLevelName
String getTopLevelName()Name of the top-level object which will result from bursting the document. This may be null or empty which means the name will be auto-generated according to the bursting rules for this adapter. For theCMSSessionBurstDocumentevent, the event handler can override this value ifcanOverrideis true. -
setTopLevelName
Name of the top-level object which will result from bursting the document. This may be null or empty which means the name will be auto-generated according to the bursting rules for this adapter. For theCMSSessionBurstDocumentevent, the event handler can override this value ifcanOverrideis true. -
getFolderLogicalId
String getFolderLogicalId()Parent folder for the CMS object. -
setFolderLogicalId
Parent folder for the CMS object. -
getDocument
Document getDocument()For theCMSSessionBurstDocumentevent, this is the document that will be burst. For theCMSSessionPostBurstDocumentevent, this is the document that was burst. -
getFlags
int getFlags()Creation options. Same as theflagsparameter of theCMSSession.createNewObject. -
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. -
initCMSSessionBurstDocumentEvent
void initCMSSessionBurstDocumentEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean canOverrideArg, String topLevelNameArg, String folderLogicalIdArg, Document documentArg, int flagsArg) Initializes the value of anCMSSessionBurstDocumentEventcreated through theCMSSessionBurstDocumentEventinterface. This method should only be called before theCMSSessionBurstDocumentEventhas 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.canOverrideArg- If true, then, for theCMSSessionBurstDocumentevent, the event handler can override the values in the topLevelName and folderLogicalId properties.topLevelNameArg- Name of the repository object.folderLogicalIdArg- Represents the parent folder for the new object.documentArg- Represents a full path to a resource (file or HTTP) accessible from the client.flagsArg- Represents an adapter-specific format specification.
-