Package com.saperion.ngc.events.iform
Class RevisionCreatedEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.iform.RevisionCreatedEvent
- All Implemented Interfaces:
Serializable
public class RevisionCreatedEvent
extends org.zkoss.zk.ui.event.Event
Event fired when a new document was added to the archive.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRevisionCreatedEvent
(org.zkoss.zk.ui.Component target, com.saperion.intf.SaSaveInfo saveInfo, List<FieldResultBean> fields, boolean lookupRevision) Constructor.RevisionCreatedEvent
(org.zkoss.zk.ui.Component target, DocumentId docId, List<FieldResultBean> fields, boolean lookupRevision) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the field values.com.saperion.intf.SaSaveInfo
Deprecated.boolean
Indicates if the new revision is created on a lookup entry instead of a document.toString()
Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation
-
Constructor Details
-
RevisionCreatedEvent
public RevisionCreatedEvent(org.zkoss.zk.ui.Component target, com.saperion.intf.SaSaveInfo saveInfo, List<FieldResultBean> fields, boolean lookupRevision) Constructor.- Parameters:
target
- target componentsaveInfo
- information about the new documentfields
- values of the fields that were used to create the new documentlookupRevision
- whether the revision was created for a lookup-entry or not
-
RevisionCreatedEvent
public RevisionCreatedEvent(org.zkoss.zk.ui.Component target, DocumentId docId, List<FieldResultBean> fields, boolean lookupRevision) Constructor.- Parameters:
target
- target componentdocId
- id of the new documentfields
- values of the fields that were used to create the new documentlookupRevision
- whether the revision was created for a lookup-entry or not
-
-
Method Details
-
getSaveInfo
Deprecated.usegetDocumentId()
insteadGets the save info of the new revision.- Returns:
- the save info. can be null of this is a new revision of a lookup.
-
getDocumentId
- Returns:
- ID of the new or updated document
-
getFieldValues
Gets the field values.- Returns:
- the field values
-
isLookupRevision
public boolean isLookupRevision()Indicates if the new revision is created on a lookup entry instead of a document.- Returns:
- true, if the revision was created for a lookup entry - false otherwise.
-
toString
- Overrides:
toString
in classorg.zkoss.zk.ui.event.Event
-
getDocumentId()
instead