public final class IfsEvent extends Object implements Serializable
Every time a LibraryObject is created, altered, or removed, the Internet
File System server posts a IfsEvent on that LibraryObject by invoking
LibraryObject.postEvent
. This posted event is routed to
the handleEvent
methods of both LibrarySession and that
LibraryObject, not just for the session that triggered the event, but
for all iFS sessions.
IfsEvent has methods to determine the event type (creation, alteration, or removal of a LibraryObject) and the event status (uncommitted, rolled back, or committed). Only "committed" events are propagated between sessions.
IfsEvents also have a subtype, the meaning of which depends on the event type, event status, and LibraryObject. Document management applications can introduce their own subtypes. An IfsEvent's long payload can also be used for application-specific purposes.
A document management application can extend or override the
handleEvent
methods for any ClassObjects it introduces.
In addition, an application may register to receive events on a
specific LibraryObject or class of LibraryObjects by invoking the
registerEventHandler
or registerClassEventHandler
methods of LibrarySession. An application could use this to automatically
update a GUI whenever a displayed object is altered (even if it is altered
by another session).
Modifier and Type | Field and Description |
---|---|
static int |
EVENTSTATUS_COMMITTED
Event status for committed changes.
|
static int |
EVENTSTATUS_ROLLEDBACK
Event status for rollback of uncommitted changes.
|
static int |
EVENTSTATUS_UNCOMMITTED
Event status for uncommitted changes.
|
static int |
EVENTSUBTYPE_ACL_FREED
Subtype for SPECIAL event for a freed ACL.
|
static int |
EVENTSUBTYPE_ACL_INVALIDATED
Subtype for SPECIAL event for ACLs being invalidated.
|
static int |
EVENTSUBTYPE_ATTRIBUTES_RSN_CHANGED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_AUDIT_CERTIFICATE_CHANGED
Subtype for SPECIAL event for new events in an object that reflects
a change in Audit certificate information.
|
static int |
EVENTSUBTYPE_AUDIT_FOLDERPATH_CHANGED
Subtype for SPECIAL event for new events in an object that reflects
a change in the folder path representations used in Auditing.
|
static int |
EVENTSUBTYPE_AUDIT_HISTORY_ALERTED
Subtype for SPECIAL event for new events in an object that reflects
new Audit history events.
|
static int |
EVENTSUBTYPE_AUDIT_TYPES_REGISTERED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_CLASSOBJECT_ATTRIBUTE_ADDED_OR_REMOVED
Subtype for SPECIAL event for a ClassObject having an
Attribute either added or removed.
|
static int |
EVENTSUBTYPE_CONTENTQUOTA_CONSUMPTION_CHANGE
Subtype for SPECIAL event for indicating content being created.
|
static int |
EVENTSUBTYPE_CREATE_BROADCAST
Subtype for CREATEINSTANCE events which needs to be broadcast
to other services.
|
static int |
EVENTSUBTYPE_CREATE_NOBROADCAST
Subtype for CREATEINSTANCE events which do not need to be broadcast
to other services.
|
static int |
EVENTSUBTYPE_DETAILS_CHANGED
Subtype for SPECIAL event for details changing in a master/detail
object relationship.
|
static int |
EVENTSUBTYPE_GENERAL_ALERT
Subtype for SPECIAL event for a general alert, to be interpreted by the
receiving event handler.
|
static int |
EVENTSUBTYPE_GROUPMEMBER_ADDED
Subtype for SPECIAL event for members being added to a group.
|
static int |
EVENTSUBTYPE_GROUPMEMBER_REMOVED
Subtype for SPECIAL event for members being removed from a group.
|
static int |
EVENTSUBTYPE_PERMISSIONBUNDLE_INVALIDATED
Subtype for SPECIAL event for PermissionBundles being invalidated.
|
static int |
EVENTSUBTYPE_PROPERTY_ADDED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_PROPERTY_REMOVED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_QUARANTINE
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_RELATIONSHIP_ADDED
Subtype for SPECIAL event for Items added to an object.
|
static int |
EVENTSUBTYPE_RELATIONSHIP_REMOVED
Subtype for SPECIAL event for Items removed from an object.
|
static int |
EVENTSUBTYPE_RELATIONSHIP_RENAMED
Subtype for SPECIAL event for Items of an object being renamed.
|
static int |
EVENTSUBTYPE_RELATIONSHIPS_CHANGED
Subtype for SPECIAL event for Relationships changed.
|
static int |
EVENTSUBTYPE_RUNTIMESTATE_CHANGE_REQUEST
Deprecated.
9.3.4: no longer recognized by the runtime system
|
static int |
EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERALERT
Subtype for SPECIAL event for runtime state ControllerAlert posted.
|
static int |
EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERREPLY
Subtype for SPECIAL event for runtime state ControllerReply posted.
|
static int |
EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERREQUEST
Subtype for SPECIAL event for runtime state ControllerRequest posted.
|
static int |
EVENTSUBTYPE_SECURITY_CHANGED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_SERVICE_KEEP_ALIVE
Subtype for SPECIAL event for indicating a service is alive.
|
static int |
EVENTSUBTYPE_SESSION_LOCK_FREED
Subtype for SPECIAL event for freeing an object with a session lock.
|
static int |
EVENTSUBTYPE_SESSION_LOCK_OBTAINED
Subtype for SPECIAL event for obtaining a session lock.
|
static int |
EVENTSUBTYPE_SESSION_LOCK_RELEASED
Subtype for SPECIAL event for releasing a session lock.
|
static int |
EVENTSUBTYPE_SHARED_STATE_INVALIDATED
Subtype for SPECIAL event for Oracle use.
|
static int |
EVENTSUBTYPE_UNKNOWN
Unknown event subtype.
|
static int |
EVENTTYPE_CREATEINSTANCE
Event type for creation of new objects.
|
static int |
EVENTTYPE_FREE
Event type for freeing existing objects.
|
static int |
EVENTTYPE_SETATTRIBUTES
Event type for alteration of existing objects.
|
static int |
EVENTTYPE_SPECIAL
Event type for special events, as described by the event
subtype.
|
static int |
EVENTTYPE_UNKNOWN
Unknown event type.
|
protected Long |
m_ClassId
The class id of the LibraryObject posting the event.
|
protected int |
m_EventStatus
The enumerated event status.
|
protected int |
m_EventSubtype
The event subtype.
|
protected int |
m_EventType
The enumerated event type.
|
protected Long |
m_Id
The id of the LibraryObject posting the event.
|
protected long |
m_LongPayload
The long payload.
|
protected Long |
m_ServiceId
The service id of the LibraryObject posting the event.
|
protected Long |
m_SessionId
The session id of the LibraryObject posting the event.
|
Constructor and Description |
---|
IfsEvent(Long id,
Long classId,
Long sessionId,
Long serviceId,
int eventType,
int eventSubtype,
int eventStatus,
long longPayload)
Internal use only: Constructs a IfsEvent.
|
Modifier and Type | Method and Description |
---|---|
Long |
getClassId()
Gets the class id of the LibraryObject that posted the event.
|
int |
getEventStatus()
Gets the event status.
|
int |
getEventSubtype()
Gets the event subtype.
|
int |
getEventType()
Gets the event type.
|
Long |
getId()
Gets the id of the LibraryObject that posted the event.
|
long |
getLongPayload()
Gets the long payload.
|
Long |
getServiceId()
Gets the service id of the LibraryObject that posted the event.
|
Long |
getSessionId()
Gets the session id of the LibraryObject that posted the event.
|
String |
toString()
Convert to English string representation.
|
String |
toString(String targetName)
Convert to English string representation
|
public static final int EVENTTYPE_UNKNOWN
public static final int EVENTTYPE_CREATEINSTANCE
public static final int EVENTTYPE_SETATTRIBUTES
public static final int EVENTTYPE_FREE
public static final int EVENTTYPE_SPECIAL
public static final int EVENTSUBTYPE_UNKNOWN
public static final int EVENTSUBTYPE_CREATE_BROADCAST
public static final int EVENTSUBTYPE_CREATE_NOBROADCAST
public static final int EVENTSUBTYPE_ACL_INVALIDATED
public static final int EVENTSUBTYPE_ACL_FREED
public static final int EVENTSUBTYPE_RELATIONSHIPS_CHANGED
public static final int EVENTSUBTYPE_CLASSOBJECT_ATTRIBUTE_ADDED_OR_REMOVED
public static final int EVENTSUBTYPE_AUDIT_HISTORY_ALERTED
public static final int EVENTSUBTYPE_SESSION_LOCK_OBTAINED
public static final int EVENTSUBTYPE_SESSION_LOCK_RELEASED
public static final int EVENTSUBTYPE_SERVICE_KEEP_ALIVE
public static final int EVENTSUBTYPE_CONTENTQUOTA_CONSUMPTION_CHANGE
public static final int EVENTSUBTYPE_RELATIONSHIP_ADDED
public static final int EVENTSUBTYPE_RELATIONSHIP_REMOVED
public static final int EVENTSUBTYPE_RELATIONSHIP_RENAMED
public static final int EVENTSUBTYPE_DETAILS_CHANGED
public static final int EVENTSUBTYPE_SESSION_LOCK_FREED
public static final int EVENTSUBTYPE_ATTRIBUTES_RSN_CHANGED
public static final int EVENTSUBTYPE_SHARED_STATE_INVALIDATED
public static final int EVENTSUBTYPE_QUARANTINE
public static final int EVENTSUBTYPE_PROPERTY_ADDED
public static final int EVENTSUBTYPE_PROPERTY_REMOVED
public static final int EVENTSUBTYPE_SECURITY_CHANGED
public static final int EVENTSUBTYPE_AUDIT_TYPES_REGISTERED
public static final int EVENTSUBTYPE_AUDIT_FOLDERPATH_CHANGED
public static final int EVENTSUBTYPE_AUDIT_CERTIFICATE_CHANGED
public static final int EVENTSUBTYPE_PERMISSIONBUNDLE_INVALIDATED
public static final int EVENTSUBTYPE_GENERAL_ALERT
public static final int EVENTSUBTYPE_RUNTIMESTATE_CHANGE_REQUEST
This is now obsolete.
public static final int EVENTSUBTYPE_GROUPMEMBER_ADDED
public static final int EVENTSUBTYPE_GROUPMEMBER_REMOVED
public static final int EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERREQUEST
public static final int EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERREPLY
public static final int EVENTSUBTYPE_RUNTIMESTATE_CONTROLLERALERT
public static final int EVENTSTATUS_UNCOMMITTED
public static final int EVENTSTATUS_ROLLEDBACK
public static final int EVENTSTATUS_COMMITTED
protected Long m_Id
protected Long m_ClassId
protected Long m_SessionId
protected Long m_ServiceId
protected int m_EventType
protected int m_EventSubtype
protected int m_EventStatus
protected long m_LongPayload
public IfsEvent(Long id, Long classId, Long sessionId, Long serviceId, int eventType, int eventSubtype, int eventStatus, long longPayload)
For internal use only. Do not use this method.
id
- the id of the LibraryObject posting the eventclassId
- the class id of the LibraryObject posting the eventsessionId
- the session id of the LibraryObject posting the eventserviceId
- the service id of the LibraryObject posting the eventeventType
- the event type; an enumerated valueeventSubtype
- the event subtypeeventStatus
- the event status; an enumerated valuelongPayload
- the long payloadpublic final Long getId()
public final Long getClassId()
public final Long getSessionId()
public final Long getServiceId()
public final int getEventType()
public final int getEventSubtype()
public final int getEventStatus()
public final long getLongPayload()
public String toString()
Copyright © 2023. All rights reserved.