@Entity public class ProcurementPlan extends AbstractMakueniEntity
statusComments
createdBy, createdDate, lastModifiedBy, lastModifiedDate
Constructor and Description |
---|
ProcurementPlan() |
Modifier and Type | Method and Description |
---|---|
void |
addProject(Project p) |
Department |
getDepartment() |
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. |
FiscalYear |
getFiscalYear() |
java.lang.String |
getLabel() |
java.util.List<PlanItem> |
getPlanItems() |
java.util.Set<Project> |
getProjects() |
java.util.Set<TenderProcess> |
getTenderProcesses() |
boolean |
isExportable()
Since we no longer have projects all the time, a procurement plan becomes exportable as soon as it has
some tender processes added, regardless if these are approved or not
|
void |
removeProject(Project p) |
void |
setDepartment(Department department) |
void |
setFiscalYear(FiscalYear fiscalYear) |
void |
setLabel(java.lang.String label) |
void |
setPlanItems(java.util.List<PlanItem> planItems) |
void |
setProjects(java.util.Set<Project> projects) |
void |
setTenderProcesses(java.util.Set<TenderProcess> tenderProcesses) |
java.lang.String |
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
isTerminated
public Department getDepartment()
getDepartment
in class AbstractMakueniEntity
public void setDepartment(Department department)
public FiscalYear getFiscalYear()
public void setFiscalYear(FiscalYear fiscalYear)
public java.util.List<PlanItem> getPlanItems()
public void setPlanItems(java.util.List<PlanItem> planItems)
public java.util.Set<Project> getProjects()
public void setProjects(java.util.Set<Project> projects)
public void addProject(Project p)
public void removeProject(Project p)
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class org.springframework.data.jpa.domain.AbstractPersistable<java.lang.Long>
@Transactional public boolean isExportable()
@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.Set<TenderProcess> getTenderProcesses()
public void setTenderProcesses(java.util.Set<TenderProcess> tenderProcesses)