Package com.saperion.ngc.model.document
Class UpdateSettings
java.lang.Object
com.saperion.ngc.model.document.UpdateSettings
Contains the settings needed to update a document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcls()
Returns the edit-event that started the edit-action that uses this UpdateSettings.com.saperion.ngc.iform.xml.SaveActionType
int
boolean
boolean
boolean
boolean
isLookup()
setCheckin
(boolean checkin) setComment
(String comment) setCommentDialogEnabled
(boolean commentDialogEnabled) setDefaultComment
(String defaultComment) void
setDeleted
(boolean deleted) setEditEvent
(EditSelectedEvent editEvent) Sets the edit-event that started the edit-action that uses this UpdateSettings.setLookup
(boolean lookup) setSaveAction
(com.saperion.ngc.iform.xml.SaveActionType saveAction) setSelectedImage
(int selectedImage) setVariables
(Map<String, DocumentVariable> variables)
-
Constructor Details
-
UpdateSettings
public UpdateSettings()
-
-
Method Details
-
setCheckin
- Parameters:
checkin
- whether to checkin the document or not (default = false)- Returns:
- current instance
-
setLookup
- Parameters:
lookup
- whether the item to update is a lookup-item (default = false)- Returns:
- current instance
-
setComment
- Parameters:
comment
- revision comment (default = "")- Returns:
- current instance
-
setSelectedImage
- Parameters:
selectedImage
- selected image for thumbnail-control (default = -1)- Returns:
- current instance
-
setAcls
- Parameters:
acls
- ACLs to add to the document (default = null)- Returns:
- current instance
-
setSaveAction
- Parameters:
saveAction
- action to perform after saving- Returns:
- current instance
-
isCheckin
public boolean isCheckin()- Returns:
- whether to checkin the document or not
-
isLookup
public boolean isLookup()- Returns:
- whether the item to update is a lookup item or not
-
getComment
- Returns:
- the revision comment
-
getSelectedImage
public int getSelectedImage()- Returns:
- selected image property for thumbnail-control
-
getAcls
- Returns:
- ACLs to add to the document
-
getSaveAction
public com.saperion.ngc.iform.xml.SaveActionType getSaveAction()- Returns:
- action to perform after saving
-
setVariables
- Parameters:
variables
- variables to add to document- Returns:
- current instance
-
getVariables
- Returns:
- variables to add to document
-
isDeleted
public boolean isDeleted()- Returns:
- if the document that is updated is deleted
-
setDeleted
public void setDeleted(boolean deleted) - Parameters:
deleted
- if the document that is updates is deleted or not
-
isCommentDialogEnabled
public boolean isCommentDialogEnabled()- Returns:
- if the comment dialog is enabled or disabled
-
setCommentDialogEnabled
- Parameters:
commentDialogEnabled
- whether the comment dialog is enabled or not- Returns:
- current instance
-
setDefaultComment
- Parameters:
defaultComment
- default comment for the new revision- Returns:
- current instance
-
getDefaultComment
- Returns:
- default comment for new revision
-
getEditEvent
Returns the edit-event that started the edit-action that uses this UpdateSettings. 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 of not set
-
setEditEvent
Sets the edit-event that started the edit-action that uses this UpdateSettings. The event can be used to repeat the last edit-action when a save-and-button was pressed.- Parameters:
editEvent
- the last edit-event- Returns:
- current instance
-