Class RevisionCreatedEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.iform.RevisionCreatedEvent
All Implemented Interfaces:
Serializable

public class RevisionCreatedEvent extends org.zkoss.zk.ui.event.Event
Event fired when a new document was added to the archive.
See Also:
  • Constructor Details

    • RevisionCreatedEvent

      public RevisionCreatedEvent(org.zkoss.zk.ui.Component target, com.saperion.intf.SaSaveInfo saveInfo, List<FieldResultBean> fields, boolean lookupRevision)
      Constructor.
      Parameters:
      target - target component
      saveInfo - information about the new document
      fields - values of the fields that were used to create the new document
      lookupRevision - whether the revision was created for a lookup-entry or not
    • RevisionCreatedEvent

      public RevisionCreatedEvent(org.zkoss.zk.ui.Component target, DocumentId docId, List<FieldResultBean> fields, boolean lookupRevision)
      Constructor.
      Parameters:
      target - target component
      docId - id of the new document
      fields - values of the fields that were used to create the new document
      lookupRevision - whether the revision was created for a lookup-entry or not
  • Method Details

    • getSaveInfo

      @Deprecated public com.saperion.intf.SaSaveInfo getSaveInfo()
      Deprecated.
      use getDocumentId() instead
      Gets the save info of the new revision.
      Returns:
      the save info. can be null of this is a new revision of a lookup.
    • getDocumentId

      public DocumentId getDocumentId()
      Returns:
      ID of the new or updated document
    • getFieldValues

      public List<FieldResultBean> getFieldValues()
      Gets the field values.
      Returns:
      the field values
    • isLookupRevision

      public boolean isLookupRevision()
      Indicates if the new revision is created on a lookup entry instead of a document.
      Returns:
      true, if the revision was created for a lookup entry - false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class org.zkoss.zk.ui.event.Event