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.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 Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAcls()
java.lang.String
getComment()
java.lang.String
getDDCName()
EditSelectedEvent
getEditEvent()
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.SaveActionType
getSaveAction()
int
getSelectedImage()
boolean
getUseAttachment()
java.util.Map<java.lang.String,DocumentVariable>
getVariables()
void
setEditEvent(EditSelectedEvent editEvent)
Sets the the edit-event that started the edit-action that resulted in this save-event.
-
-
-
Constructor Detail
-
SaveDocumentEvent
public SaveDocumentEvent(org.zkoss.zk.ui.Component target, ResultFieldEventBean resultBean)
- Parameters:
target
- Target componentresultBean
- 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 componentresultBean
- field result beanacls
- acls to add to the documentcomment
- the comment for the new revisionvariables
- 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
-
-