|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.cohort.impl.StaticCohortDefinitionProvider
@Deprecated public class StaticCohortDefinitionProvider
This class provides access to Cohort objects that are saved in the cohort
table, but exposes them as CohortDefinition The
evaluate(CohortDefinition, EvaluationContext) method does not set links to the
CohortDefinition or EvaluationContext in the cohort that it returns. Those are not meaningful in
the context of a static cohort, and alse because we want to preserve the original
CohortDefinition that produced the Cohort that is being wrapped by a StaticCohortDefinition.
| Constructor Summary | |
|---|---|
StaticCohortDefinitionProvider()
Deprecated. |
|
| Method Summary | |
|---|---|
Cohort |
evaluate(CohortDefinition cohortDefinition,
EvaluationContext evaluationContext)
Deprecated. Note that this method does *not* set a CohortDefinition or EvaluationContext in the Cohort that it returns, although that Cohort may have had those properties set when it was originally evaluated. |
java.util.List<CohortDefinitionItemHolder> |
getAllCohortDefinitions()
Deprecated. |
java.lang.Class<? extends CohortDefinition> |
getClassHandled()
Deprecated. TODO: this is potentially not necessary because its set via spring's application context |
CohortDefinition |
getCohortDefinition(java.lang.Integer id)
Deprecated. |
void |
purgeCohortDefinition(CohortDefinition cohortDefinition)
Deprecated. Deletes a cohort definition from the database. |
CohortDefinition |
saveCohortDefinition(CohortDefinition cohortDefinition)
Deprecated. Creates or updates a CohortDefinition in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticCohortDefinitionProvider()
| Method Detail |
|---|
public java.lang.Class<? extends CohortDefinition> getClassHandled()
CohortDefinitionProvider
getClassHandled in interface CohortDefinitionProviderCohortDefinitionProvider.getClassHandled()
public Cohort evaluate(CohortDefinition cohortDefinition,
EvaluationContext evaluationContext)
evaluate in interface CohortDefinitionProvidercohortDefinition - CohortDefinition to evaluateevaluationContext - context to use during evaluation
CohortDefinitionProvider.evaluate(org.openmrs.cohort.CohortDefinition,
org.openmrs.report.EvaluationContext)public java.util.List<CohortDefinitionItemHolder> getAllCohortDefinitions()
getAllCohortDefinitions in interface CohortDefinitionProviderCohortDefinitionProvider.getAllCohortDefinitions()public CohortDefinition getCohortDefinition(java.lang.Integer id)
getCohortDefinition in interface CohortDefinitionProviderCohortDefinitionProvider.getCohortDefinition(java.lang.Integer)public void purgeCohortDefinition(CohortDefinition cohortDefinition)
CohortDefinitionProvider
purgeCohortDefinition in interface CohortDefinitionProviderCohortDefinitionProvider.purgeCohortDefinition(org.openmrs.cohort.CohortDefinition)public CohortDefinition saveCohortDefinition(CohortDefinition cohortDefinition)
CohortDefinitionProvider
saveCohortDefinition in interface CohortDefinitionProviderCohortDefinitionProvider.saveCohortDefinition(org.openmrs.cohort.CohortDefinition)
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||