/** * Calls global property listeners registered for this delete * * @param propertyName */ private void notifyGlobalPropertyDelete(String propertyName) { for (GlobalPropertyListener listener : eventListeners.getGlobalPropertyListeners()) { if (listener.supportsPropertyName(propertyName)) { listener.globalPropertyDeleted(propertyName); } } }
/** * Gets the context's data access object * * @return ContextDAO */ static ContextDAO getContextDAO() { if (contextDAO == null) { throw new APIException("error.context.null", (Object[]) null); } return contextDAO; }
@Override protected User getExistingObject() { return userService.getUser(EXISTING_ID); } }
@Override protected Patient getExistingObject() { return patientService.getPatient(EXISTING_ID); } }
@Override protected Location getExistingObject() { return locationService.getLocation(EXISTING_ID); } }
@Override protected Form getExistingObject() { return formService.getForm(EXISTING_ID); } }
@Override protected LocationTag getExistingObject() { return locationService.getLocationTag(EXISTING_ID); } }
@Override protected PatientIdentifierType getExistingObject() { return patientService.getPatientIdentifierType(EXISTING_ID); } }
@Override protected Cohort getExistingObject() { return cohortService.getCohort(EXISTING_ID); } }
@Override protected ConceptDatatype getExistingObject() { return conceptService.getConceptDatatype(EXISTING_ID); } }
@Override protected ConceptMapType getExistingObject() { return conceptService.getConceptMapType(EXISTING_ID); } }
@Override protected ConceptSource getExistingObject() { return conceptService.getConceptSource(EXISTING_ID); } }
@Override protected ConceptClass getExistingObject() { return conceptService.getConceptClass(EXISTING_ID); } }
@Override protected VisitType getExistingObject() { return visitService.getVisitType(EXISTING_ID); } }
@Override protected PersonAttribute getExistingObject() { return personService.getPersonAttribute(EXISTING_ID); } }
@Override protected PersonAttributeType getExistingObject() { return personService.getPersonAttributeType(EXISTING_ID); } }
@Override protected ConceptAnswer getExistingObject() { return conceptService.getConceptAnswer(EXISTING_ID); } }
private boolean wasFormsSuccessfullyFilteredByMatchingFormFieldsInContainingAnyFormField( Collection<FormField> containingAnyFormField, List<Form> formsReturned) { for (Form form : formsReturned) { if (!doesFormContainAnyFormField(form, containingAnyFormField)) { return false; } } return true; }
/** * @see org.openmrs.hl7.HL7Service#retireHL7Source(org.openmrs.hl7.HL7Source) */ @Override public HL7Source retireHL7Source(HL7Source hl7Source) throws APIException { throw new APIException("general.not.yet.implemented", (Object[]) null); }
public static NameSupport getInstance() { if (singleton == null) { throw new APIException("Not Yet Instantiated"); } else { return singleton; } }