Package com.arbortext.epic.cms
Interface CMSSessionCreateEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
CMSSessionCreateEventImpl
The
CMSSessionCreateEvent interface provides specific
contextual information associated with the
CMSSessionCreateEvent extension. These event types notify
programmers of events related to creating new CMS objects 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 TypeMethodDescriptiongetEnd()DOM endNodeassociated with the event.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 new object.getName()Name of the object being created.Adapter-specific object type string.The CMS object created.getStart()DOM startNodeassociated with the event.The object's version number.voidinitCMSSessionCreateEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String nameArg, String objTypeArg, String folderLogicalIdArg, int flagsArg, Node startArg, Node endArg, String versionArg, CMSObject resultArg) Initializes the value of anCMSSessionCreateEventcreated through theCMSSessionCreateEventinterface.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 new object.voidName of the object being created.voidsetObjType(String objType) Adapter-specific object type string.voidThe CMS object created.Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Method Details
-
getName
String getName()Name of the object being created. -
setName
Name of the object being created. -
getObjType
String getObjType()Adapter-specific object type string. -
setObjType
Adapter-specific object type string. -
getFolderLogicalId
String getFolderLogicalId()Parent folder for the new object. -
setFolderLogicalId
Parent folder for the new object. -
getFlags
int getFlags()Creation options. Same as theflagsparameter of theCMSSession.createNewObject. -
getStart
Node getStart()DOM startNodeassociated with the event. -
getEnd
Node getEnd()DOM endNodeassociated with the event. -
getVersion
String getVersion()The object's version number. The value is represented using CMS-specific syntax. -
getResult
CMSObject getResult()The CMS object created. -
setResult
The CMS object created. -
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. -
initCMSSessionCreateEvent
void initCMSSessionCreateEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String nameArg, String objTypeArg, String folderLogicalIdArg, int flagsArg, Node startArg, Node endArg, String versionArg, CMSObject resultArg) Initializes the value of anCMSSessionCreateEventcreated through theCMSSessionCreateEventinterface. This method should only be called before theCMSSessionCreateEventhas 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.nameArg- Represents the name of the object being created.objTypeArg- Represents an adapter-specific object type string.folderLogicalIdArg- Represents the parent folder for the new object.flagsArg- Same as theflagsparameter of theCMSSession.createNewObjectmethod.startArg- First DOM Node in the object's content.endArg- Last DOM Node in the object's content.versionArg- The object's version number. The value is represented using CMS-specific syntax.resultArg- The created CMS object.
-