Package com.webmethods.portal.event
Interface IPortalEvent
- All Superinterfaces:
IEvent
,INotifiableEvent
,Serializable
- All Known Subinterfaces:
IAddEvent
,IAddNoteEvent
,IAddReferenceEvent
,IAutoClassificationEvent
,ICacheInvalidateEvent
,ICopyEvent
,ICopyReferenceEvent
,ICreateEvent
,IDeleteEvent
,IModifyEvent
,IMoveEvent
,IMoveReferenceEvent
,IPermissionsEvent
,IPortal2ThingsEvent
,IPortal3ThingsEvent
,IPurgeEvent
,IRemoveEvent
,IRemoveReferenceEvent
,IScheduleEvent
,IScheduleManagementEvent
,ISetAcesEvent
,ISetAnonymousEvent
,ISetAuthSchemeEvent
,ISetOwnerEvent
,ISetPolicyEvent
,IThingEvent
,ITransferEvent
,IUpdateEvent
,IWorkspaceUpdateEvent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the operation code associated with this event.int
getOperation
(String operation_name) Looks up the operation code using the operation name.Gets the string representation of the operation code associated with this event.getOperationName
(int operation) Looks up the string representation of the operation code.Gets the notification rendering template name.getOperationTemplateName
(int operation) Looks up the rendering layout name based on the operation code.Gets the id of the relation thing associated with this event.boolean
Gets thefrom
value of the relation associated with this event.int
Gets the status code associated with this event.int
Looks up the status code using the status name.Gets the string representation of the status code associated with this event.getStatusName
(int status) Looks up the status name using the status code.Gets the id of the thing associated with this event.Gets the id of the user associated with this event.boolean
Deliverable event flag which indicates if given event should be delivered to subscribers Normally this is 'true', but in some circumstances we would like to avoid notification on certain eventsMethods inherited from interface com.webmethods.rtl.event.IEvent
getJcrSessionID, getJcrSessionUserData, getSourceIP, getTimestamp, getVMID, isLocalEvent, raise
-
Field Details
-
STATUS_ANY
static final int STATUS_ANY- See Also:
-
STATUS_SUCCESS
static final int STATUS_SUCCESS- See Also:
-
STATUS_DENIED
static final int STATUS_DENIED- See Also:
-
STATUS_ERROR
static final int STATUS_ERROR- See Also:
-
OPERATION_GROUP_PORTAL
static final int OPERATION_GROUP_PORTAL- See Also:
-
OPERATION_GROUP_WORKFLOW
static final int OPERATION_GROUP_WORKFLOW- See Also:
-
OPERATION_ALL
static final int OPERATION_ALL- See Also:
-
OPERATION_NONE
static final int OPERATION_NONE- See Also:
-
OPERATION_CREATE
static final int OPERATION_CREATE- See Also:
-
OPERATION_READ
static final int OPERATION_READ- See Also:
-
OPERATION_UPDATE
static final int OPERATION_UPDATE- See Also:
-
OPERATION_DELETE
static final int OPERATION_DELETE- See Also:
-
OPERATION_ADD
static final int OPERATION_ADD- See Also:
-
OPERATION_REMOVE
static final int OPERATION_REMOVE- See Also:
-
OPERATION_NO_OP
static final int OPERATION_NO_OP- See Also:
-
OPERATION_MOVE
static final int OPERATION_MOVE- See Also:
-
OPERATION_DEFAULT
static final int OPERATION_DEFAULT- See Also:
-
-
Method Details
-
getThingId
IThingID getThingId()Gets the id of the thing associated with this event.- Returns:
IThingID
of the thing
-
getRelationId
IThingID getRelationId()Gets the id of the relation thing associated with this event.- Returns:
IThingID
of the relation
-
getRelationIsFrom
boolean getRelationIsFrom()Gets thefrom
value of the relation associated with this event.- Returns:
- boolean value of relation from
-
getOperation
int getOperation()Gets the operation code associated with this event.- Returns:
- operation code
-
getStatus
int getStatus()Gets the status code associated with this event.- Returns:
- status code
-
getUserId
IThingID getUserId()Gets the id of the user associated with this event.- Returns:
IThingID
of the user
-
getOperationName
String getOperationName()Gets the string representation of the operation code associated with this event. In most cases, it is the verb corresponding to the operation.- Returns:
- operation name
-
getOperationTemplateName
String getOperationTemplateName()Gets the notification rendering template name. The template name usually depends on the operation.- Returns:
- template name
- See Also:
-
getStatusName
String getStatusName()Gets the string representation of the status code associated with this event.- Returns:
- status name
-
getOperationName
Looks up the string representation of the operation code.- Parameters:
operation
- the operation code- Returns:
- operation name. If a name is not found for the code, the string value of the code is returned, for example "123".
-
getOperationTemplateName
Looks up the rendering layout name based on the operation code.- Parameters:
operation
- the operation code- Returns:
- layout name. If the operation code does not have a layout defined, or the operation code is not one of the predefined, an empty string is returned.
-
getOperation
Looks up the operation code using the operation name.- Parameters:
operation_name
- the operation name- Returns:
- operation code name. If the operation name is not known, the returned value is undefined.
-
getStatusName
Looks up the status name using the status code.- Parameters:
status
- the status code- Returns:
- status code name. If the status code is not one of the known one, the string value of the code, for example "123" is returned.
-
getStatus
Looks up the status code using the status name.- Parameters:
status_name
- the status name- Returns:
- status code name. If the status name is not known, the returned value is undefined.
-
isDeliverable
boolean isDeliverable()Deliverable event flag which indicates if given event should be delivered to subscribers Normally this is 'true', but in some circumstances we would like to avoid notification on certain events- Returns:
-