Class RevisionCreatedEvent

  • All Implemented Interfaces:
    java.io.Serializable

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

      • RevisionCreatedEvent

        public RevisionCreatedEvent​(org.zkoss.zk.ui.Component target,
                                    com.saperion.intf.SaSaveInfo saveInfo,
                                    java.util.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,
                                    java.util.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 Detail

      • 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 java.util.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 java.lang.String toString()
        Overrides:
        toString in class org.zkoss.zk.ui.event.Event