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:
java.io.Serializable
public class RevisionCreatedEvent extends org.zkoss.zk.ui.event.Event
Event fired when a new document was added to the archive.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RevisionCreatedEvent(org.zkoss.zk.ui.Component target, com.saperion.intf.SaSaveInfo saveInfo, java.util.List<FieldResultBean> fields, boolean lookupRevision)
Constructor.RevisionCreatedEvent(org.zkoss.zk.ui.Component target, DocumentId docId, java.util.List<FieldResultBean> fields, boolean lookupRevision)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DocumentId
getDocumentId()
java.util.List<FieldResultBean>
getFieldValues()
Gets the field values.com.saperion.intf.SaSaveInfo
getSaveInfo()
Deprecated.usegetDocumentId()
insteadboolean
isLookupRevision()
Indicates if the new revision is created on a lookup entry instead of a document.java.lang.String
toString()
-
-
-
Constructor Detail
-
RevisionCreatedEvent
public RevisionCreatedEvent(org.zkoss.zk.ui.Component target, com.saperion.intf.SaSaveInfo saveInfo, java.util.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, java.util.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 Detail
-
getSaveInfo
@Deprecated public com.saperion.intf.SaSaveInfo 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
public DocumentId getDocumentId()
- Returns:
- ID of the new or updated document
-
getFieldValues
public java.util.List<FieldResultBean> 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
public java.lang.String toString()
- Overrides:
toString
in classorg.zkoss.zk.ui.event.Event
-
-