Class SaveDocumentEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class SaveDocumentEvent
    extends org.zkoss.zk.ui.event.Event
    Event used to tell the ResultSet that a document was edited in an index-mask. The ResultSet will take care about saving the changes.
    See Also:
    Serialized Form
    • Constructor Detail

      • SaveDocumentEvent

        public SaveDocumentEvent​(org.zkoss.zk.ui.Component target,
                                 ResultFieldEventBean resultBean)
        Parameters:
        target - Target component
        resultBean - field result bean
      • SaveDocumentEvent

        public SaveDocumentEvent​(org.zkoss.zk.ui.Component target,
                                 ResultFieldEventBean resultBean,
                                 java.util.Set<java.lang.String> acls,
                                 java.lang.String comment,
                                 java.util.Map<java.lang.String,​DocumentVariable> variables)
        Parameters:
        target - Target component
        resultBean - field result bean
        acls - acls to add to the document
        comment - the comment for the new revision
        variables - the variables to add to the document
    • Method Detail

      • getList

        public java.util.List<FieldResultBean> getList()
        Returns:
        Result field list
      • getDDCName

        public java.lang.String getDDCName()
        Returns:
        DDC name
      • getSaveAction

        public com.saperion.ngc.iform.xml.SaveActionType getSaveAction()
        Returns:
        Save action
      • getSelectedImage

        public int getSelectedImage()
        Returns:
        Selected image
      • getImageContent

        public java.util.List<com.saperion.bean.ContentStream> getImageContent()
        Returns:
        Image content list
      • getUseAttachment

        public boolean getUseAttachment()
        Returns:
        useAttachment
      • getAcls

        public java.util.Set<java.lang.String> getAcls()
        Returns:
        acl-string to use when saving
      • getComment

        public java.lang.String getComment()
        Returns:
        the comment for the new revision
      • getVariables

        public java.util.Map<java.lang.String,​DocumentVariable> getVariables()
        Returns:
        the variables to add to the document
      • getEditEvent

        public EditSelectedEvent getEditEvent()
        Returns the edit-event that started the edit-action that resulted in this save-event. The event can be used to repeat the last edit-action when a save-and-button was pressed.
        Returns:
        the last edit-event or null if not set
      • setEditEvent

        public void setEditEvent​(EditSelectedEvent editEvent)
        Sets the the edit-event that started the edit-action that resulted in this save-event. The event can be used to repeat the last edit-action when a save-and-button was pressed.
        Parameters:
        editEvent - the last edit-event