|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsMetadata org.openmrs.Program
public class Program
Program
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Program()
Default Constructor |
|
Program(java.lang.Integer programId)
Constructor with id |
Method Summary | |
---|---|
void |
addWorkflow(ProgramWorkflow workflow)
Adds a new ProgramWorkflow to this Program |
boolean |
equals(java.lang.Object obj)
|
java.util.Set<ProgramWorkflow> |
getAllWorkflows()
Get all workflows...including the retired ones |
Concept |
getConcept()
|
java.lang.Integer |
getId()
|
java.lang.Integer |
getProgramId()
|
ProgramWorkflow |
getWorkflow(java.lang.Integer programWorkflowId)
Get the workflow with the specified ID |
ProgramWorkflow |
getWorkflowByName(java.lang.String name)
Returns a ProgramWorkflow whose Concept has any ConceptName that
matches the given name |
java.util.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(java.util.Set<ProgramWorkflow> allWorkflows)
|
void |
setConcept(Concept concept)
|
void |
setId(java.lang.Integer id)
|
void |
setProgramId(java.lang.Integer programId)
|
java.lang.String |
toString()
|
Methods inherited from class org.openmrs.BaseOpenmrsMetadata |
---|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason |
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Program()
public Program(java.lang.Integer programId)
Method Detail |
---|
public void addWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
to this Program
workflow
- - the ProgramWorkflow
to addpublic void removeWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
from this Program
workflow
- - the ProgramWorkflow
to removepublic void retireWorkflow(ProgramWorkflow workflow)
ProgramWorkflow
workflow
- - the ProgramWorkflow
to retirepublic ProgramWorkflow getWorkflowByName(java.lang.String name)
ProgramWorkflow
whose Concept
has any ConceptName
that
matches the given name
- Parameters:
name
- the ProgramWorkflow
name, in any Locale
- Returns:
- a
ProgramWorkflow
which has the passed name
in any
Locale
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public Concept getConcept()
public void setConcept(Concept concept)
public java.lang.Integer getProgramId()
public void setProgramId(java.lang.Integer programId)
public java.util.Set<ProgramWorkflow> getWorkflows()
public ProgramWorkflow getWorkflow(java.lang.Integer programWorkflowId)
public java.util.Set<ProgramWorkflow> getAllWorkflows()
public void setAllWorkflows(java.util.Set<ProgramWorkflow> allWorkflows)
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |