Class SaEventImpl

java.lang.Object
com.saperion.event.SaEventImpl
All Implemented Interfaces:
SaEvent, Serializable

public class SaEventImpl extends Object implements Serializable, SaEvent
Bean class for an event. The event is fired every time when some document is changed (i.e. created/updated/deleted).

The event consists of
  • the SYSROWID of the document;
  • the HDOC revisons number;
  • the ID of the event;
  • the events status;
  • timestamp;
  • the ID of the transaction in which the event is raised;
  • the text that comments this event;
  • the list of fields from the documents DDC which have been changed;
  • Author:
    rbo
    See Also:
    • Constructor Details

      • SaEventImpl

        public SaEventImpl(String sysrowid, String doc, int eventnumber, int eventStatus, Date timeStamp, String transId, String[] fieldNames)
        Parameters:
        sysrowid - SysRowId
        doc - HDOC
        eventnumber - Eventnumber
        eventStatus - Status
        timeStamp - Timestamp
        transId - Transaction id
        fieldNames - Fieldnames
      • SaEventImpl

        public SaEventImpl(String sysrowid, String doc, int eventnumber, String eventLinkId, Date timeStamp, String transId, String[] fieldNames)
        Parameters:
        sysrowid - SysRowId
        doc - HDOC
        eventnumber - Eventnumber
        eventLinkId - Node SysRowId
        timeStamp - Timestamp
        transId - Transaction id
        fieldNames - Fieldnames
    • Method Details

      • setLinkDDCName

        public void setLinkDDCName(String name)
        Parameters:
        name - Link DDC name
      • getLinkDDCName

        public String getLinkDDCName()
        Specified by:
        getLinkDDCName in interface SaEvent
        Returns:
        Link DDC name
      • setDDCName

        public void setDDCName(String ddc)
        Parameters:
        ddc - DDCName
      • getDDCName

        public String getDDCName()
        Description copied from interface: SaEvent
        Reads the ddc name.
        Specified by:
        getDDCName in interface SaEvent
        Returns:
        DDCName
      • getLinkId

        public String getLinkId()
        Returns:
        Link ID
      • getEventNumber

        public final int getEventNumber()
        Reads the event number.
        Specified by:
        getEventNumber in interface SaEvent
        Returns:
        the eventNumber
        See Also:
        • com.saperion.event.SaWfEvent#getEventNumber()
      • getHDoc

        public final String getHDoc()
        Reads the HDOC for this event.
        Specified by:
        getHDoc in interface SaEvent
        Returns:
        the hDoc
        See Also:
        • com.saperion.event.SaWfEvent#getXhdoc()
      • getStatus

        public final int getStatus()
        Reads the status of this event.
        Specified by:
        getStatus in interface SaEvent
        Returns:
        the status
        See Also:
        • com.saperion.event.SaWfEvent#getXstatus()
      • getSysRowId

        public final String getSysRowId()
        Reads the SysRowId of this event.
        Specified by:
        getSysRowId in interface SaEvent
        Returns:
        the sysRowId
        See Also:
        • com.saperion.event.SaWfEvent#getXsysrowid()
      • getTimestamp

        public final Date getTimestamp()
        Reads the timestamp of this event.
        Specified by:
        getTimestamp in interface SaEvent
        Returns:
        the timestamp
        See Also:
        • com.saperion.event.SaWfEvent#getTimestamp()
      • getTransactionId

        public final String getTransactionId()
        Reads the transaction ID of this event.
        Specified by:
        getTransactionId in interface SaEvent
        Returns:
        the transactionId
        See Also:
        • com.saperion.event.SaWfEvent#getTransactionId()
      • getFieldNames

        public final String[] getFieldNames()
        Reads the fieldnames of this event.
        Specified by:
        getFieldNames in interface SaEvent
        Returns:
        Changed fieldnames
        See Also:
        • com.saperion.event.SaWfEvent#getFieldNames()
      • setFieldNames

        public void setFieldNames(String[] names)
        Parameters:
        names - Array of names
      • setStatus

        public void setStatus(int statusId)
        Parameters:
        statusId - Status
      • getParentId

        public final String getParentId()
        Specified by:
        getParentId in interface SaEvent
        Returns:
        the parentId
      • setParentId

        public final void setParentId(String id)
        Parameters:
        id - the parentId to set
      • toString

        public String toString()
        Overrides:
        toString in class Object
        See Also: