@Entity @UniqueTenderProcessEntity(groups=org.devgateway.toolkit.persistence.validator.groups.HighLevel.class, payload=org.devgateway.toolkit.persistence.validator.Severity.NonRecoverable.class, message="{org.devgateway.toolkit.persistence.dao.form.UniqueAwardAcceptance.message}") public class AwardAcceptance extends AbstractTenderProcessMakueniEntity
tenderProcess
statusComments
createdBy, createdDate, lastModifiedBy, lastModifiedDate
Constructor and Description |
---|
AwardAcceptance() |
Modifier and Type | Method and Description |
---|---|
AwardAcceptanceItem |
getAcceptedAcceptance() |
java.util.List<Supplier> |
getAwardee() |
protected java.util.Collection<? extends AbstractMakueniEntity> |
getDirectChildrenEntities()
Gets direct children of current entity, that is the next form(s) that have to be filled in after this one is done
Most of the time this returns just one element, with the exception of
Project where it will return
the Project#getTenderProcesses()
This is used to revert downstream forms when upstream forms are reverted. |
java.util.List<AwardAcceptanceItem> |
getItems() |
java.lang.String |
getLabel() |
java.lang.Class<?> |
getNextForm()
Return the next form to fill out once the current one was completed.
|
boolean |
hasAccepted() |
boolean |
hasDownstreamForms()
Return true to prevent deletion of the current form if there are downstream forms that depend on this one.
|
void |
setItems(java.util.List<AwardAcceptanceItem> items) |
void |
setLabel(java.lang.String label) |
getDepartment, getProcurementPlan, getProject, getTenderProcess, getTenderProcessNotNull, setTenderProcess, toString
getApprovedDate, getDirectChildrenEntitiesNotNull, getFormDocs, getOwner, getParent, setApprovedDate, setFormDocs, setOwner
getNewStatusComment, getStatus, getStatusComments, getVisibleStatusComments, getVisibleStatusLabel, setNewStatusComment, setStatus, setStatusComments, setVisibleStatusComments, setVisibleStatusLabel
ensureParentUpdated, getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate, touch
getVersion
equals, getId, hashCode, isNew, setId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFormDoc
isExportable, isTerminated
public void setLabel(java.lang.String label)
public boolean hasAccepted()
public AwardAcceptanceItem getAcceptedAcceptance()
public java.util.List<Supplier> getAwardee()
public java.lang.String getLabel()
@Transactional protected java.util.Collection<? extends AbstractMakueniEntity> getDirectChildrenEntities()
AbstractMakueniEntity
Project
where it will return
the Project#getTenderProcesses()
This is used to revert downstream forms when upstream forms are reverted. So if u do not need this functionality
just return Collections.emptyList()
getDirectChildrenEntities
in class AbstractMakueniEntity
public java.util.List<AwardAcceptanceItem> getItems()
public void setItems(java.util.List<AwardAcceptanceItem> items)
public java.lang.Class<?> getNextForm()
AbstractTenderProcessMakueniEntity
getNextForm
in class AbstractTenderProcessMakueniEntity
public boolean hasDownstreamForms()
AbstractTenderProcessMakueniEntity
hasDownstreamForms
in class AbstractTenderProcessMakueniEntity