@MappedSuperclass public abstract class AbstractMakueniEntity extends AbstractStatusAuditableEntity implements Labelable, SingleFileMetadatable, Lockable
statusComments
createdBy, createdDate, lastModifiedBy, lastModifiedDate
Constructor and Description |
---|
AbstractMakueniEntity() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getApprovedDate() |
abstract Department |
getDepartment() |
protected abstract 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.Collection<? extends AbstractMakueniEntity> |
getDirectChildrenEntitiesNotNull() |
java.util.Set<FileMetadata> |
getFormDocs() |
Person |
getOwner() |
AbstractAuditableEntity |
getParent()
Override this in subclasses and return the parent entity, or null if no
parent entity exists
|
void |
setApprovedDate(java.util.Date approvedDate) |
void |
setFormDocs(java.util.Set<FileMetadata> formDocs) |
void |
setOwner(Person owner) |
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFormDoc
getLabel, setLabel
isExportable, isTerminated
@Transactional protected abstract java.util.Collection<? extends AbstractMakueniEntity> getDirectChildrenEntities()
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()
@Transactional public java.util.Collection<? extends AbstractMakueniEntity> getDirectChildrenEntitiesNotNull()
public AbstractAuditableEntity getParent()
AbstractAuditableEntity
getParent
in class AbstractAuditableEntity
public java.util.Date getApprovedDate()
public void setApprovedDate(java.util.Date approvedDate)
public java.util.Set<FileMetadata> getFormDocs()
getFormDocs
in interface SingleFileMetadatable
public void setFormDocs(java.util.Set<FileMetadata> formDocs)
public abstract Department getDepartment()