public class HDBModelContentEvent extends HDBModelEvent
| Constructor and Description |
|---|
HDBModelContentEvent(de.innovationgate.webgate.api.WGContent content,
java.lang.String modelEventType,
HDBModelParams parameter,
boolean cancelable) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(java.lang.String message)
Cancels the event
|
void |
cancel(java.lang.String message,
java.lang.Throwable throwable)
Cancels the event, giving an exception as reason
|
de.innovationgate.webgate.api.WGContent |
getContent()
The content that triggered the event execution, i.e. on which the event happened.
|
java.lang.String |
getContentClass()
The content class of the content that triggered the event execution, i.e. on which the event happened.
|
de.innovationgate.webgate.api.WGHierarchicalDatabase |
getDb()
The HDB database
|
de.innovationgate.webgate.api.WGContentKey |
getDeletedContentKey()
In case of an deletion event servers the content key of the deleted content
|
de.innovationgate.webgate.api.WGContent |
getEventReceiver()
The content that owns the event currently executed.
|
de.innovationgate.webgate.api.WGContent |
getMoveTargetContent()
On move events: The target content under which the document will get moved
|
HDBModelParams |
getParameter()
The HDBModel param passed to this HDBModel operation
Public for backward compatibility of pre-release event scripts.
|
java.lang.String |
getType()
The HDBModel event type.
|
getCustomParam, getForm, setCustomParampublic HDBModelContentEvent(de.innovationgate.webgate.api.WGContent content,
java.lang.String modelEventType,
HDBModelParams parameter,
boolean cancelable)
public de.innovationgate.webgate.api.WGContent getEventReceiver()
throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetEventReceiver in class HDBModelEventde.innovationgate.webgate.api.WGAPIExceptionpublic void cancel(java.lang.String message,
java.lang.Throwable throwable)
throws de.innovationgate.webgate.api.WGCancelledException
HDBModelEventcancel in class HDBModelEventmessage - The cancelling messagethrowable - A causing exceptionde.innovationgate.webgate.api.WGCancelledExceptionpublic void cancel(java.lang.String message)
throws de.innovationgate.webgate.api.WGCancelledException
HDBModelEventcancel in class HDBModelEventmessage - The cancelling messagede.innovationgate.webgate.api.WGCancelledExceptionpublic de.innovationgate.webgate.api.WGHierarchicalDatabase getDb()
throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetDb in class HDBModelEventde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent getContent()
throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetContent in class HDBModelEventde.innovationgate.webgate.api.WGAPIExceptionpublic HDBModelParams getParameter() throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetParameter in class HDBModelEventde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent getMoveTargetContent()
HDBModelEventgetMoveTargetContent in class HDBModelEventpublic java.lang.String getType()
HDBModelEventgetType in class HDBModelEventpublic java.lang.String getContentClass()
throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetContentClass in class HDBModelEventde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContentKey getDeletedContentKey()
throws de.innovationgate.webgate.api.WGAPIException
HDBModelEventgetDeletedContentKey in class HDBModelEventde.innovationgate.webgate.api.WGAPIException