public class Program extends BaseOpenmrsMetadata implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Program()
Default Constructor
|
Program(Integer programId)
Constructor with id
|
Modifier and Type | Method and Description |
---|---|
void |
addWorkflow(ProgramWorkflow workflow)
Adds a new
ProgramWorkflow to this Program |
boolean |
equals(Object obj) |
Set<ProgramWorkflow> |
getAllWorkflows()
Get all workflows...including the retired ones
|
Concept |
getConcept() |
Integer |
getId() |
Integer |
getProgramId() |
ProgramWorkflow |
getWorkflow(Integer programWorkflowId)
Get the workflow with the specified ID
|
ProgramWorkflow |
getWorkflowByName(String name)
|
Set<ProgramWorkflow> |
getWorkflows()
Get only the non-retired workflows
|
void |
removeWorkflow(ProgramWorkflow workflow)
Removes a
ProgramWorkflow from this Program |
void |
retireWorkflow(ProgramWorkflow workflow)
Retires a
ProgramWorkflow |
void |
setAllWorkflows(Set<ProgramWorkflow> allWorkflows) |
void |
setConcept(Concept concept) |
void |
setId(Integer id) |
void |
setProgramId(Integer programId) |
String |
toString() |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Program()
public Program(Integer programId)
public void addWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
to this Programworkflow
- - the ProgramWorkflow
to addpublic void removeWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
from this Programworkflow
- - the ProgramWorkflow
to removepublic void retireWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
workflow
- - the ProgramWorkflow
to retirepublic ProgramWorkflow getWorkflowByName(String name)
name
- the ProgramWorkflow
name, in any Locale
ProgramWorkflow
which has the passed name
in any
Locale
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public String toString()
toString
in class Object
Object.toString()
public Concept getConcept()
public void setConcept(Concept concept)
public Integer getProgramId()
public void setProgramId(Integer programId)
public Set<ProgramWorkflow> getWorkflows()
public ProgramWorkflow getWorkflow(Integer programWorkflowId)
public Set<ProgramWorkflow> getAllWorkflows()
public void setAllWorkflows(Set<ProgramWorkflow> allWorkflows)
public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.