Class SaveDocumentEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.iform.SaveDocumentEvent
All Implemented Interfaces:
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:
  • Constructor Details

    • 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, Set<String> acls, String comment, Map<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 Details

    • getList

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

      public 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 List<com.saperion.bean.ContentStream> getImageContent()
      Returns:
      Image content list
    • getUseAttachment

      public boolean getUseAttachment()
      Returns:
      useAttachment
    • getAcls

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

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

      public Map<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