Package com.saperion.ngc.events.iform
Class SaveDocumentEvent
- java.lang.Object
- 
- org.zkoss.zk.ui.event.Event
- 
- com.saperion.ngc.events.iform.SaveDocumentEvent
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class SaveDocumentEvent extends org.zkoss.zk.ui.event.EventEvent 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 SummaryConstructors Constructor Description SaveDocumentEvent(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean)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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getAcls()java.lang.StringgetComment()java.lang.StringgetDDCName()EditSelectedEventgetEditEvent()Returns the edit-event that started the edit-action that resulted in this save-event.java.util.List<com.saperion.bean.ContentStream>getImageContent()java.util.List<FieldResultBean>getList()com.saperion.ngc.iform.xml.SaveActionTypegetSaveAction()intgetSelectedImage()booleangetUseAttachment()java.util.Map<java.lang.String,DocumentVariable>getVariables()voidsetEditEvent(EditSelectedEvent editEvent)Sets the the edit-event that started the edit-action that resulted in this save-event.
 
- 
- 
- 
Constructor Detail- 
SaveDocumentEventpublic SaveDocumentEvent(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean)- Parameters:
- target- Target component
- resultBean- field result bean
 
 - 
SaveDocumentEventpublic 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- 
getListpublic java.util.List<FieldResultBean> getList() - Returns:
- Result field list
 
 - 
getDDCNamepublic java.lang.String getDDCName() - Returns:
- DDC name
 
 - 
getSaveActionpublic com.saperion.ngc.iform.xml.SaveActionType getSaveAction() - Returns:
- Save action
 
 - 
getSelectedImagepublic int getSelectedImage() - Returns:
- Selected image
 
 - 
getImageContentpublic java.util.List<com.saperion.bean.ContentStream> getImageContent() - Returns:
- Image content list
 
 - 
getUseAttachmentpublic boolean getUseAttachment() - Returns:
- useAttachment
 
 - 
getAclspublic java.util.Set<java.lang.String> getAcls() - Returns:
- acl-string to use when saving
 
 - 
getCommentpublic java.lang.String getComment() - Returns:
- the comment for the new revision
 
 - 
getVariablespublic java.util.Map<java.lang.String,DocumentVariable> getVariables() - Returns:
- the variables to add to the document
 
 - 
getEditEventpublic 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
 
 - 
setEditEventpublic 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
 
 
- 
 
-